{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+NFD_Player_OffSet) = -20000;
}
}
void nobounds () //nobounds
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)No_Bounds_2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)No_Bounds_2, &t , sizeof(t));
VirtualProtect((void*)No_Bounds_2, sizeof(t), Protection, 0);
VirtualProtect((void*)No_Bounds_2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)No_Bounds_2, &t , sizeof(t));
VirtualProtect((void*)No_Bounds_2, sizeof(t), Protection, 0);
}
void nowater () //no water
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)No_Water, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)No_Water, &t , sizeof(t));
VirtualProtect((void*)No_Water, sizeof(t), Protection, 0);
}
void PXItemSP2 ()
{
*(int*)(Stamina_10Porcent) = 1;
}//+ 5% hp
void Dig()
{
if(GetAsyncKeyState(VK_MENU) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = -2000;
}
}
}
void ExtraAmmo () //we want extrea clip allways =)
{
*(int*)(Extra_Ammo_1) = 1;
}
void ExtraAmmo2 () //we want extrea clip allways =)
{
*(int*)(Extra_Ammo_2) = 1;
}
void premium () //Gold Premium
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+Premium_OffSet) = 3, 10; // 1 = bronze 2 = silver 3 = gold
}
}
void spread () //no spread
{
*(float*) No_Spread = 0;
}
void Slots5 ()
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+Slot5_OffSet) = 1;
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
jump();
nfd();
premium();
spread();
nowater();
nobounds();
norecoil();
speedon1();
speedon2();
speedon3();
speedoff();
nofog();
Dig();
fullbright();
FastAll();
Slots5();
Spawn();
}
if(*outgame)
{
premium();
ExtraAmmo();
ExtraAmmo2();
Slots5();
PXItemSP2();
}
}
Sleep(200); //prevent for overloading the cpu
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); //create the hackthread
break;
}
return TRUE;
}
Use this source to study! This is the basics of programming WarRock hacks.
Credits : legendary and xflick
and lastly click + in the upper right if i help u Smile