Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-25-2015, 12:17 AM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
Get a servers player list?

Is it possible to get a list of online players from a server? I know there is a way to get the total amount of players but couldn't find a way to get the actual players online.
Reply With Quote
  #2  
Old 04-25-2015, 12:28 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
allayers is a list of all players.

PHP Code:
for ( temp.pl allplayers ) {
  echo(
temp.pl);

Should echo all the players online.
Reply With Quote
  #3  
Old 04-25-2015, 01:45 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
Thank you but I was wondering if I could get a lost of players from an other server and not the one I'm currently on. Sorry I wasn't clear on my earlier message.
Reply With Quote
  #4  
Old 04-26-2015, 01:49 AM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Probably not, but the playerlist has tabs you can open that show players on other public servers.
Reply With Quote
  #5  
Old 04-26-2015, 04:21 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Draenin View Post
Probably not, but the playerlist has tabs you can open that show players on other public servers.
If the player list can it might be possible to just pull the list from there since its just a gui window. Other then that I am not aware of any ways to do it. But I haven't had the need to try and find a way.
Reply With Quote
  #6  
Old 04-26-2015, 06:45 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Yes- here

HTML Code:
requesttext("pmservers", NULL); ^ - returns a list of public servers (used in the playerlist)
requesttext("pmserverplayers", str servername); ^ - shows the players of a given server in the playerlist
requesttext("pmunmapserver", str servername); ^ - hides the players of a given server in the playerlist
requesttext("pmguilds", NULL); ^ - returns a list of the guild tags currently in use
requesttext("pmguildplayers", str guildname); ^ - shows the players wearing the given guild tag in the playerlist
requesttext("pmunmapguild", str guildname); ^ - hides the players wearing the given guild tag in the playerlist
__________________
Reply With Quote
  #7  
Old 04-26-2015, 11:12 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Very nice. Thanks, Andy!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.