Jump to content
  • 0


Go to solution Solved by VegaS™,


2 answers to this question

Recommended Posts

  • 0

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 post
This topic is now closed to further replies.



Chatroom Rules


Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules


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