Openkore.com

OpenKore Forums
It is currently 18 Aug 2017, 20:02

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Count number of visible players/monsters
PostPosted: 12 Aug 2017, 13:32 
Offline
Noob
Noob

Joined: 12 Aug 2017, 13:22
Posts: 2
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?


Top
 Profile  
 
 Post subject: Re: Count number of visible players/monsters
PostPosted: 12 Aug 2017, 14:08 
Offline
Noob
Noob

Joined: 12 Aug 2017, 13:22
Posts: 2
Ok nevermind I figured it out, the player list is in @$playersList and the monster list in @$monstersList


Top
 Profile  
 
 Post subject: Re: Count number of visible players/monsters
PostPosted: 13 Aug 2017, 09:35 
Online
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 288
u can contribute your changes here or on github

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group