BBot - The best bot of the world
check players on screen - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: check players on screen (/thread-21041.html)



check players on screen - micheel15 - 04-15-2019

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.


RE: check players on screen - Catar - 04-15-2019

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


RE: check players on screen - micheel15 - 04-15-2019

Worked perfectly !!!