Code:
#include "stdafx.h"
#include "functions.h"
DWORD dfgiddfg;
HANDLE dfgdsgdsg;
void OpenMemory()
{
HWND frgss = FindWindow(0, "WarRock");
GetWindowThreadProcessId(frgss, &dfgiddfg);
dfgdsgdsg = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE|PROCESS_QUERY_INFORMATION, FALSE, dfgiddfg);
}
void Stamina()
{
int t=1120403456;
OpenMemory();
WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)0x8B9B04, &t , 4,NULL);
}
void Teleport(float x, float y, float z)
{
long raddyx, raddyy, raddyz; // Real address of coordinates
long readxyz; // Read base address
ReadProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)0x1279280, &readxyz, 4,NULL);
raddyx = readxyz + 0x174;
raddyy = readxyz + 0x17C;
raddyz = readxyz + 0x178;
WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddyx, &x , 4,NULL);
WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddyy, &y , 4,NULL);
WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddyz, &z , 4,NULL);
}
Code:
HINSTANCE hDLL = NULL;
// 1) Teleport
typedef void (*STAMINA)();
STAMINA Stamina;
// 2) Teleport
typedef void (*TELEPORT)(float x, float y, float z);
TELEPORT Teleport;
Code:
hDLL = AfxLoadLibrary("LH1337DLL");
if( hDLL == NULL )
{
MessageBox("Could not load LH1337DLL.dll");
}
else
{
Stamina = (STAMINA)GetProcAddress(hDLL, "Stamina");
Teleport = (TELEPORT)GetProcAddress(hDLL, "Teleport");
}