Пример #1
0
 public static void SendPartyInvitationMessage(WorldClient client, Game.Parties.Party party, Character from)
 {
     client.Send(new PartyInvitationMessage(party.Id,
                                            (sbyte)party.Type,
                                            party.Name,
                                            (sbyte)party.MembersLimit,
                                            from.Id,
                                            from.Name,
                                            client.Character.Id // what is that ?
                                            ));
 }
Пример #2
0
 public static void SendPartyJoinMessage(IPacketReceiver client, Game.Parties.Party party)
 {
     client.Send(new PartyJoinMessage(party.Id,
                                      (sbyte)party.Type,
                                      party.Leader.Id,
                                      (sbyte)party.MembersLimit,
                                      party.Members.Select(party.GetPartyMemberInformations).ToArray(),
                                      party.Guests.Select(party.GetPartyGuestInformations).ToArray(),
                                      party.RestrictFightToParty,
                                      party.Name));
 }
Пример #3
0
 public static void SendPartyDeletedMessage(IPacketReceiver client, Game.Parties.Party party)
 {
     client.Send(new PartyDeletedMessage(party.Id));
 }
Пример #4
0
 public static void SendPartyMemberRemoveMessage(IPacketReceiver client, Game.Parties.Party party, Character leaver)
 {
     client.Send(new PartyMemberRemoveMessage(party.Id, leaver.Id));
 }
Пример #5
0
 public static void SendPartyNewGuestMessage(IPacketReceiver client, Game.Parties.Party party, Character guest)
 {
     client.Send(new PartyNewGuestMessage(party.Id, guest.GetPartyGuestInformations(party)));
 }
Пример #6
0
 public static void SendPartyNewMemberMessage(IPacketReceiver client, Game.Parties.Party party, Character member)
 {
     client.Send(new PartyNewMemberMessage(party.Id, party.GetPartyMemberInformations(member)));
 }
Пример #7
0
 public static void SendPartyUpdateMessage(IPacketReceiver client, Game.Parties.Party party, Character member)
 {
     client.Send(new PartyUpdateMessage((uint)party.Id, member.GetPartyMemberInformations()));
 }
Пример #8
0
 public static void SendPartyNameSetErrorMessage(IPacketReceiver client, Game.Parties.Party party, PartyNameErrorEnum reason)
 {
     client.Send(new PartyNameSetErrorMessage(party.Id, (sbyte)reason));
 }
Пример #9
0
 public static void SendPartyLeaderUpdateMessage(IPacketReceiver client, Game.Parties.Party party, Character leader)
 {
     client.Send(new PartyLeaderUpdateMessage(party.Id, leader.Id));
 }
Пример #10
0
 public static void SendPartyKickedByMessage(IPacketReceiver client, Game.Parties.Party party, Character kicker)
 {
     client.Send(new PartyKickedByMessage(party.Id, kicker.Id));
 }
Пример #11
0
 public static void SendPartyFollowStatusUpdateMessage(WorldClient client, Game.Parties.Party party, bool success, int followedId)
 {
     client.Send(new PartyFollowStatusUpdateMessage(party.Id, success, followedId != 0, followedId));
 }
Пример #12
0
 public static void SendPartyCannotJoinErrorMessage(IPacketReceiver client, Game.Parties.Party party, PartyJoinErrorEnum reason)
 {
     client.Send(new PartyCannotJoinErrorMessage((uint)party.Id, (sbyte)reason));
 }
Пример #13
0
 public static void SendPartyInvitationMessage(WorldClient client, Game.Parties.Party party, Character from)
 {
     client.Send(new PartyInvitationMessage((uint)party.Id, (sbyte)party.Type, "partyzizi", 8, (uint)from.Id, from.Name, (uint)client.Character.Id));
 }
Пример #14
0
 public static void SendPartyJoinMessage(IPacketReceiver client, Game.Parties.Party party)
 {
     client.Send(new PartyJoinMessage((uint)party.Id, (sbyte)party.Type, (uint)party.Leader.Id, 8,
                                      from entry in party.Members
                                      select entry.GetPartyMemberInformations(), party.Guests.Select((Character entry) => entry.GetPartyGuestInformations(party)), party.Restricted, "partyzizi"));
 }
Пример #15
0
 public static void SendPartyRestrictedMessage(IPacketReceiver client, Game.Parties.Party party)
 {
     client.Send(new PartyRestrictedMessage(party.Id, party.RestrictFightToParty));
 }
Пример #16
0
 public static void SendPartyNameUpdateMessage(IPacketReceiver client, Game.Parties.Party party)
 {
     client.Send(new PartyNameUpdateMessage(party.Id, party.Name));
 }
Пример #17
0
 public static void SendPartyMemberInFightMessage(IPacketReceiver client, Game.Parties.Party party, Character member, PartyFightReasonEnum reason, IFight fight)
 {
     client.Send(new PartyMemberInFightMessage(party.Id, (sbyte)reason, member.Id, member.Account.Id, member.Name, fight.Id,
                                               new MapCoordinatesExtended((short)fight.Map.Position.X, (short)fight.Map.Position.Y, fight.Map.Id, (short)fight.Map.SubArea.Id), (short)(fight.GetPlacementTimeLeft().TotalMilliseconds / 100)));
 }
Пример #18
0
 public static void SendPartyLoyaltyStatusMessage(IPacketReceiver client, Game.Parties.Party party, bool loyal)
 {
     client.Send(new PartyLoyaltyStatusMessage(party.Id, loyal));
 }
Пример #19
0
 public static void SendPartyRestrictedMessage(IPacketReceiver client, Game.Parties.Party party, bool restricted)
 {
     client.Send(new PartyRestrictedMessage((uint)party.Id, restricted));
 }