I'm not sure if there are much information on these forums about this so I thought I'd just post a simple way how to add anti-paralyze to a bot.
To make this work you will have to change the following functions to your own;
Tibia->ReadMemoryByte(int, int) is simply a function that reads a number of bytes from a specific address in the Tibia client memory.
Packet->Say(std::string) uses packet.dll and makes the player say something in-game, in this case to cure paralyze.
Code:
enum Flags_t
{
poison = 1,
fire = 2,
energy = 4,
drunk = 8,
manashield = 16,
paralyze = 32,
haste = 64,
battle = 128,
water = 256
};
int main()
{
while (1)
{
// Read 4 bytes from this address: 0x00613AF8
int Player_Status = Tibia->ReadMemoryByte(TIBIA_PLAYER_FLAGS, 4);
if ((paralyze & Player_Status) == paralyze)
{
// If we are paralyzed make the player say exura
Packet->Say("exura");
}
// 100 ms delay for example, think it requires windows.h
Sleep(100);
}
return 1;
}
Now if you want to create "anti-poison" or something, you just change:
Code:
if ((paralyze & Player_Status) == paralyze)
to
Code:
if ((poison & Player_Status) == poison)
and then make the player say "exana pox" instead of "exura".