Ejemplo n.º 1
0
        public override async void Execute(Level level)
        {
            try
            {
                Alliance a = await ObjectManager.GetAlliance(level.GetPlayerAvatar().GetAllianceId());

                if (a != null)
                {
                    AllianceMemberEntry _AllianceMemberEntry = a.GetAllianceMember(level.GetPlayerAvatar().GetId());
                    _AllianceMemberEntry.ToggleStatus();
                    PlayerWarStatusMessage _PlayerWarStatusMessage = new PlayerWarStatusMessage(level.GetClient());
                    _PlayerWarStatusMessage.SetStatus(_AllianceMemberEntry.GetStatus());
                    PacketProcessor.Send(_PlayerWarStatusMessage);
                }
            }
            catch (Exception)
            {
            }
        }