Quick question: _server Objects

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Quick question: _server Objects

Postby mistermind » 06 Oct 2009, 18:42

Is there a way to get the room list?
(same as how we get them from onRoomListUpdate client side, but only server side - not _server.sendRoomList())

I'm trying to use _server.joinRoom to join a fixed room (lobby) but I need to get the id first. All server side.
Basically, send a XT message as "joinAllPublicRooms" rather then join one by one client side.
SELECT * FROM users WHERE clue > 0
0 rows returned.
User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Postby mistermind » 06 Oct 2009, 18:52

Nvm I've figured it out :D
var zone = _server.getCurrentZone()
var lobbyRoom = zone.getRoomByName("Lobby");


me so dumb :roll:
SELECT * FROM users WHERE clue > 0

0 rows returned.

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 4 guests