/// <summary> /// Updates all members of the new creature that has joined the party. /// </summary> /// <param name="creature"></param> public static void PartyJoinUpdateMembers(Creature creature) { var party = creature.Party; var packet = new Packet(Op.PartyJoinUpdate, 0); packet.AddPartyMember(creature); party.Broadcast(packet, true, creature); }
/// <summary> /// Adds party member data to the referenced packet. /// </summary> /// <param name="party"></param> /// <param name="packet"></param> public static void AddPartyMembers(this Packet packet, Party party) { var members = party.GetMembers(); for (int i = members.Length - 1; i >= 0; i--) { packet.AddPartyMember(members[i]); if (i == 0) { packet.PutInt(3); packet.PutLong(0); } else { packet.PutInt(1); packet.PutLong(0); } } packet.PutByte(0); }
/// <summary> /// Adds party member data to the referenced packet. /// </summary> /// <param name="party"></param> /// <param name="packet"></param> public static void AddPartyMembers(this Packet packet, Party party) { var members = party.GetMembers(); for (int i = members.Length - 1; i >= 0; i--) { packet.AddPartyMember(members[i]); packet.PutInt(i == 0 ? 3 : 1); // [200200, NA242 (2016-12-15)] { packet.PutByte(0); packet.PutShort(128); packet.PutInt(0); packet.PutInt(0); packet.PutInt(0); } packet.PutLong(0); } packet.PutByte(0); }
/// <summary> /// Updates all members of the new creature that has joined the party. /// </summary> /// <param name="creature"></param> public static void PartyJoinUpdateMembers(Creature creature) { var party = creature.Party; var packet = new Packet(Op.PartyJoinUpdate, 0); packet.AddPartyMember(creature); party.Broadcast(packet, true, creature); }