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?
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.
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
I thought 1 for status is not in chat, not mutual.
1 for location type is not in chat. Not 1 for status.