cumpar cef bun

Închis
Avatar utilizator
Akihito
Nivel 2

Nivel 2
Mesaje: 202
Membru din: 22 Iun 2014, 13:38
Server: -
Regat: Shinsoo
Aprecieri: 137  
Mulţumiri: 5  
  Rezolvări prob.: 1
Medalii

Salut, cumpar un cef sau daca poate modifica cineva actualul cef de pe net

Vreau sa dea load la cont cand intri pe itemshop, acum practic prima data cand ma conectez pe joc trebuie sa ma si conectez pe itemshop, vreau sa dea load automat la cont. Multumesc anticipat! astept oferte!
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

Tutorial de pe
metin2dev
This is a little tutorial on how to connect the game to the item shop of your website.

By clicking on the coin in the game client the web browser will be opened and connected to your website.

I'll explain how to automatically login the player to the item shop :)



First of all open cmd_general.cpp and look for do_in_game_mall and replace the whole function with this



Cod: Selectaţi tot

ACMD(do_in_game_mall)
{
		char buf[512+1];
		char sas[33];
		MD5_CTX ctx;

		const char secretKey[] = "my secret key"; // <<--- EDIT THIS!!!
		const char websiteUrl[] = "http://mywebsite/shop"; // <<--- EDIT THIS!!!

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

		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[i] >> 4];
			sas[i+i+1] = hex[digest[i] & 0x0f];
		}
		sas[i+i] = '\0';
#endif

		snprintf(buf, sizeof(buf), "mall %s?aid=%u&secret=%s", websiteUrl, ch->GetAID(), sas);

		ch->ChatPacket(CHAT_TYPE_COMMAND, buf);
}


Edit secretKey and websiteUrl with your information. The key can be a random string.



What happens is the following:
aid = account id
secret = md5( account id + your secret key )


So your website you can check if the secret is corrent and then login the player. You can do something like this:


Cod: Selectaţi tot

<?php

$secretKey = $_GET['secret'];
$accountId = $_GET['aid'];

$generatedSecret = md5($accountId . $secretKey);

if ($generatedSecret == $secretKey) {
    // ok, proceed with login
} else {
    // invalid secret
}
Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Avatar utilizator
Akihito
Nivel 2

Nivel 2
Mesaje: 202
Membru din: 22 Iun 2014, 13:38
Server: -
Regat: Shinsoo
Aprecieri: 137  
Mulţumiri: 5  
  Rezolvări prob.: 1
Medalii

Mulțumesc mult de răspuns, o sa incerc. Se poate da T/c
Avatar utilizator
FRANCIS
Administrator Adjunct

Administrator Adjunct
Mesaje: 7879
Membru din: 06 Noi 2015, 19:52
Regat: Chunjo
Aprecieri: 334  
Mulţumiri: 54529  
Discord: Copiază ID
Medalii

Arhivat "
If you talk to a man in a language he understands, that goes to his head. If you talk to him in his own language, that goes to his heart.
Imagine
ENJOY
Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
326
Răspunsuri
5
Vizualizări
717
Răspunsuri
1
Vizualizări
345

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Bing [Bot] și 2 vizitatori