My hack dont work

Posts 1–15 of 26 · Page 1 of 2
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

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;
}
If it doesn't work it's not your hack, fag off copy-paster
Quote Originally Posted by Hell_Demon View Post
If it doesn't work it's not your hack, fag off copy-paster
This is the first hack,
if i know the basics i can make better hacks by my self.
Quote Originally Posted by yearupie View Post
This is the first hack,
if i know the basics i can make better hacks by my self.

CopyPastar
= you

If you want to learn the basics learn the basics! But go copying 100 lines of someone's code ans say you made it.... >_>
Ok, i've made a new project, NFD AND Superjump works.
What is wrong with the other hacks?

I am here to learn something about hacking warrock with c++,

Code:
// wh4l.cpp : Defines the exported functions for the DLL application.
//

#include "Stdafx.h"
#include <Windows.h>
#include <Stdio.h>
#define ADR_PLAYERPOINTER 0xCEFDB8 // Plyr Base
#define ADR_SERVERPOINTER 0xCEFDB8 // Serv *
#define OFS_STAMINA 0x28 // sta oft
#define OFS_Z 0x264 // z
#define OFS_SLOT5 0xF91FC // 5th
#define OFS_SLOT6 0xf91FD // 6th
#define OFS_SLOT7 0xf91FE // 7th
#define OFS_SLOT8 0xf91FF // 8th
#define OFS_NFD 0x32C // nfd
#define OFS_PREMIUM 0x37C // pre 1
#define ADR_HACKSHIELD 0x626F50 // shield

/////////////////
DWORD *ingame= (DWORD*)ADR_PLAYERPOINTER;
DWORD *megame= (DWORD*)ADR_SERVERPOINTER;
////////////////

// HACK CODES //


void Stamina()
{
	DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
	if(dwPlayerPtr != 0)
	{
		DWORD stamina = *(float*)(dwPlayerPtr + OFS_STAMINA);
		if(stamina<30)
		{
			*(float*)(dwPlayerPtr+OFS_STAMINA) = 30;
		}
	}
}

void Jump()
{
	if(GetAsyncKeyState(VK_CONTROL) &1)
	{
		DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
		if(dwPlayerPtr != 0)
		{
		   *(float*)(dwPlayerPtr+OFS_Z) = 2500;
		}
	}
}

void NFD()
{
    DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
    if(dwPlayerPtr != 0)
	{
		*(float*)(dwPlayerPtr+OFS_NFD) = -20000;
	}
}
void Slots()
{
	DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
	if(dwPlayerPtr != 0)
	{
		 *(int*)(dwPlayerPtr + OFS_SLOT5)= 1;
		 *(int*)(dwPlayerPtr + OFS_SLOT6)= 1;
		 *(int*)(dwPlayerPtr + OFS_SLOT7)= 1;
		 *(int*)(dwPlayerPtr + OFS_SLOT8)= 1;
	}
}
void HackThread()
{
    for(;;)
    {
        if(*ingame)
		{
			NFD();
			Jump();
			Stamina();
			Slots();
        }
        if(*megame)
        {
			Slots();
        }
         Sleep(200);
    }
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
    if(dwReason == DLL_PROCESS_ATTACH)
    {
        CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create the hackthread
    }
	return TRUE;
}
You might be compiling it wrong, injecting it wrong, or the addies could be outdated. It would be easier to know what the problem was if it was you could be more specific, but considering you come in with completely leeched code and then say "fix it" (as if that's our job), not knowing even if you know how to compile code or even know what a compiler is. For all I know you could be sticking this in a text file, renaming the extension .dll, and then wondering why it doesn't work. Lol.

This is why leeching code doesn't help. Go learn hello world then come back because no one can really help you till you have some idea what ur talking about.
I have much experience with PHP / Javascript. These programming languages are very similar to C ++. One of the differences with C ++ is that it isn't an object oriented scripting language.
Quote Originally Posted by yearupie View Post
I have much experience with PHP / Javascript. These programming languages are very similar to C ++. One of the differences with C ++ is that it isn't an object oriented scripting language.
Quote Originally Posted by wikipedia
C++ is designed to directly and comprehensively support multiple programming styles (procedural programming, data abstraction, object-oriented programming, and generic programming)
You are a failure...
Well I suppose it technically isn't an "object oriented scripting language" its not a script =/
Quote Originally Posted by why06 View Post
Well I suppose it technically isn't an "object oriented scripting language" its not a script =/
Still object oriented tho, and most scripting languages I know are losely based on C
Quote Originally Posted by yearupie View Post
I have much experience with PHP / Javascript. These programming languages are very similar to C ++. One of the differences with C ++ is that it isn't an object oriented scripting language.
Yes it isnt a scripting language but its still object oriented, and as Hell_Demon said most scripting languages are loosely based on a form of C.

My advice is that you learn C++, even if we give you the way to fix your code it's not going to help you in the long run. C++ isnt like many other languages you cant just pick up bits along the way and by the end know what your doing.
With C++ you have to start from day 1, "Hello World."
Quote Originally Posted by Generist View Post
Yes it isnt a scripting language but its still object oriented, and as Why06 said most scripting languages are loosely based on a form of C.

My advice is that you learn C++, even if we give you the way to fix your code it's not going to help you in the long run. C++ isnt like many other languages you cant just pick up bits along the way and by the end know what your doing.
With C++ you have to start from day 1, "Hello World."
Speaking of "Hello World", I just made my first .exe in cpp :DDD!!!
Quote Originally Posted by KABLE View Post
Speaking of "Hello World", I just made my first .exe in cpp DD!!!
I still have my first ever "Hello World" .exe saved. Just for the memories.
Quote Originally Posted by Generist View Post
I still have my first ever "Hello World" .exe saved. Just for the memories.
dun think im going to delete mine either
Quote Originally Posted by KABLE View Post
dun think im going to delete mine either
Just a word of advice, NEVER give up. Sometimes you will honestly feel like banging your head against a wall because of all your compiling errors. But never give up. If you need me i can help.
Posts 1–15 of 26 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us