Jump to content
  • 0

ITEM_AWARD


Malbeth
Go to solution Solved by VegaS™,

Question

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")

 

 

 

ACMD(do_in_game_mall)
{
    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);

    MD5Init(&ctx);
    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
Guest
This topic is now closed to further replies.


Shoutbox

Shoutbox

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.