Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns the amount of (online) Battle.net friends.

numBNetTotal, numBNetOnline, numBNetFavorite, numBNetFavoriteOnline = BNGetNumFriends()

Returns[]

numBNetTotal
number - amount of Battle.net friends on the friends list
numBNetOnline
number - online Battle.net friends
numBNetFavorite
number - favorite battle.net friends
numBNetFavoriteOnline
number - favorite online battle.net friends

Example[]

local total, online = BNGetNumFriends()
print("You have "..total.." Battle.net friends and "..online.." of them are online!")

Patch changes[]

Battle for Azeroth Patch 8.2.0 (2019-06-25): Added numBNetFavorite and numBNetFavoriteOnline. This fixes the friends list sorting.
Wrath-Logo-Small Patch 3.3.5 (2010-06-22): Added.

Advertisement