Example #1
0
 public static void SendGameFightSpectatorJoinMessage(IPacketReceiver client, IFight fight)
 {
     client.Send(new GameFightSpectatorJoinMessage(false, false, false, fight.IsStarted,
                                                   fight.IsStarted ? (short)0 : (short)(fight.GetPlacementTimeLeft().TotalMilliseconds / 100), (sbyte)fight.FightType, fight.GetPartiesName()));
 }
Example #2
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)));
 }