API BNGetNumFriends

From Wowpedia
Jump to: navigation, search

Returns info about how much Battle.net friends are added to the friendslist and how much of them are currently online.

numFriends, numOnline = BNGetNumFriends()

Returns

numFriends
Integer - number of Battle.net friends on the friendslist
numOnline
Integer - number of online Battle.net friends

Example

local numFriends, numOnline = BNGetNumFriends();
print("You have "..numFriends.." BN friends and "..numOnline.." are online!");

Result

You have x BN friends and y are online!