Hi there,
I'm working on a project which uses Smartfox Server and I was wondering if it's possible to cycle through the zones, so people can see how many users are on each zone and how full it is.
In the docs I've found the way to connect to Smartfox by XMLSocket in order to get the usercount for each zone, but I was wondering if there is another way to get more zone info (like zone names, capacity, usercount etc) beforehand so users can choose which zone to log onto.
Thanks in advance,
Maarten
Cycling through zones
-
- Posts: 1
- Joined: 22 Sep 2010, 08:44
You can obtain a list of Zones from server side in your extension, and then send the relevant data to clients. However you will first need to create a common Zone where all players are initially logged in before being able to access any other Zone.
What language do you use on the server side? Java?
If so you can use:
What language do you use on the server side? Java?
If so you can use:
Code: Select all
SmartFoxServer.getInstance().getAllZones()
-
- Posts: 2
- Joined: 31 Oct 2011, 19:09
-
- Posts: 2
- Joined: 31 Oct 2011, 19:09
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 23 guests