BNGetNumFriendGameAccounts

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak Globe.png  Townlong-Yak BAD.png  Blizz.gif  ProfIcons engineering.png C_BattleNet.GetFriendNumGameAccounts TheWarWithin-Icon-Inline.pngCata-Logo-Small.pngWoW Icon update.png + 8.2.5
GitHub Octocat.png  Townlong-Yak Globe.png BNGetNumFriendGameAccounts Cata-Logo-Small.pngWoW Icon update.png + 6.2.4, - 8.2.5
GitHub Octocat.png  Townlong-Yak Globe.png  Wowprogramming.png BNGetNumFriendToons + 3.3.5, - 6.2.4

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

numGameAccounts = BNGetNumFriendGameAccounts(friendIndex)

Arguments

friendIndex
number - The Battle.net friend's index on the friendslist

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

  • WoD-Logo-Small.png Patch 6.2.4 (2016-03-22): Name changed from BNGetNumFriendToons.