Bubbylist - across zones

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

Moderators: Lapo, Bax

Post Reply
vtween
Posts: 36
Joined: 26 Jul 2007, 17:31

Bubbylist - across zones

Post by vtween »

Hi,

I'm in the process of developing a buddylist to our SFS virtual world.
In the application implementation I used Zones as a way to distribute users when selecting a "Server".
All the zones are similar and users may logout and relogin to another one.

I would like to implement the buddylist where users may see user online but not only on their current zone.
By what I could figure out from your code the status variable is updated only if the user is in the same zone as its buddy.

Is there a way to manipulate BuddyListManager.loadBuddyList(String username) in order to perform Zone.checkBuddy over all zones,
or should I manually go over the list and update it with calling for each zone with Zone.validateUserName or Zone.checkBuddy which is synchronized?

Is there a way to query the SmartFoxServer to validate a username?

Thanks
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Bubbylist - across zones

Post by rjgtav »

Hi.
No, it's not possible to change that behaviour.
In this scenario, I think the best way is to, in your users database (where you store all user's information) you also store an isOnline or a currentZone property and read it when you log in.
Or maybe you could use BuddyOfflineVariables for this? Not sure if it would work, if you stored as an offline variable the current zone name or null in case the user is offline.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
vtween
Posts: 36
Joined: 26 Jul 2007, 17:31

Re: Bubbylist - across zones

Post by vtween »

Thanks
Post Reply