public void Create(Character Creator, Character Invited) { Members.Add(Creator); Creator.Party = this; this.Leader = Creator; AbstractParty.SendPartyJoinMessage(Creator); Creator.Client.Send(new PartyUpdateMessage((uint)this.Id, this.GetPartyMemberInformations(Creator))); AbstractParty.SendPartyInvitationMessage(Invited, Creator, this); }
public void AddMember(Character character) { if (!Members.Contains(character)) { Members.Add(character); character.Party = this; RemoveGuest(character); AbstractParty.SendPartyJoinMessage(character); character.Client.Send(new PartyUpdateMessage((uint)this.Id, this.GetPartyMemberInformations(character))); UpdateMember(character); RemoveGuest(character); } }
public static void SendPartyInvitationMessage(Character Invited, Character Invitor, AbstractParty Party) { Invited.Client.Send(new PartyInvitationMessage((uint)Party.Id, (sbyte)Party.Type, Party.PartyName, Party.MaxParticipants, (ulong)Invitor.Id, Invitor.Name, (ulong)Invited.Id)); Party.AddGuest(Invited); }