Jump to content

Problem with auto login Item shop


Recommended Posts

hi guys ..

i need to put this code in the 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
  • Confused 1
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. 4

      Feeding game source to LLM

    2. 0

      Quest 6/7 Problem

    3. 5

      Effect weapons

    4. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    5. 3

      Crystal Metinstone

    6. 4

      Feeding game source to LLM

    7. 113

      Ulthar SF V2 (TMP4 Base)

    8. 4

      Feeding game source to LLM

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