View Single Post
Unread 07-15-2012, 03:19 AM   #2
DeathTiger
 
DeathTiger's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 11
Quote:
Originally Posted by DeeJayTC View Post
Hey,
while playing around with some ideas i was trying to get information about online friends and guildmembers and inventory slots etc.

However i always end up with "undefined" e.g no object instance found.

Was trying to do the following:

com.gameobjects.guild.getinstance().gettotalguildmembers()
com.gameobjects.friends.getonlinefriends()
com.gameobjects.friends.getonlineguildmembers()

nothing seems to work...

What is needed to access the data?
Add the required import.
PHP Code:
import com.GameInterface.Friends
Set the number of online friends within a function.
PHP Code:
var onlineFriends:Number Friends.GetOnlineFriends(); 
Worked for me.
DeathTiger is offline   Reply With Quote