Hello everyone,
I'm a new member in the forums hopefully you accept me here hehe :D
Alright, I have a question (consider me as a newbie)
There is something I'm TOO CURIOUS about...
When I was reading some codes, I read some stuff it looked for me as if the coder is typing to a friend or something, like "dothis" or whatever...
I'm trying to learn coding so I can make dll files for a specific game, like addons...
so the question is, how does the dll connects or know exactly the things he is getting into... like for example if i want to edit the chat of an MMORPG game (just an example) i just type "chat" -.- ? ofcourse not.. then what it is?
or is it based on how they made the game itself? so i need to know how the codes of the game itself works?
what if I'm injecting the dll how does it find the right place in the game..
I hope you know what I mean...
Please I'm too curious I know I'm not ready yet but just answer
don't tell me "It's too advanced for you" or "you are too low to understand how it works" just tell me the concept or how it works, is it c++ inside codes or defined codes by the game's maker or...
Your best bet would be to ask these questions in the Windows Programming forum to the left. You can move the thread by editing the topic (press the "edit" button at the top), and select the "Windows Programming" list item in the drop-down list.
Also, I'd change the title of the thread, as it's not descriptive enough, and people will ignore you.
First of all game hacking IS an advanced subject until you learn more it will be more or less impossible to understand.
From what I've heard/read it works like this:
Someone (you can find them yourself, but if someone else already has them why bother) will have already found 'offsets' for certain things in the game (functions, player's location etc.) basically what this means is that if I live in a house I know that the player's health is stored in a house 5 doors down, in order to access it I need to find the address of the first house on that street (the game's base address), if the game starts at house no. 47 I can then easily find the player's health by going to house number 52.
The base address will always change but the offsets won't change, the player's health will always be 5 doors down the road no matter what the first house's address is.
Now the game will already have functions in it such as something simple like chat.addmessage("hello"); which would type 'hello' in the chat box, now using offsets you need to find the pointer to that function and access it that way (I think, someone correct me on this). But that's only
to access something that already exists, if you want to actually hack (say, enable flying) you need to inject assembly code into the process to modify the function's current behaviour.
If you use a program called cheat engine you can find the function that controls your player's ammo fairly easily. All the function will do is, every time you shoot your gun it will decrement your ammo by 1, you can simply change that 'dec' to an 'inc' and every time you shoot it will increase your ammo by 1. If you find the offset for that function you can write a DLL to change that for you.
So until you're more advanced you just won't be able to hack games, you need to know a lot about low-level code and you will definitely need to know assembly, good knowledge of the Windows operating system and the Windows API will also be useful. You'll also have to research on the inner workings of the game itself (and if you're fiddling with memory the chances are the game will notice and just ban your account).
If you're really adamant, go search for 'OHack' it's an open-source hack for World of Warcraft, you'll get lost easily if you don't know a lot about games/assembly/memory.
@Wazzak, I'm sorry mate I thought this is the right place to ask this question since I'm a beginner and Thanks for your advice I will do this next time. ^^
@Naureg, I'm speechless.. Thank you so much for all the great information you have brought to me, this is definitely helping.. All understood sir, Love you.. no homo D:
Goodluck!