Speed Hack Not Working
Hello everybody im a new programmer and im making a simple DLL hack for warrock, Well I have Premium hack, and 5th slot hack currently and am trying to Incorporate Speed hack. this is my current source code 100% credits to me.
And the Speed hack is not working, any tips on making it work?
Code:
//////////////////////////INCLUDES////////////////////
#include <Windows.h>
///////////////////////////INCLUDES//////////////////////
//////////////DEFINES//////////////////////////////////
#define ADR_PLAYERPOINTER 0xA01808
#define ADR_SERVERPOINTER 0xA017A4
#define OFS_SLOT5 0x1021BC
#define OFS_PREM 0x58C
#define ADR_SPEED 0x864A48
/////////////////////////DEFINES///////////////////////
/////////////////////INGAME/OUTGAME Defines////////////////
DWORD *ingame = (DWORD*)ADR_PLAYERPOINTER;
DWORD *outgame = (DWORD*)ADR_SERVERPOINTER;
////////////////////////////////////////////////////
/////////////////////////////SLOT 5////////////////////////////
void SLOT_5()
{
DWORD wrServerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(wrServerPtr != 0)
{
*(long*)(wrServerPtr + OFS_SLOT5) = 1;
}
}
///////////////////////////////////////////////////////////////
////////////////////PREMIUM/////////////////////////////
void PREM()
{
DWORD wrServerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(wrServerPtr != 0)
{
*(long*)(wrServerPtr + OFS_PREM) = 4;
}
}
/////////////////////////////////////////////////////
//////////////////SPEED////////////////////////////
void SPEED()
{
*(float*)(ADR_SPEED) = 300;
}
//////////////////FOR LOOP////////////////
void myloop()
{
for(;;)
{
if(*ingame)
{
SPEED();
}
if(*outgame)
{
SLOT_5();
PREM();
}
}
Sleep(200);
}
//////////////////////////////////////////////////////////
//////////////////CREATE DLL THREAD////////////////////////////
BOOL WINAPI DllMain(HINSTANCE mod, DWORD GIGGLE_BASE, LPVOID res)
{
switch(GIGGLE_BASE)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)myloop, 0, 0, 0);
break;
}
return TRUE;
}
/////////////////////////////////////////////////////////

