there are lots of code available over the net. code interaction with a gui is not something that's specific to creating a game cheat. :DQuote:
Need sample about a c++ code for a DLL that Exports value... This can be used to accept and use GUI from VStudio. A sample code is appreciated.
Quote:
#include "stdafx.h"
#define ADDR_GM 0x1076C40
#define ADDR_AOE 0x10C730C
#define ADDR_RANGE 0x10C7308
#define ADDR_SHOWHP 0x10C7618
int Enabled;
int ShowHP=0;
int SpeedHack=0;
void Start();
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
MessageBoxA(HWND_DESKTOP,"Injected","By:SAMPLE",MB _OK);
}
return TRUE;
}
void Start()
{
while (1)
{
if (GetKeyState(VK_F12) < 0) // Turn On
{
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 1500;
*(DWORD*)ADDR_RANGE = 30;
DWORD SPEEDHACK = *(DWORD*)0x0B8CBF0;
*(DWORD*)(SPEEDHACK+0x204) = 1142292480;
Enabled=1;
}
if (GetKeyState(VK_F11) < 0) // Turn Off
{
*(DWORD*)ADDR_GM = 0;
*(DWORD*)ADDR_AOE = 0;
*(DWORD*)ADDR_RANGE = 0;
DWORD SPEEDHACK = *(DWORD*)0x0B8CBF0;
*(DWORD*)(SPEEDHACK+0x204) = 1138819072;
DWORD NODELAY = *(DWORD*)0x0B8CBF0;
*(DWORD*)(NODELAY+0x72d4) = 1236561;
Enabled=0;
}
if (Enabled==1)
{
DWORD NODELAY = *(DWORD*)0x0B8CBF0;
*(DWORD*)(NODELAY+0x72d4) = 1629697; //Freeze 1629697 = NSD (Dance, press D -> SP Eegen)
DWORD COMBO1 = *(DWORD*)0x0B8CBF0;
*(DWORD*)(COMBO1+0x73a0) = 0; //Freeze 0 = Use Whole Combo bar
DWORD COMBO2 = *(DWORD*)0x0B8CBF0;
*(DWORD*)(COMBO2+0x7384) = 0; //Freeze 0 = Always 1 Combo
}
Sleep(1);
}
}
Quote:
Well, I've got alot of pms asking me how ive done my bot without getting any detection.
Its seems that this community is thinking that nothing can be done without a bypass.
WRONG!
You cant patch memory in cabalmain.exe but you can modify temporary values of the game, such as the GM variables and more without being detected.
Here is the code for making a DLL that enable GM/AOE/Range when pressing F11 and disabling with F12.
Hope it will give a head start for people WHO REALLY WANT TO LEARN.
Those addresses are for Cabal EU.
All you have to do is compile this code and inject the DLL into 'cabalmain.exe'.
Any injector should do the job.
PHP Code:#include "stdafx.h"
#define ADDR_GM 0x1075C48
#define ADDR_AOE 0x10C62FC
#define ADDR_RANGE 0x10C62F8
void Start();
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
}
return TRUE;
}
void Start()
{
while (1)
{
if (GetKeyState(VK_F11) < 0) // Turn On
{
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 100;
*(DWORD*)ADDR_RANGE = 7;
}
if (GetKeyState(VK_F12) < 0) // Turn Off
{
*(DWORD*)ADDR_GM = 0;
*(DWORD*)ADDR_AOE = 0;
*(DWORD*)ADDR_RANGE = 0;
}
Sleep(1);
}
}
TeraHack