Interesting BNet API Change on Build 15913
Just a change to the function BNGetFriendInfoByID(toastData)
Old: Lua Code:
New: Lua Code:
This also was changed for any other BNGet functions to provide a 'presenceName' instead of 'givenName' and 'surname'. This is all to start using the new BattleTag id system. Also some new BATTLENET_FONT_COLOR_CODE and BATTLENET_FONT_COLOR globals in the Contants.lua. BATTLENET_FONT_COLOR_CODE = "|cff82c5ff"; BATTLENET_FONT_COLOR = {r=0.510, g=0.773, b=1.0}; |
I noticed that too, maybe we can finally create that alt-tracker addon/unique colored names for realid friends? :P
|
I would love that.
|
I'm getting 16 return values from BNGetFriendInfo/BNGetFriendInfoByID:
Code:
1: PresenceID |
IsFriend may mean that they are also listed on your friends list as a regular friend ( toon wise ).
|
Quote:
EDIT: No, I just tested on a RealID friend that I do not have on normal friend list. IsFriend was true. Could it be something related to if the toon is friendly to you? (Same faction/realm et.c) EDIT2: This testing is on live. EDIT3: Could it be that the labeling on wowpedia is incorrect? I'm not sure where they got the "isFriend" from. |
isFriend should be isRIDFriend. That might clear things up a little.
The last boolean is canSoR. Code:
local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(id) |
Quote:
EDIT: Wrong API function >.< |
Battletags uses this function aswell, that is probably why that return is in.
|
BNGetFriendToonInfo() on beta:
Code:
1 hasFocus (boolean) |
presenceName is just the merging of name and surname together, so arg 3 can be a new arg, battletag. of course arg 4 also shoved a "isbattletag" arg in there as well. being point, they didn't actually get rid of name or surname. presenceName = name+surname
just thought i'd clarify this since i've done a lot of work with the api recently. |
Was waiting that they add "server name" too. Without server I can`t find a way to invite bnet fiends from other realms to a party.
|
Quote:
|
what is the difference between BNGetFriendToonInfo and BNGetFriendInfo? Im using BNGetFriendInfo with all the same returns... it would seem there is no difference? hmm and i saw a 3rd way up there? BNGetFriendInfoByID?
|
Quote:
BNGetFriendToonInfo returns information about a character your friend is currently logged into. You can call it multiple times with different arguments to get information about all of the characters they are currently logged into. If your friend is only logged into one character, then BNGetFriendToonInfo isn't terribly useful, but if they are logged into more than one character, it's the only way to get information about the additional characters. |
All times are GMT -6. The time now is 06:12 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI