Code:
// This base was made by Coder.Fail, to MPGH
#include "adress.h"
class cItemHack
{
public:
DWORD iSupportItem; //0x0000
char _0x0004[28];
DWORD iRing; //0x0020
char _0x0024[28];
DWORD iBoots; //0x0040
char _0x0044[28];
DWORD iLegs; //0x0060
char _0x0064[28];
DWORD iSword; //0x0080
char _0x0084[28];
DWORD iShield; //0x00A0
char _0x00A4[28];
DWORD iArmor; //0x00C0
char _0x00C4[28];
DWORD iBackPack; //0x00E0
char _0x00E4[28];
DWORD iAmulet; //0x0100
char _0x0104[28];
DWORD iHelmet; //0x0120
char _0x0124[796];
};//Size=0x0440
main.cpp
Code:
// This base was made by Coder.Fail, to MPGH
#include "class.h"
cItemHack *ItemHack = (cItemHack*)(Tibia + ADDR_ItemHack); // class definiton
int Func[99];
void Funcs()
{
if (GetAsyncKeyState(VK_NUMPAD1)&1)
Func[1] =! Func[1];
if ( Func[1] )
{
ItemHack->iBoots = 3079; // Boots Of Haste Hack
}
}
DWORD WINAPI MyHook(LPVOID lpArgs)
{
while(true)
{
do{
__asm CALL [Funcs];
} while (!Tibia);
}
return 0;
}
BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
if( dwReason == DLL_PROCESS_ATTACH )
{
DisableThreadLibraryCalls( hDll );
MessageBox( 0, "Simple Hook", "Tibia", 0 );
CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)&MyHook, 0, 0, 0 );
}
return TRUE;
}
BONUS :