Need help.

Posts 1–5 of 5 · Page 1 of 1
Need help.
I made a dll file for WarRock ph but when I inject it, it doesnt works correct me if something is wrong with my codes

Base:
Code:
#include <windows.h> // Include the windows header file 
#include "Addys.h" // Include the addies

void Hack(void){
for(;;){
DWORD Servercall = *(DWORD*)ADR_PLAYERPOINTER;
DWORD Playercall = *(DWORD*)ADR_SERVERPOINTER;

void NoSpread()
;{
*(float*)ADR_NOSPREAD = 0;
}
}

void NoRecoil()
;{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
}

Sleep(10);
}

BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0,0, (LPTHREAD_START_ROUTINE)Hack, 0, 0, 0);
MessageBoxA(0, "Danecoder", "Hack by:", 0);
break;
}
return TRUE;
}
And This is the Addys:

Code:
#define ADR_PLAYERPOINTER		0x00A90408
#define ADR_SERVERPOINTER		0x00A8F3B0
#define ADR_NOSPREAD		    0x00A84C2E
#define OFS_NORECOIL1			0x00C444
#define OFS_NORECOIL2			0x00C448
#define OFS_NORECOIL3			0x00C44C
Remove those in RED color
Code:
for(;;){
DWORD Servercall = *(DWORD*)ADR_PLAYERPOINTER;
DWORD Playercall = *(DWORD*)ADR_SERVERPOINTER;

void NoSpread()
;{
*(float*)ADR_NOSPREAD = 0;
}
}

void NoRecoil()
;{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
}

Sleep(10);
}
Maybe try like this

Code:
void NoSpread()
;{
*(float*)ADR_NOSPREAD = 0;
}
}

void NoRecoil()
;{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
}
void Hack(void){
for(;;){
DWORD Servercall = *(DWORD*)ADR_PLAYERPOINTER;
DWORD Playercall = *(DWORD*)ADR_SERVERPOINTER;

NoRecoil();
NoSpread();

Sleep(10);
}
Hmmmm still not working maybe i need to try new codes
Quote Originally Posted by DaneCoder View Post
Hmmmm still not working maybe i need to try new codes
Code:
#include <stdio.h>
#include "Addys.h"

DWORD *Servercall = (DWORD*)ADR_PLAYERPOINTER;
DWORD *Playercall = (DWORD*)ADR_SERVERPOINTER;

void NoSpread()
{
        DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
	if(dwPlayerPtr != 0)
	{
	         *(float*)OFS_NoSpread = 0;
	}
}

void NoRecoil()
{
        DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
        if(dwPlayerPtr != 0)
        {
                 *(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
                 *(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
                 *(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
        }
}

void Hacks()
{
        for(;;)
        {
                  if(*Playercall)
                  {
                            NoSpread();
                            NoRecoil();
                   }
                  if(*Servercall)
                  {
                            //Server hacks goes here eg. Premium, 5 to 8 Slots and etc
                   }
                  Sleep(200);
        }
}

BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0,0, (LPTHREAD_START_ROUTINE)Hacks, 0, 0, 0);
MessageBoxA(0, "Danecoder", "Hack by:", 0);
break;
}
return TRUE;
}
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us