[Premium]CMS Itemshop  v3 [Tested]

Premium [Premium]CMS Itemshop v3 [Tested] 3.0

No permission to download


Hello everyone, today I share with you this shop item from cms.
It contains many functions, such as "Wheel of Destiny" or others...
you can also use it in the game.
I tested it myself.. it works perfectly!


You will find everything you need in the archive!
here is a small presentation


if you wanted to add this in game
open

add in cmd_general.cpp

ACMD(do_in_game_mall)
{
char buf[512+1];
char sas[33];
MD5_CTX ctx;
const char sas_key[] = "GF9001";

char language[3];
strcpy(language, "en");//If you have multilanguage, update this

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

MD5Init(&ctx);
MD5Update(&ctx, (const unsigned char *) buf, strlen(buf));
#ifdef __FreeBSD__
MD5End(&ctx, sas);
#else
static const char hex[] = "0123456789abcdef";
unsigned char digest[16];
MD5Final(digest, &ctx);
int i;
for (i = 0; i < 16; ++i) {
sas[i+i] = hex[digest >> 4];
sas[i+i+1] = hex[digest & 0x0f];
}
sas[i+i] = '\0';
#endif

snprintf(buf, sizeof(buf), "mall https://www.%s/shop?pid=%u&lang=%s&sid=%d&sas=%s",
g_strWebMallURL.c_str(), ch->GetPlayerID(), language, g_server_id, sas);

ch->ChatPacket(CHAT_TYPE_COMMAND, buf);
}
56.gif
Author
HUB STORAGE
Downloads
8
Views
2,110
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from HUB STORAGE

Top