Today I will share a simple bot that I made a long time ago..
Code:
#include "func.h"
int Func[99];
cPlayerInfo *pPlayer = (cPlayerInfo*)(Tibia + PlayerInfo);
cItemHack *pItem = (cItemHack*)(Tibia + ItemHack);
void Funcs()
{
AddKey(VK_NUMPAD1, Func[0]);
AddKey(VK_NUMPAD2, Func[1]);
AddKey(VK_NUMPAD3, Func[2]);
AddKey(VK_NUMPAD4, Func[3]);
AddKey(VK_NUMPAD5, Func[4]);
AddKey(VK_NUMPAD6, Func[5]);
AddKey(VK_NUMPAD7, Func[6]);
if ( Func[0] )
{
Sleep(10);
keybd_event(VK_F8, 0, 0, 0);
}
if ( Func[1] )
{
Sleep(10);
keybd_event(VK_F9, 0, 0, 0);
}
if ( Func[2] )
{
Sleep(10);
keybd_event(VK_F10, 0, 0, 0);
}
if ( Func[3] )
{
Sleep(10);
keybd_event(VK_F11, 0, 0, 0);
}
if ( Func[4] )
{
Sleep(10);
keybd_event(VK_F12, 0, 0, 0);
}
if ( Func[5] )
pPlayer->Level = 500; // level hack, just visual
if ( Func[6] )
{
pItem->Amuleto = 3057; // amulet of loss
pItem->Armadura = 3366; // magic plate armor
pItem->Bota = 3079; // boots of haste
pItem->Calça = 3389; // demon legs
pItem->Capacete = 3387; // demon helmet
pItem->Espada = 8102; // emerald sword
pItem->Escudo = 3422; // great shield
pItem->Mochila = 5926; // pirate backpack
}
}
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 );
CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)&MyHook, 0, 0, 0 );
}
return TRUE;
}
Code:
#include "address.h"
class cPlayerInfo
{
public:
DWORD EXP; //0x0000
char _0x0004[12];
__int32 Level; //0x0010
__int32 SoulPoints; //0x0014
__int32 MagicLevel; //0x0018
char _0x001C[100];
};//Size=0x0080
class cItemHack
{
public:
DWORD SuporteItem; //0x0000
char _0x0004[28];
DWORD Anel; //0x0020
char _0x0024[28];
DWORD Bota; //0x0040
char _0x0044[28];
DWORD Calça; //0x0060
char _0x0064[28];
DWORD Espada; //0x0080
char _0x0084[28];
DWORD Escudo; //0x00A0
char _0x00A4[28];
DWORD Armadura; //0x00C0
char _0x00C4[28];
DWORD Mochila; //0x00E0
char _0x00E4[28];
DWORD Amuleto; //0x0100
char _0x0104[28];
DWORD Capacete; //0x0120
char _0x0124[796];
};//Size=0x0440