Jump to content
×
×
  • Create New...
  • 0

ITEM_AWARD


Malbeth

Question

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

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

For those who use martysama0134 source:

//@Srcs/Server/db/src/ClientManager.cpp
#define ENABLE_ITEMAWARD_REFRESH // Should be enabled

 

Edited by VegaS™
Link to comment
Share on other sites

  • 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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 36

      Destroy Item System

    2. 1

      Brillances

    3. 0

      Fusion.org is Looking for Staff Members

    4. 1

      Brillances

    5. 3

      ELONIA2 | PVM-MEDIUM | 11 LANGUAGES | INTERNATIONAL | A NEW STORY

    6. 4

      Spider Queen not spawining in spider dungeon v1

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.