Hai,
Soooo, I'm trying to add Wall Hack code to FUJI's C++ code, he also posted a list of addresses, that's where I got the address from. There are no pointers.
This is what I added
to MyCheat.h
//========================WALLHACK================== =============
void Wall_Hack()
{
*(DWORD*)(*(DWORD*)WALLHACK_ADDR) = 1629697;
}
to MyCheat.cpp
if (GetKeyState(VK_F3) < 0)
{
if(!OnWallHack){
OnWallHack = true
MessageBoxA (NULL, "Wall Hack ON",CAPTION,MB_OK);
}else{
OnWallHack = true
MessageBoxA (NULL,"Wall Hack OFF",CAPTION,MB_OK);
}
}
to AllDefines.h
//WALLHACK
#define WALLHACK_ADDR 00E92858
this is the error I get when I attempt to build:
1>------ Build started: Project: MySampleDll, Configuration: Release Win32 ------
1> MyCheat.cpp
1>c:\users\amin\documents\visual studio 2012\projects\mysampledll\mysampledll\MyCheat.h(15 ): error C2440: 'type cast' : cannot convert from 'double' to 'DWORD *'
1>MyCheat.cpp(18): error C2065: 'OnWallHack' : undeclared identifier
1>MyCheat.cpp(19): error C2065: 'OnWallHack' : undeclared identifier
1>MyCheat.cpp(20): error C2146: syntax error : missing ';' before identifier 'MessageBoxA'
1>MyCheat.cpp(22): error C2065: 'OnWallHack' : undeclared identifier
1>MyCheat.cpp(23): error C2146: syntax error : missing ';' before identifier 'MessageBoxA'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I don't know any C++, I made what's up there completely based of of FUJI's other code. Right now I'm taking the first CS class of my life and that's CS 1114 (intro to java) and I'm only 4 weeks in. As you can imagine im a noob, but I do try.
Ignore the syntax errors I'll fix those, the undecleared identifiers are what I need help with. What are the identifiers I'm supposed ot use and how should I code it?
Cabal version is NA (what's out right now)
windows 7 64bit
visual studios professional 2012
visual studios is original.
Additional info:
So I found out that I had to define OnWallHack as a boolean expression, which I did:
to MyCheat.cpp
void Start()
{
bool OnSpeed,OnBM2,OnCombo,OnNSD, OnWallHack;
char * CAPTION = "My Sample DLL";
while(true)
....
and I fixed the syntax errors and this is my new error:
1>------ Build started: Project: MySampleDll, Configuration: Release Win32 ------
1> MyCheat.cpp
1>c:\users\amin\documents\visual studio 2012\projects\mysampledll\mysampledll\MyCheat.h(15 ): error C2440: 'type cast' : cannot convert from 'double' to 'DWORD *'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have no idea what it means when it says "cannot convert from 'double' to 'DWORD*'
right now I have this:
void Wall_Hack()
{
*(DWORD*)(*(DWORD*)WALLHACK_ADDR) = 1629697;
}
It's not supposed to be equal to 1629697, I have no idea what it's supposed to be equal to. I also don't know how to make it so that I have wallhacks in every dungeon and map(if the value is different for each one)
I'm stuck here and don't think I can get this by myself, anyone wanna help me out?
Thanks in advance ^^
If you don't want to put the code up then you can pm it to me, it would really be appreciated =3.