Valhalla Legends Forums Archive | BnetDocs Research and Discussion | SID_FRIENDSUPDATE

AuthorMessageTime
JoeTheOdd
The second byte (friend type) doesn't have its meaning clarified below. What does it do, and what are its possible values?
November 30, 2005, 3:43 AM
Myndfyr
This is from ArmaBot 0.9:
[code]
internal void OnUpdate(IncomingPacketStream ips)
{
_flags = (FriendFlags)ips.ReadByte();
_loc = (FriendLocation)ips.ReadByte();
string strName = ips.ReadNonNTString();
_prod = _loc != FriendLocation.Offline ? Product.GetByID(strName) : Product.Unknown;
_chan = ips.ReadNTString();
if (_chan == null)
_chan = String.Empty;

if (this.Updated != null)
Updated(this);
}
[/code]
So it seems like Friend Type (the second byte) is actually current location.
[quote]
0x00: Offline
0x01: Not in chat
0x02: In chat
0x03: In a public game
0x05: In a private game
[/quote]
I will update this.
November 30, 2005, 4:18 AM

Search