public static void HandlePartyAcceptInvitationMessage(WorldClient client, PartyAcceptInvitationMessage message)
        {
            PartyInvitation invitation = client.Character.GetInvitation(message.partyId);

            if (invitation != null)
            {
                invitation.Accept();
            }
        }
Esempio n. 2
0
        public static void PartyAcceptInvitation(PartyAcceptInvitationMessage message, WorldClient client)
        {
            Party p = WorldServer.Instance.GetPartyById((int)message.partyId);

            if (p != null)
            {
                p.AcceptInvitation(client);
            }
        }
Esempio n. 3
0
        public static void HandlePartyAcceptInvitation(PartyAcceptInvitationMessage message, WorldClient client)
        {
            var party = client.Character.GuestedParties.Find(x => x.Id == message.partyId);

            if (party != null)
            {
                party.AcceptInvitation(client.Character);
            }
            else
            {
                client.Send(new PartyCannotJoinErrorMessage(0, (sbyte)PartyJoinErrorEnum.PARTY_JOIN_ERROR_PARTY_NOT_FOUND));
            }
        }
Esempio n. 4
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);
            }
        }
Esempio n. 5
0
 public static void HandlePartyAcceptInvitationMessage(Client client, PartyAcceptInvitationMessage message)
 {
 }
Esempio n. 6
0
 public static void HandlePartyAcceptInvitationMessage(GameClient client, PartyAcceptInvitationMessage message)
 {
     client.Character.Party.AcceptInvitation(client);
 }