[TUTORIAL] Making a Trainer Using C++ in easiest way

11/18/2012 09:00 FUJl#1
Well most of players want to learn how to create a DLL to inject in cabalmain. Now it's your turn to Create you own DLL using C++.

Take notes: making it simply or coding it in only 1 C++ Files it will result to Complexity so i applied Object Oriented Programming (OOP) to keep it neat, clean, easy to understand and easy to update.

Added Sampe Cheat and Used Multi Level Pointer
-Change Nation
-Movement Speed
-No Cooldown BM2
-Perfect Combo
-No Skill Delay
Requirements
1.) Visual Studio 2005/2008/2010/2012
2.) [Only registered and activated users can see links. Click Here To Register...]
Injector might be use
1.) [Only registered and activated users can see links. Click Here To Register...]
2.) [Only registered and activated users can see links. Click Here To Register...]
3.) [Only registered and activated users can see links. Click Here To Register...]
1.) Run Visual Studio then Click New Project.
2.) Click Win32, Select Win32 Project then Enter the Name of your DLL then hit OK Button
3.) After clicking OK Button, the next window pop-up with “Previous”,”Next”, “Finish”,”Cancel”. Click Next Button
4.) Choose DLL then checked Empty Project then hit Finish Button
5.) After clicking finish, you will see like this.
6.) On Solution Explorer you will add 2 C++ File and 2 Header File.
- Right Click on Header Files > Add > New Item > Select Header File (.h) then name it AllDefines
- Right Click on Header Files > Add > New Item > Select Header File (.h) then name it MyCheat
- Right Click on Source Files > Add > New Item > Select C++ File (.cpp) then name it MainDLL
- Right Click on Source Files > Add > New Item > Select C++ File (.cpp) then name it MyCheat
This is the result after adding files.

Now will add some sample code.
AllDefines.h
MyCheat.h
MyCheat.cpp
MainDLL.cpp

6.) Make it Release to prevent error “msvcp100d.dll”
If you don’t install C++ Redistribution. You will encounter DLL problem.
DEBUG = msvcp100d.dll
RELEASE = msvcp100.dll
7.) Click Build on Menu then Build MySampleDLL
8.) After build DLL you will see “Build succeeded” Now the final step is open the Compiled DLL.
On Solution Explorer Click Show All Files > Right Click Release > Click Open Folder in Windows Explorer.
You will see the MySampleDLL.dll

Special Thanks:
-[Only registered and activated users can see links. Click Here To Register...] for ep9 CE table based on Cabal NA (Support Win 7 32bit and 64bit Only)
-[Only registered and activated users can see links. Click Here To Register...] for Simple C++ Code of AOE

Don't forget to HIT THANKS :D
11/18/2012 09:17 feliz009#2
Great job.. this will help and save alot of requests for tutorials of cheat creating .. keep on the good work and thanks
11/18/2012 09:18 teachmehowtodoggie#3
thanks for this sir FUJI.
11/18/2012 10:09 envylang#4
u guys might want it to compile as /MT too..it should work with any pc and no need to install redist
11/18/2012 10:36 tear56#5
sir can we change the hotkeys for the cheat?
11/18/2012 11:42 FUJl#6
Quote:
Originally Posted by tear56 View Post
sir can we change the hotkeys for the cheat?
yes you can modify it.

All hotkeys is belong in MyCheat.cpp

Just change GetKeyState(HOTKEYS)

if you want to make it LEFT CTRL + KEY
Code:
if (GetKeyState(VK_LCONTROL) < 0) //LEFT CONTROL
{
     if (GetKeyState(VK_F12) < 0) //F12
     {
          //YOUR CODE
     }

     if (GetKeyState(VK_NUMPAD1) < 0) //NUMPAD 1
     {
          //YOUR CODE
     }
}
to show all Hotkey List.... type VK_ then press LEFT CTRL + SPACE
11/18/2012 21:44 joxof#7
OMG... the tutorial is too detailed for noobsters among us, Thanks :D
11/19/2012 01:36 shene#8
much better if sir acid will make it stiky :o
11/19/2012 06:13 mr.fury#9
nice tut thanks bro
11/19/2012 07:14 tear56#10
sir where can we download the microsoft visual studio?? please link it
11/20/2012 01:24 jazzdwayouwar#11
Nice one :D
11/20/2012 02:13 firewaller#12
you're the man sir.... my wish has been granted.... thank you very very much sir.... added rep to you sir
11/20/2012 02:20 madzkull#13
how do you find the addresses?
11/20/2012 14:37 firewaller#14
i did one using visual studio 2008... i'll try if it works
11/20/2012 17:14 kleinidefix#15
wenn ich das ding über nen bypass laufen lasse funzt es,alles gut und schön.... aber da is ja der hund begraben.ich möcht das ding ja schließlich ohne bypass haben und ich hab keine ahnung wie ich die memory protection umgehe.für einen hilfreichen hinweis wäre ich sehr dankbar^^