Hello,
I'm trying to modify the tele-search v2 plugin so it counts the number of players visible at the moment so that I can make it ignore the timeout and teleport immediately in case there are too many players around and no monsters, which will save time on very crowded maps.
I've seen some scripts using the varible $playersList but I've tried to used it with no success, for instance like this:
for my $player (@$playersList) {
$player->{name}
}
Anyone knows how to get the list of visible players/monsters?
Count number of visible players/monsters
Moderator: Moderators
Re: Count number of visible players/monsters
Ok nevermind I figured it out, the player list is in @$playersList and the monster list in @$monstersList
Re: Count number of visible players/monsters
u can contribute your changes here or on github
Please use pin function for uploading your file contents!