My hack dont work
Hello,
I've made my first hack, but it dont work.
He give no errors when making and ingame.
Can someone say me whats wrong in this code?
This is for warrock
I've made my first hack, but it dont work.
He give no errors when making and ingame.
Can someone say me whats wrong in this code?
This is for warrock
Code:
// Yearupie.cpp : Defines the exported functions for the DLL application.
//
#include "Stdafx.h"
#include <Windows.h>
#include <Stdio.h>
float Adv0_X,Adv0_Y,Adv0_Z;
#define ADR_PLAYERPOINTER 0xCEFDB8 // Plyr Base
#define ADR_SERVERPOINTER 0xCEFDB8 // Serv *
#define OFS_STAMINA 0x2C // sta oft
#define OFS_NORECOIL1 0x1C // No Rcol 1
#define OFS_NORECOIL2 0x20 // No Rcol 2
#define OFS_NORECOIL3 0x24 // No Rcol 3
#define OFS_X 0x260 // x
#define OFS_Y 0x268 // y
#define OFS_Z 0x264 // z
#define OFS_SLOT5 0xF91FC // 5th
#define OFS_NFD 0x32C // nfd
#define OFS_PREMIUM 0x37C // pre 1
#define ADR_HACKSHIELD 0x626F50 // shield
#define ADR_SPEEDROLL 0x9DAAE0 // spd roll
#define ADR_SPEED 0x9C7F9C //spd
void Adv0cate_Thread(){
for(;;){
DWORD *InGame=(DWORD*)ADR_PLAYERPOINTER;
DWORD *Lobby=(DWORD*)ADR_SERVERPOINTER;
DWORD dwPlayer=*(DWORD*)ADR_PLAYERPOINTER;
DWORD dwServer=*(DWORD*)ADR_SERVERPOINTER;
if(dwPlayer!=0){
if(dwServer!=0){
if(*InGame){
// Set NFD
*(float*)(dwPlayer+OFS_NFD)=-999;
// If Shiftkey is pressed
if(GetAsyncKeyState(VK_LSHIFT)&1){
// Set speed up
*(float*)(ADR_SPEEDROLL)=1.85F;
}
// Set premium
*(long*)(dwServer+OFS_PREMIUM)=3,10;
// Set norecoil
*(float*)(dwPlayer+OFS_NORECOIL1)=0;
*(float*)(dwPlayer+OFS_NORECOIL2)=0;
*(float*)(dwPlayer+OFS_NORECOIL3)=0;
// if stamina is smaller then 30
if(dwPlayer!=0&&*(float*)(dwPlayer+OFS_STAMINA)<30){
// set stamina back to 30
*(float*)(dwPlayer+OFS_STAMINA)=30;
}
// Open 5th slot
*(long*)(dwServer+OFS_SLOT5)=1;
// if keypress F2
if(GetAsyncKeyState(VK_F2)&1){
// Save position
Adv0_X=*(float*)(dwPlayer+OFS_X);
Adv0_Y=*(float*)(dwPlayer+OFS_Y);
Adv0_Z=*(float*)(dwPlayer+OFS_Z);
// If keypress F3
if(GetAsyncKeyState(VK_F3)&1){
// Teleport
*(float*)(dwPlayer+OFS_X)=Adv0_X;
*(float*)(dwPlayer+OFS_Y)=Adv0_Y;
*(float*)(dwPlayer+OFS_Z)=Adv0_Z;
}
}
// Speed up
*(float*)(ADR_SPEED)=105;
// Superjump
if (GetAsyncKeyState(VK_CONTROL)){
if(dwPlayer != 0)
{
*(float*)(dwPlayer+0x190) = 1500;
}
}
}
if(*Lobby){
// Set premium
*(long*)(dwServer+OFS_PREMIUM)=3,10;
// Set 5th slot
*(long*)(dwServer+OFS_SLOT5)=1;
}
}
}
}
Sleep(200);
}
BOOL WINAPI DllMain(HINSTANCE hModule,DWORD dwReason,LPVOID lpvReserved){
if(dwReason==DLL_PROCESS_ATTACH){
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Adv0cate_Thread,0,0,0);
}
return TRUE;
}

DD!!!