Silver 1 Posted April 6 Share Posted April 6 (edited) 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 April 9 by Metin2 Dev International Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active+ Member Lycawn 516 Posted April 10 Active+ Member Share Posted April 10 (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 April 10 by Lycawn Link to comment Share on other sites More sharing options...
Silver 1 Posted April 10 Author Share Posted April 10 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 Link to comment Share on other sites More sharing options...
Premium Juki 8 Posted April 10 Premium Share Posted April 10 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 More sharing options...
Silver 1 Posted April 10 Author Share Posted April 10 yes i did eve been stuck on this for a week and i cant find why its not working Link to comment Share on other sites More sharing options...
Active+ Member Lycawn 516 Posted April 10 Active+ Member Share Posted April 10 Just now, Silver said: yes i did eve been stuck on this for a week and i cant find why its not working Share what you changed so far. Link to comment Share on other sites More sharing options...
Solution Silver 1 Posted April 10 Author Solution Share Posted April 10 i gave up on it i got new files for a server xD 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now