public static void HandlePartyCancelInvitation(PartyCancelInvitationMessage message, WorldClient client)
 {
     if (client.Character.HasParty())
     {
         client.Character.Party.CancelInvitation(client.Character, (int)message.guestId);
     }
 }
Exemple #2
0
        public static void PartyCancelInvitation(PartyCancelInvitationMessage message, WorldClient client)
        {
            Party p = WorldServer.Instance.GetPartyById((int)message.partyId);

            if (p != null)
            {
                p.CancelInvitation(client, WorldServer.Instance.WorldClients.Find(x => x.Character.Id == message.guestId));
            }
        }
 public static void HandlePartyCancelInvitationMessage(WorldClient client, PartyCancelInvitationMessage message)
 {
     if (client.Character.IsInParty())
     {
         Character guest = client.Character.Party.GetGuest(message.guestId);
         if (guest != null)
         {
             PartyInvitation invitation = guest.GetInvitation(client.Character.Party.Id);
             if (invitation != null)
             {
                 invitation.Cancel();
             }
         }
     }
 }
Exemple #4
0
        public static void HandlePartyCancelInvitationMessage(WorldClient client, PartyCancelInvitationMessage message)
        {
            if (!client.Character.IsInParty(message.partyId))
            {
                return;
            }

            var guest = client.Character.GetParty(message.partyId).GetGuest((int)message.guestId);

            if (guest == null)
            {
                return;
            }

            var invitation = guest.GetInvitation(message.partyId);

            if (invitation == null)
            {
                return;
            }

            invitation.Cancel();
        }