the function nothing happens but when you have already connected to any account valid or not and then call the function again it works, i tried on Metin2.SG and with that client i dont have that problem it works fine again if some wants to help just send me a private message or Post here so that others that might be interested see it Thanks and sorry if my English is Bad it is my second language
Conect("Nemesis, CH1","USER","PASS"); // Example
Code:
void Conect(char* ServerAndCH,char* user,char* pass)
{
unsigned int connect = 0x4A9990;
DWORD value = 0x2B8E;
DWORD value2 = 0x313D;
char* server = "79.110.84.140";
char* server2 = "79.110.84.141";
unsigned int logincall = 0x04AE320;
unsigned int logincall2 = 0x4A9920;
unsigned int kinse = 0xC;
unsigned int setserverinfocall = 0x416EA0;
__asm//SetServerInfo
{
MOV ECX,0xEC5F80
PUSH kinse
PUSH ServerAndCH
CALL setserverinfocall
}
__asm//SetLoginInfo
{
MOV ECX,DWORD PTR DS:[0xFE5A0C]
MOV ESI,DWORD PTR DS:[0xFE7BC0]
PUSH pass
PUSH user
CALL logincall
PUSH pass
PUSH user
MOV ECX,ESI
CALL logincall2
}
__asm//ConnectToAccountServer
{
MOV ECX,DWORD PTR DS:[0xFE7BC0]
PUSH value
PUSH server
PUSH value2
PUSH server2
CALL connect
}
}






