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 02-01-2011, 10:41 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
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)
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #2  
Old 02-01-2011, 10:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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.
__________________
Reply With Quote
  #3  
Old 02-01-2011, 11:22 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
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 05:09 PM.


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