public static void AddParty(this Packet packet, Party party)
{
packet.PutLong(party.Id);
packet.PutString(party.Name);
packet.PutLong(party.Leader.EntityId);
packet.PutByte(party.IsOpen);
packet.PutInt((int)party.Finish);
packet.PutInt((int)party.ExpRule);
packet.PutLong(0); // Quest id?
packet.PutInt(party.MaxSize);
packet.PutInt((int)party.Type);
packet.PutString(party.DungeonLevel);
packet.PutString(party.Info);
packet.PutInt(party.MemberCount);
packet.AddPartyMembers(party);
}