Jump to content

In-game itemshop


Go to solution Solved by Silver,

Recommended Posts

Hello there i have a problem with the in-game itemshop i tried to find the MALL_URL on every config it doesnt exist i tried typing it myself and still doesnt work i removed the https from the url and still its not working.

can anyone help me?

 

https://metin2.download/picture/q47d5Uc999eG6o93WV5vw4p89380qCKc/.png       <------ its the screenshot in-game 

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

  • Active+ Member
Posted (edited)

Alright, 

 

Go to cmd_general.cpp


search for 

ACMD(do_in_game_mall)
  
  replace with 

ACMD(do_in_game_mall)
{
		char buf[512+1];
		char sas[33];
		MD5_CTX ctx;

		const char secretKey[] = 
		const char websiteUrl[] = 

		snprintf(buf, sizeof(buf), "%u%s", ch->GetAID(), secretKey);

		MD5Init(&ctx);
		MD5Update(&ctx, (const unsigned char *) buf, strlen(buf));
#ifdef __FreeBSD__
		MD5End(&ctx, sas);
#else
		static const char hex[] = "0123456789abcdef";
		unsigned char digest[16];
		MD5Final(digest, &ctx);
		int i;
		for (i = 0; i < 16; ++i) {
			sas[i+i] = hex[digest[i] >> 4];
			sas[i+i+1] = hex[digest[i] & 0x0f];
		}
		sas[i+i] = '\0';
#endif

		snprintf(buf, sizeof(buf), "mall %s?aid=%u&secret=%s", websiteUrl, ch->GetAID(), sas);

		ch->ChatPacket(CHAT_TYPE_COMMAND, buf);
}
  
  
  edit 

const char secretKey[] = "exampleexample"; <- choose a key of your choice whatever
const char websiteUrl[] = "http://oldgodsmt2.com/shop/";  <- your website

 

Edited by Lycawn

spacer.png

Link to comment
Share on other sites

  • Premium
1 hour ago, Silver said:

Lycawn i already did that and its still the same problem i tried changing the URL everywhere i found i even typed the WALL_URL on every channel and game file that the files should have nothing changed.. its like the game doesnt wanna change xD

well did you compile it?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      Emotion?

    2. 1

      Auto Bravery Cape

    3. 18

      Metin2 Closed Beta Content (2003-2004)

    4. 1425

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    5. 25

      Experimental Renderer

    6. 1

      Auto Bravery Cape

    7. 0

      Very strange bug, when creating new char

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.