Example #1
0
 public void LeaveWatcher(Entities.GameClient Watcher)
 {
     Watcher.CanAttack = true;
     if (!Watcher.LeaveDynamicMap())
     {
         Watcher.NetworkClient.Disconnect("Could not leave dynamic map...");
     }
     else
     {
         Watchers.Remove(Watcher);
         Watcher.Arena.Status = Enums.ArenaStatus.NotSignedUp;
         using (var wait = Watcher.Arena.Build())
             Watcher.Send(wait);
     }
 }
        public static void QuitWaitArena(Entities.GameClient Player)
        {
            if (Player.Battle != null)
            {
                return;
            }
            if (Player.DynamicMap != null)
            {
                return;
            }
            if (Player.ArenaMatch != null)
            {
                return;
            }

            Player.Arena.Status = Enums.ArenaStatus.NotSignedUp;
            using (var wait = Player.Arena.Build())
                Player.Send(wait);

            PlayerQueue.Remove(Player);
        }
Example #3
0
 public void Leave(Entities.GameClient client)
 {
     TeamMembers.Remove(client);
     client.Equipments.ClearMask();
     client.Teleport(client.LastMapID, client.LastMapX, client.LastMapY);
 }
 public static void DeleteName(string Name)
 {
     UsedNames.Remove(Name);
 }