How To Make A MobLock [METIN2]

10/10/2009 23:16 xxAxelsXx#1


Watch the video in HD on YouTube.

Here you are the source-code used in the video to write on X and Y coordinates.

Dev-C++
Code:
#include <windows.h>

//Gets
HANDLE GetProc();
DWORD GetX();
DWORD GetY();
////////////



int main()
{
    
DWORD X = GetX();
DWORD Y = GetY();

HANDLE hProcess = GetProc();
WriteProcessMemory(hProcess, (LPVOID)0x5f77e1, &X, sizeof(X), NULL);
WriteProcessMemory(hProcess, (LPVOID)0x5F781D, &Y, sizeof(Y), NULL);

    
}


HANDLE GetProc()
{
HWND hWnd = FindWindow(0, "METIN2");
DWORD proc_id;
GetWindowThreadProcessId(hWnd, &proc_id);

HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id);
return hProcess;
}


DWORD GetX()
{


DWORD buff, buff1, buff2;

DWORD addy, addy1;


ReadProcessMemory(GetProc(), (LPVOID)0x005F29BC, &buff, sizeof(buff), NULL);
addy = buff + 16;
ReadProcessMemory(GetProc(), (LPVOID)addy, &buff1, sizeof(buff1), NULL);
addy1 = buff1 + 1412;
ReadProcessMemory(GetProc(), (LPVOID)addy1, &buff2, sizeof(buff2), NULL);

DWORD X = buff2;
return X;






}



DWORD GetY()
{


DWORD buff, buff1, buff2;

DWORD addy, addy1;


ReadProcessMemory(GetProc(), (LPVOID)0x005F29BC, &buff, sizeof(buff), NULL);
addy = buff + 16;
ReadProcessMemory(GetProc(), (LPVOID)addy, &buff1, sizeof(buff1), NULL);
addy1 = buff1 + 1416;
ReadProcessMemory(GetProc(), (LPVOID)addy1, &buff2, sizeof(buff2), NULL);

return buff2;


}


Enjoy....
10/11/2009 18:12 Frezee#2
Maybe you shoul explain how you got the coordinates... That would help more than only the adresses. ;)
10/11/2009 18:13 'Haseo#3
WoW very good ;) but in the moment i canŽt try it but iŽll give you a thanks ;)
10/11/2009 18:35 D00MR4ZR#4
post this in metin 2 section
10/11/2009 20:32 xxAxelsXx#5
Can I re-open this thread in metin2 section?


@Frezee


In the video, I edit my coordinates with a value; so the mob, when they move, they are spawned on my coordinates.
10/11/2009 22:58 AllesVergeben#6
Very nice, i think it will help many ppl in this forum :)

Thanks to you, lets thx ;)
10/13/2009 14:07 xxAxelsXx#7
thx XD