RSS

Четверг, 14.11.2024, 06:27
Главная » WoW API » API Функции » Battle.net »

BNGetFriendInfo

[ править ]
Returns information about a RealID friend by index.
[клоны]
Returns information about a RealID friend by index.

Signature:
Code
presenceID, givenName, surname, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isFriend, unknown = BNGetFriendInfo(friendIndex)

Arguments:
  • friendIndex - Index (between 1 and BNGetNumFriends()) (number)

Returns:
  • presenceID - auto incrementing ID, reset at each login. Persists across reload of UI, but not change of character (number)
  • givenName - First name of the friend, as a new form of chatlink. Visually looks like a string, but only when rendered (|K string, Kstring)
  • surname - Last name (surname) of the friend, as a new form of chatlink. Visually looks like a string, but only when rendered (|K string, Kstring)
  • toonName - Name of the active character tied to the BNet account (string)
  • toonID - (number)
  • client - The name of the game the friend is currently playing, if any; Returns nil if not online. Returns initialism for World of Warcraft ('WoW') (string)
  • isOnline - Online status (boolean)
  • lastOnline - (number)
  • isAFK - (boolean)
  • isDND - (boolean)
  • messageText - RealID broadcast message displayed below the user on your friends list (string)
  • noteText - The player's personal note for the friend; nil for no note (string)
  • isFriend - (boolean)
  • unknown - (number)

Также смотрите: Battle.net , Battle.net functions
Ссылки: http://wowprogramming.com/docs/api/BNGetFriendInfo