|
You last visited: Today at 14:03
Advertisement
[TUTORIAL] Making a Trainer Using C++ in easiest way
Discussion on [TUTORIAL] Making a Trainer Using C++ in easiest way within the Cabal Guides & Templates forum part of the Cabal Online category.
11/18/2012, 09:00
|
#1
|
elite*gold: 0
Join Date: Oct 2012
Posts: 235
Received Thanks: 8,667
|
[TUTORIAL] Making a Trainer Using C++ in easiest way
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
Requirements1.) Visual Studio 2005/2008/2010/2012
2.) Injector might be use1.)
2.)
3.) 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
Code:
//============================================================= 1.0.0.200 ========================================================
//BASE ADDRESS
#define ADDR_BASE 0x00A9B820
//MOVEMENT SPEED
#define MOVEMENT_OFFSET 0x204
//NATION (0x0370)
#define NATION_OFFSET 0x0370
//POINTER BELOW IS ONLY WORK IN WIN 7 32BIT AND 64BIT
//BM2 POINTERS
#define BM2_PTR1 0x3a0
#define BM2_PTR2 0x270
#define BM2_PTR3 0x34c
#define BM2_PTR4 0x124
#define BM2_PTR5 0x20
//PERFECT COMBO
#define CBO_MAIN1 0x3c8
#define CBO_MAIN2 0x2b0
#define CBO_PTR1 0x7d4
#define CBO_PTR2 0x7f1
//NO SKILL DELAY/SP REGEN
#define NSD_PTR1 0x3c8
#define NSD_PTR2 0x2a0
#define NSD_PTR3 0x738
//================================================================================================================================
MyCheat.h
Code:
#include "AllDefines.h"
//====================== CHANGE NATION ================================
void CHANGE_NATION()
{
if(*(DWORD*)(*(DWORD*)ADDR_BASE+NATION_OFFSET) == 3)
*(DWORD*)(*(DWORD*)ADDR_BASE+NATION_OFFSET) = 0;
else
*(DWORD*)(*(DWORD*)ADDR_BASE+NATION_OFFSET) += 1;
Sleep(500);
}
//====================================================================
//====================== MOVEMENT SPEED ==============================
void MOVE_SPEED(float Speed)
{
*(float*)(*(DWORD*)ADDR_BASE+MOVEMENT_OFFSET) = Speed;
}
//====================================================================
//THIS MULTI LEVEL OFFSET FOR BM2, COMBO AND NSD IS ONLY WORK IN WIN 7 32BIT AND 64BIT
//====================== BM2 =========================================
void NOCD_BM2()
{
DWORD *BM2_1 = (DWORD*)(*(DWORD*)ADDR_BASE + BM2_PTR1);
DWORD *BM2_2 = (DWORD*)(*(DWORD*)BM2_1 + BM2_PTR2);
DWORD *BM2_3 = (DWORD*)(*(DWORD*)BM2_2 + BM2_PTR3);
DWORD *BM2_4 = (DWORD*)(*(DWORD*)BM2_3 + BM2_PTR4);
*(DWORD*)(*(DWORD*)BM2_4 + BM2_PTR5) = 0x0;
}
//====================================================================
//====================== PERFECT COMBO ===============================
void NOCD_COMBO()
{
//SIMILAR POINTER
DWORD *MAIN_1 = (DWORD*)(*(DWORD*)ADDR_BASE + CBO_MAIN1);
DWORD *MAIN_2 = (DWORD*)(*(DWORD*)MAIN_1 + CBO_MAIN2);
//COMBO
*(DWORD*)(*(DWORD*)MAIN_2 + CBO_PTR1) = 0x0;
*(DWORD*)(*(DWORD*)MAIN_2 + CBO_PTR2) = 0x0;
}
//====================================================================
//====================== NO SKILL DELAY ==============================
void NSD()
{
DWORD *NSD_1 = (DWORD*)(*(DWORD*)ADDR_BASE + NSD_PTR1);
DWORD *NSD_2 = (DWORD*)(*(DWORD*)NSD_1 + NSD_PTR2);
*(DWORD*)(*(DWORD*)NSD_2 + NSD_PTR3) = 1629697;
}
//====================================================================
MyCheat.cpp
Code:
#include <windows.h>
#include "MyCheat.h"
void Start()
{
bool OnSpeed,OnBM2,OnCombo,OnNSD;
char * CAPTION = "My Sample DLL";
while(true)
{
//================================ CHANGE NATION ===================================================
if (GetKeyState(VK_F11) < 0) {CHANGE_NATION();}
//==================================================================================================
//================================ MOVEMENT SPEED ==================================================
if (GetKeyState(VK_F12) < 0)
{
if(!OnSpeed){
OnSpeed = true;
MessageBoxA (NULL,"Movement Speed ON",CAPTION,MB_OK);
}else{
OnSpeed = false;
MOVE_SPEED(450.0);
MessageBoxA (NULL,"Movement Speed OFF",CAPTION,MB_OK);
}
}
//==================================================================================================
//THIS BM2, COMBO AND NSD IS ONLY WORK IN WIN 7 32BIT AND 64BIT
//================================ NO COOLDOWN BM2 =================================================
if (GetKeyState(VK_F10) < 0)
{
if(!OnBM2){
OnBM2 = true;
MessageBoxA (NULL,"No Cooldown BM2 ON",CAPTION,MB_OK);
}else{
OnBM2 = false;
MessageBoxA (NULL,"No Cooldown BM2 OFF",CAPTION,MB_OK);
}
}
//==================================================================================================
//================================ PERFECT COMBO ===================================================
if (GetKeyState(VK_F9) < 0)
{
if(!OnCombo){
OnCombo = true;
MessageBoxA (NULL,"PERFECT COMBO ON",CAPTION,MB_OK);
}else{
OnCombo = false;
MessageBoxA (NULL,"PERFECT COMBO OFF",CAPTION,MB_OK);
}
}
//==================================================================================================
//================================ NO SKILL DELAY ==================================================
if (GetKeyState(VK_F8) < 0)
{
if(!OnNSD){
OnNSD = true;
MessageBoxA (NULL,"No Skill Delay ON",CAPTION,MB_OK);
}else{
OnNSD = false;
MessageBoxA (NULL,"No Skill Delay OFF",CAPTION,MB_OK);
}
}
//==================================================================================================
//================================ FREEZING VALUE ==================================================
if(OnSpeed) MOVE_SPEED(600.0);
if(OnBM2) NOCD_BM2();
if(OnCombo) NOCD_COMBO();
if(OnNSD) NSD();
//==================================================================================================
Sleep(1);
}
}
MainDLL.cpp
Code:
#include <windows.h>
extern void Start();
//=========================================================== STARTING POINT =======================================================
BOOL WINAPI DllMain ( HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
{
switch ( dwReason ) {
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hModule);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
MessageBoxA (NULL,"Cheat Activated","My Sample DLL",MB_OK);
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
return TRUE;
}
//==================================================================================================================================
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:
- for ep9 CE table based on Cabal NA (Support Win 7 32bit and 64bit Only)
- for Simple C++ Code of AOE
Don't forget to HIT THANKS
|
|
|
11/18/2012, 09:17
|
#2
|
elite*gold: 0
Join Date: Mar 2012
Posts: 646
Received Thanks: 153
|
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
|
#3
|
elite*gold: 0
Join Date: Jul 2012
Posts: 84
Received Thanks: 20
|
thanks for this sir FUJI.
|
|
|
11/18/2012, 10:09
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 387
Received Thanks: 1,568
|
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
|
#5
|
elite*gold: 0
Join Date: Jul 2012
Posts: 27
Received Thanks: 4
|
sir can we change the hotkeys for the cheat?
|
|
|
11/18/2012, 11:42
|
#6
|
elite*gold: 0
Join Date: Oct 2012
Posts: 235
Received Thanks: 8,667
|
Quote:
Originally Posted by tear56
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
|
#7
|
elite*gold: 0
Join Date: Dec 2011
Posts: 209
Received Thanks: 41
|
OMG... the tutorial is too detailed for noobsters among us, Thanks
|
|
|
11/19/2012, 01:36
|
#8
|
elite*gold: 0
Join Date: Aug 2012
Posts: 97
Received Thanks: 174
|
^_^
much better if sir acid will make it stiky
|
|
|
11/19/2012, 06:13
|
#9
|
elite*gold: 0
Join Date: Apr 2009
Posts: 80
Received Thanks: 12
|
nice tut thanks bro
|
|
|
11/19/2012, 07:14
|
#10
|
elite*gold: 0
Join Date: Jul 2012
Posts: 27
Received Thanks: 4
|
sir where can we download the microsoft visual studio?? please link it
|
|
|
11/20/2012, 01:24
|
#11
|
elite*gold: 0
Join Date: May 2011
Posts: 69
Received Thanks: 25
|
Nice one
|
|
|
11/20/2012, 02:13
|
#12
|
elite*gold: 0
Join Date: Jun 2012
Posts: 45
Received Thanks: 3
|
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
|
#13
|
elite*gold: 0
Join Date: Apr 2008
Posts: 36
Received Thanks: 2
|
how do you find the addresses?
|
|
|
11/20/2012, 14:37
|
#14
|
elite*gold: 0
Join Date: Jun 2012
Posts: 45
Received Thanks: 3
|
i did one using visual studio 2008... i'll try if it works
|
|
|
11/20/2012, 17:14
|
#15
|
elite*gold: 0
Join Date: May 2012
Posts: 80
Received Thanks: 77
|
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^^
|
|
|
|
|
Similar Threads
|
Easiest Way To found the true adress With Cytriik Trainer
05/07/2011 - S4 League Hacks, Bots, Cheats & Exploits - 20 Replies
You need theese
Cytriik Trainer
Process Hacker
Cheat Engine
ID List
brain.exe
Install the Cytriik trainer than open S4
Trainer will auto suspend Aegis and Aegis64
|
World Easiest and fastest Buff Trainer 4 free
10/09/2010 - 9Dragons - 11 Replies
Hello... why use super Wannabe Advanced buff trainers when you can just use auto keybord when you start 9D with GameGuardKiller?
is easy to use.. and it can generate tons of numbers and letters and guees what?.. deelay is 1ms.. or 99999999Ms.. ur choise.. i use this every time.. and is so trust able.. Like : Ve shield Train, Set VE shield at Number 1. then make keystroke, push number 1 then make it generate 5000 and deelay on 1000ms "1 second" or just 100 ms to be sure its fast :) then Make...
|
[Tutorial]Easiest way unblock ur self from GBL
02/20/2010 - Kal Online - 29 Replies
There are alot of tutorials how to bypass GBL but it is easiest way i think unblock your self from GBL (hardware ban) realy simple, and fast.
Download PBDownForce run it and press start spoofing. Also you can set up some options, but it no necessary. Just sometimes :pimp:
Sorry was not having time to make virusscan. You can do it your self here:
Jotti's malware scan
Good luck.
|
What is easiest tutorial in Fragment hack?
09/01/2009 - Grand Chase Philippines - 11 Replies
i want to duplicate my fragment but how? or easily to get?
|
All times are GMT +1. The time now is 14:03.
|
|