Page 1 of 1

Bubbylist - across zones

Posted: 07 Aug 2012, 14:56
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

Re: Bubbylist - across zones

Posted: 08 Aug 2012, 14:53
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.

Re: Bubbylist - across zones

Posted: 08 Aug 2012, 15:00
by vtween
Thanks