Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Get a servers player list? (https://forums.graalonline.com/forums/showthread.php?t=134269938)

Kirko 04-25-2015 12:17 AM

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.

scriptless 04-25-2015 12:28 AM

allayers is a list of all players.

PHP Code:

for ( temp.pl allplayers ) {
  echo(
temp.pl);


Should echo all the players online.

Kirko 04-25-2015 01:45 PM

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.

Draenin 04-26-2015 01:49 AM

Probably not, but the playerlist has tabs you can open that show players on other public servers.

scriptless 04-26-2015 04:21 AM

Quote:

Originally Posted by Draenin (Post 1735905)
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.

xAndrewx 04-26-2015 06:45 AM

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


Draenin 04-26-2015 11:12 PM

Very nice. Thanks, Andy!


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

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