Thread Tools Display Modes
07-28-12, 09:20 AM   #1
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Interesting BNet API Change on Build 15913

Just a change to the function BNGetFriendInfoByID(toastData)

Old:
Lua Code:
  1. elseif ( toastType == BN_TOAST_TYPE_BROADCAST ) then
  2.         local presenceID, givenName, surname, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText = BNGetFriendInfoByID(toastData);

New:
Lua Code:
  1. elseif ( toastType == BN_TOAST_TYPE_BROADCAST ) then
  2.         local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText = BNGetFriendInfoByID(toastData);

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};

Last edited by suicidalkatt : 07-28-12 at 09:38 AM.
 
07-28-12, 09:28 PM   #2
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
I noticed that too, maybe we can finally create that alt-tracker addon/unique colored names for realid friends? :P
 
07-29-12, 04:24 AM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
I would love that.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
 
07-29-12, 12:29 PM   #4
Sharparam
A Flamescale Wyrmkin
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 102
I'm getting 16 return values from BNGetFriendInfo/BNGetFriendInfoByID:

Code:
 1: PresenceID
 2: PresenceName
 3: BattleTag
 4: IsBattleTagPresence
 5: ToonName
 6: ToonID
 7: Client
 8: IsOnline
 9: LastOnline
10: IsAFK
11: IsDND
12: BroadcastText
13: NoteText
14: IsFriend (Unknown purpose according to wowpedia/wowprogramming)
15: BroadcastTime
16: Unknown [boolean]
Some of the higher number return values (13+?) might not have appropriate names here, if they have also changed from live.
 
07-29-12, 12:37 PM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
IsFriend may mean that they are also listed on your friends list as a regular friend ( toon wise ).
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
07-29-12, 01:38 PM   #6
Sharparam
A Flamescale Wyrmkin
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 102
Originally Posted by Xrystal View Post
IsFriend may mean that they are also listed on your friends list as a regular friend ( toon wise ).
That's what I think too. I'll test it ^^

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.

Last edited by Sharparam : 07-29-12 at 01:44 PM.
 
 

WoWInterface » Site Forums » Archived Beta Forums » MoP Beta archived threads » Interesting BNet API Change on Build 15912


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off