Professional Documents
Culture Documents
Hello everyone, in this eBook I'm going to teach you the basics of creating your own
trainer for MapleStory (or any other gane), based on Microsoft Visual C++.
Requirements:
Tutorial:
Step
Step
Step
Step
Step
Credits:
Zawao
DarkSpace
Cam1596
Now select DLL as Application Type and Empty project as an additional option.
Alright, when you've done the following, we are done with Step 1
You can read Step two on Page 3.
MainWForm.h
Right click on MainWForm.h and select View Code from the list, or hold down
Ctrl+Alt+0.
MainWForm.cpp
Double click on MainWForm.cpp to view its code. There should be 1 line of
code, that's the include of MainWForm.h. Under that line of code, we'll need to
insert which namespace we want to use.
How do I know what namespace that I should use?
The namespace can be found in the header file under #pragma once, it's very
often your project's name without spaces. In my case it's MapleStoryTrainer.
So type this coder under the include:
using namespace <your namespace>;
What namespace's does is basically, just making our code a bit easier to use.
Now we can type MainWForm, instead of needing to type
MapleStoryTrainer::MainWForm everytime we need to call our form.
Then add this code:
void Main(void)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Application::Run(gcnew MainWForm);
Application::Exit();
}
Main.cpp
Double click on Main.cpp to view its code. First we'll need to include a windows
file to our Main source file. So to include it, type:
#include <Windows.h>
Now we need to point to the Main function, that we created in MainWForm.cpp.
There are several ways to link to that function, but the most easy way is using
the extern keyword.
Type this under the includes:
extern void Main(void);
Now we need to create a function that is going to be loaded, after a successful
injection.
Under the extern keyword type this:
::BOOL WINAPI DllWork ( __in ::HMODULE hModule )
{
Main();
return TRUE;
}
Double click on the checkbox you just added. Now, you should see the code of
the checkbox, it should look something like this.
We are going to remove the body from the checkbox, make it look like this.
Congratuations! Now you can add however many hacks you want to your
trainer!
Have fun!