public static void HandlePartyRefuseInvitationMessage(GameClient client, PartyRefuseInvitationMessage message) { if (client.Character.Party != null) { client.Character.Party.RefuseInvitation(client); client.Character.Party = null; } }
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); } }
public static void HandlePartyRefuseInvitationMessage(WorldClient client, PartyRefuseInvitationMessage message) { PartyInvitation invitation = client.Character.GetInvitation(message.partyId); if (invitation != null) { invitation.Deny(); } }
public static void PartyRefusedInvitation(PartyRefuseInvitationMessage message, WorldClient client) { Party p = WorldServer.Instance.GetPartyById((int)message.partyId); if (p != null) { p.RefuseInvitation(client); } }
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); } }