Ejemplo n.º 1
0
 public static void HandlePartyRefuseInvitationMessage(GameClient client, PartyRefuseInvitationMessage message)
 {
     if (client.Character.Party != null)
     {
         client.Character.Party.RefuseInvitation(client);
         client.Character.Party = null;
     }
 }
Ejemplo n.º 2
0
        public static void HandlePartyRefuseInvitation(PartyRefuseInvitationMessage message, WorldClient client)
        {
            AbstractParty party = PartyProvider.Instance.Parties.Find(x => x.Id == message.partyId);

            if (party != null)
            {
                party.RefuseInvation(client.Character);
            }
        }
Ejemplo n.º 3
0
        public static void HandlePartyRefuseInvitationMessage(WorldClient client, PartyRefuseInvitationMessage message)
        {
            PartyInvitation invitation = client.Character.GetInvitation(message.partyId);

            if (invitation != null)
            {
                invitation.Deny();
            }
        }
Ejemplo n.º 4
0
        public static void PartyRefusedInvitation(PartyRefuseInvitationMessage message, WorldClient client)
        {
            Party p = WorldServer.Instance.GetPartyById((int)message.partyId);

            if (p != null)
            {
                p.RefuseInvitation(client);
            }
        }
Ejemplo n.º 5
0
        public static void PartyInvitationMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            PartyInvitationMessage msg = (PartyInvitationMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            if (account.MyGroup != null && msg.FromName == account.MyGroup.GetMaster().CharacterBaseInformations.Name)
            {
                PartyAcceptInvitationMessage msg2 = new PartyAcceptInvitationMessage(msg.PartyId);
                account.SocketManager.Send(msg2);
                account.Log(new BotTextInformation("J'ai rejoint le groupe :3"), 3);
            }
            else
            {
                PartyRefuseInvitationMessage msg2 = new PartyRefuseInvitationMessage(msg.PartyId);
                account.SocketManager.Send(msg2);
            }
        }