Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 8.2.5

Returns the Battle.net friend's number of toons.

numGameAccounts = C_BattleNet.GetFriendNumGameAccounts(friendIndex)

Arguments

friendIndex 
number - The Battle.net friend's index on the friends list ranging from 1 to BNGetNumFriends()

Returns

numGameAccounts 
number - The number of accounts or 0 if friend is not online.

Details

  • This function returns the number of ACCOUNTS a player has that are identified with a given battletag ID rather than the number of characters on a given account.

Patch changes

  • Battle for Azeroth Patch 8.2.5 / API (2019-09-24): Moved to C_BattleNet.GetFriendNumGameAccounts()
  • Warlords of Draenor Patch 6.2.4 / API (2016-03-22): Renamed to BNGetNumFriendGameAccounts()
  • Wrath of the Lich King Patch 3.3.3 / API (2010-03-23): Added as BNGetNumFriendToons()
Advertisement