BBot - The best bot of the world

Full Version: check players on screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need a macro that when pressing a key checks how many players have on the screen and makes the character speak the amount of players that are in the screen of who used the macro

example: by pressing the macro key the character will say this.

There are 20 players on your screen.
try this, i can't test it because i dont have any tibia client/character/ots to try it on.
(used minus key for this)
Code:
Tibia.KeyDown(:K_SUBTRACT)==1
plos:=Creatures.PlayersOnScreen()

!plos==1 [single]
Self.Say(There is one player on the screen)
exit()
{single}
Self.Say(There are !plos players on the screen)
exit()

set it to auto ~100-200 and try not to press key for too long Tongue
otherwise, add cooldown
Worked perfectly !!!