Jump to content


Go to solution Solved by VegaS™,

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Forum Moderator
  • Solution
On 4/10/2019 at 12:42 AM, VegaS™ said:

For those who use martysama0134 source:

#define ENABLE_ITEMAWARD_REFRESH // Should be enabled


Edited by VegaS™
Link to comment
Share on other sites

Perfect, this was the solution. instead to enable auto login for item shop in game?


This is the function to be integrated in the game for the autologin on the shop / shop / login? Pid = $ playerID & key = $ code
This is the link to insert.
$ playerID and $ code are 2 variables
that you have to generate by code.
$ playerID is the id of the player, as you can guess.
$ code is md5 ($ playerID. $ accountID. "kkJduLRw8n7vz2Gm")




    char country_code[3] = "ro";
    char buf[512+1];
    char sas[33];
    MD5_CTX ctx;
    const char sas_key[] = "kkJduLRw8n7vz2Gm";

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

    MD5Update(&ctx, (const unsigned char *) buf, strlen(buf));
    MD5End(&ctx, sas);

    snprintf(buf, sizeof(buf), "mall https://shop/login?pid=%u&c=%s&sid=%d&sas=%s",
            g_strWebMallURL.c_str(), ch->GetPlayerID(), ch->GetAID(), sas_key);

    ch->ChatPacket(CHAT_TYPE_COMMAND, buf);



Edited by Malbeth
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


  • 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.