Thread Tools Display Modes
Unread 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: 317
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.
suicidalkatt is offline  
Unread 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: 766
I noticed that too, maybe we can finally create that alt-tracker addon/unique colored names for realid friends? :P
Vlad is offline  
Unread 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,391
I would love that.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline  
Unread 07-29-12, 12:29 PM   #4
Sharparam
A Warpwood Thunder Caller
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 96
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.
Sharparam is offline  
Unread 07-29-12, 12:37 PM   #5
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,047
IsFriend may mean that they are also listed on your friends list as a regular friend ( toon wise ).
__________________
Xrystal is offline  
Unread 07-29-12, 01:38 PM   #6
Sharparam
A Warpwood Thunder Caller
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 96
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.
Sharparam is offline  
 

Go BackWoWInterface » WoD Beta » MoP archived threads » Interesting BNet API Change on Build 15912

Thread Tools
Display Modes

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