• Welcome to Valhalla Legends Archive.
 

Friend status parsing (0x65)

Started by Deception, August 26, 2004, 11:28 AM

Previous topic - Next topic

Deception

In the BNCS packet 0x65 (SID_FRIENDLIST), the friend's status is the byte after the friend's account name.

Here is what I have found so far (Although I'm sure it is incomplete and possibly incorrect):


Private Function GetFriendStatus(Status As Integer) As String
   Select Case Status
       Case 1: GetFriendStatus = "Mutual Friend"
       Case 2: GetFriendStatus = "Do Not Disturb"
       Case 3: GetFriendStatus = "Mutual Friend, Do Not Disturb"
       Case 4: GetFriendStatus = "Away From Keyboard"
       Case 5: GetFriendStatus = "Mutual Friend, Away From Keyboard"
       Case 7: GetFriendStatus = "Mutual Friend, Do Not Disturb, Away From Keyboard"
   End Select
End Function


Does anyone know all the possible status codes for the friends list?
- Deception of Dark Council

Deception

Well I just noticed a pattern in the status codes and have determined that they are:


       1: Mutual Friend
       2: Do Not Disturb
       3: Mutual Friend, Do Not Disturb
       4: Away From Keyboard
       5: Mutual Friend, Away From Keyboard
       6: Do Not Disturb, Away From Keyboard
       7: Mutual Friend, Do Not Disturb, Away


If anyone knows of any more let me know.
- Deception of Dark Council

MyndFyre

Quote from: Deception on August 26, 2004, 11:33 AM
Well I just noticed a pattern in the status codes and have determined that they are:


       1: Mutual Friend
       2: Do Not Disturb
       3: Mutual Friend, Do Not Disturb
       4: Away From Keyboard
       5: Mutual Friend, Away From Keyboard
       6: Do Not Disturb, Away From Keyboard
       7: Mutual Friend, Do Not Disturb, Away


If anyone knows of any more let me know.

Wow... how about it.... flags...

0x01 : Mutual Friends
0x02 : Do Not Disturb
0x04: Away from Keyboard
Bitwise combinations are possible.

Man, it would be helpful if this was in Bnetdocs.

Oh wait, it is.

Silly :P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

UserLoser.

#3
I thought 1 for status is not in chat, not mutual.

tA-Kane

1 for location type is not in chat. Not 1 for status.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com