Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
check players on screen
#1
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.
Reply
#2
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
Reply
#3
Worked perfectly !!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)