Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Any way to get a list of active servers? (https://forums.graalonline.com/forums/showthread.php?t=134261923)

Jiroxys7 02-01-2011 10:41 PM

Any way to get a list of active servers?
 
Like if for whatever reason, I wanted to make a GUI that brings up the current server list including all UC servers. like getserverlist(); or something.
And if by the slim chance something like this does exist, would they be sorted based on their status? (gold, classic, hosted, hidden)

cbk1994 02-01-2011 10:52 PM

It's possible through requestText but I don't know the parameters needed...it might only be available on login servers.

EDIT: See this list. Looks like it's only available for privileged scripts but I would test it anyway. If all else fails you could always use data from statistics.graal.us.

fowlplay4 02-01-2011 11:22 PM

How you would make the request to statistics.graal.us :)

PHP Code:

function onCreated() { 
  
temp.url "http://statistics.graal.us/server/list?xml=1";
  
temp.req requesturl(temp.url);
  
this.catchevent(temp.req"onReceiveData""onServerListData");
}

function 
onServerListData(obj) {
  
// obj.fulldata - result of web request.


View the source on the page to see what you're dealing with. I don't know why unless you're remaking a server-list GUI for some reason.


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

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