Valhalla Legends Archive

Programming => Battle.net Bot Development => BnetDocs Research and Discussion => Topic started by: Joe[x86] on November 29, 2005, 09:43 PM

Title: SID_FRIENDSUPDATE
Post by: Joe[x86] on November 29, 2005, 09:43 PM
The second byte (friend type) doesn't have its meaning clarified below. What does it do, and what are its possible values?
Title: Re: SID_FRIENDSUPDATE
Post by: MyndFyre on November 29, 2005, 10:18 PM
This is from ArmaBot 0.9:

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

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
I will update this.