|
You last visited: Today at 04:24
Advertisement
How To Make A MobLock [METIN2]
Discussion on How To Make A MobLock [METIN2] within the General Coding forum part of the Coders Den category.
|
#1
|
elite*gold: 0
Join Date: Jun 2009
Posts: 5
Received Thanks: 8
|
How To Make A MobLock [METIN2]
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....
|
|
|
|
#2
|
elite*gold: 99
Join Date: Oct 2008
Posts: 2,708
Received Thanks: 1,726
|
Maybe you shoul explain how you got the coordinates... That would help more than only the adresses.
|
|
|
|
#3
|
elite*gold: LOCKED
Join Date: Oct 2008
Posts: 2,817
Received Thanks: 2,044
|
WoW very good  but in the moment i canŽt try it but iŽll give you a thanks
|
|
|
|
#4
|
elite*gold: 360
Join Date: Jan 2008
Posts: 1,127
Received Thanks: 522
|
post this in metin 2 section
|
|
|
|
#5
|
elite*gold: 0
Join Date: Jun 2009
Posts: 5
Received Thanks: 8
|
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.
|
|
|
|
#6
|
elite*gold: 9
Join Date: Apr 2009
Posts: 10,163
Received Thanks: 3,811
|
Very nice, i think it will help many ppl in this forum
Thanks to you, lets thx
|
|
|
|
#7
|
elite*gold: 0
Join Date: Jun 2009
Posts: 5
Received Thanks: 8
|
thx XD
|
|
|
All times are GMT +2. The time now is 04:25.
|
|