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

11/25/2012 23:37 audreyxp2012#31
Quote:
Originally Posted by 9amer View Post
Ok, I'm sharing my part of code then:rolleyes:.
How to make the value of walk through gates address reversible, so you can change it anytime you want.

Well it is pretty easy to guess, since there is another address with the same value of the map.

using FUJI's Tutorial do this:

Added Sampe Cheat and Used Multi Level Pointer
-Walk through gates/ kill gates

[u]([colore=red]I will make it for EU (ep8)client[/colore])[u]

AllDefines.h
Code:
//BASE (STATIC ADDRESS)
#define    ADDR_BASE			0x00B8B990

//MAP OFFSET
#define    OFFSET_WLKKLLGTS		0x72e4

//MAP ADDRESS NR2 (STATIC ADDRESS)
#define    ADDR_WLKKLLGTS2		0x00B98BB8
MyCheat.cpp
Code:
//================= WALK THROUGH GATES =====================
	if (GetAsyncKeyState(VK_F1) < 0)				// Turn On
	{
		*(DWORD*)(*(DWORD*)ADDR_BASE + OFFSET_WLKKLLGTS) = 1;
	}
	if (GetAsyncKeyState(VK_F1) < 0 && GetAsyncKeyState(VK_F2) < 0 ) // Turn Off
	{
		*(DWORD*)(*(DWORD*)ADDR_BASE + OFFSET_WLKKLLGTS) = *(DWORD*)ADDR_WLKKLLGTS2;
	}

sir can share how to code it on episode 9. there are 2 or 3 offset
11/25/2012 23:45 bartbilf#32
This is pretty clear, this can be used as template for every version. Should be stickied along with the PSCBots tutorial (but then there might be too many stickies;p)
11/26/2012 01:03 9amer#33
I am not able to play with NA client, but using the [Only registered and activated users can see links. Click Here To Register...]'s ep9 CE table mentioned on the first page of this thread it would be this way:

AllDefines.h
Code:
//BASE (STATIC ADDRESS)
#define    ADDR_BASE			0xA9B820

//MAP OFFSET
#define    OFFSET_1		0x3c8
#define    OFFSET_2		0x2b0
#define    OFFSET_3		0x3c8
MyCheat.cpp
Code:
	if (GetAsyncKeyState(VK_F1) < 0)				//Walk through gates/ kill gates
	{
		*(DWORD*)(*(DWORD*)ADDR_BASE + OFFSET_1 + OFFSET_2 + OFFSET_3) = 1;
	}
	if (GetAsyncKeyState(VK_F2) < 0) // Turn Off
	{
		*(DWORD*)(*(DWORD*)ADDR_BASE + OFFSET_1 + OFFSET_2 + OFFSET_3) = 57;				//DP
	}
Note: You have to relog to get the previous map value.
11/26/2012 02:47 syndrah#34
if you use it with cabal na as it is now, you will crash on any activation.
11/26/2012 05:21 Glenox#35
many people using C+P


whahahaha
11/26/2012 06:13 bihasa123#36
so nice
11/26/2012 10:08 audreyxp2012#37
Quote:
Originally Posted by 9amer View Post
I am not able to play with NA client, but using the [Only registered and activated users can see links. Click Here To Register...]'s ep9 CE table mentioned on the first page of this thread it would be this way:

AllDefines.h
Code:
//BASE (STATIC ADDRESS)
#define    ADDR_BASE			0xA9B820

//MAP OFFSET
#define    OFFSET_1		0x3c8
#define    OFFSET_2		0x2b0
#define    OFFSET_3		0x3c8
MyCheat.cpp
Code:
	if (GetAsyncKeyState(VK_F1) < 0)				//Walk through gates/ kill gates
	{
		*(DWORD*)(*(DWORD*)ADDR_BASE + OFFSET_1 + OFFSET_2 + OFFSET_3) = 1;
	}
	if (GetAsyncKeyState(VK_F2) < 0) // Turn Off
	{
		*(DWORD*)(*(DWORD*)ADDR_BASE + OFFSET_1 + OFFSET_2 + OFFSET_3) = 57;				//DP
	}
Note: You have to relog to get the previous map value.
just want to know if there is way that we need not to relog to get the previous map value?
11/26/2012 11:46 FUJl#38
Quote:
Originally Posted by audreyxp2012 View Post
just want to know if there is way that we need not to relog to get the previous map value?
1 = Bloody Ice
57 = Finish Dungeon/DP Hack
GetCurrentMap() = Restore to Default Map and you don't need to relog...

[Only registered and activated users can see links. Click Here To Register...]

Sample Code Above
Code:
	if (GetAsyncKeyState(VK_F2) < 0) // Turn Off
	{
		*(DWORD*)(*(DWORD*)ADDR_BASE + OFFSET_1 + OFFSET_2 + OFFSET_3) = GetCurrentMap();
	}
11/26/2012 15:18 brianjoey#39
sir..how to enable nation war nsd?
11/26/2012 15:34 9amer#40
Quote:
Originally Posted by brianjoey View Post
sir..how to enable nation war nsd?
If you followed the entire thread then you have to remove only these 2 lines in [Only registered and activated users can see links. Click Here To Register...]
Code:
		case 15:return false;break;		//MWAR (Lobby)
		case 16:return false;break;		//MWAR
11/27/2012 08:58 tear56#41
sir fuji when i injected the dll the cabal auto close itself?? why is that??
11/27/2012 09:43 boommat#42
sir i'am new in this type of application ... i copied your code in making a trainer ... and follow all the instruction ... but i can't find the MySampleDll in the release folder ... what is wrong at my work??? please guide me sir ... your work is so great so that i want to learned from the expert ... Thanks!!

cabalmain.exe ERROR when i inject the DLL ...
11/27/2012 11:39 rantenor#43
Another thing, if you want to add while loop that does not intercept with the rest, you can put that in another function. Call another CreateThread that points to that function.

This is helpful specially when you want to have delay freezing addresses.
11/27/2012 15:24 romelmirasol#44
does no work on me!
11/28/2012 00:09 audreyxp2012#45
can anyone help me to convert the code of combo hack, NSD and No cooldown bm2 that work in windows xp sp3. thanks in advance