Ejemplo n.º 1
0
 private static void CheckForIsland(TowerInitMessage tower)
 {
     try
     {
         if (!tower.guild.Equals(Account.Guild))
         {
             foreach (var pos in Account.Route)
             {
                 if ((CalculateDistance(pos.X, pos.Y, tower.position.X, tower.position.Y) <= 48))
                 {
                     if (CalculateDistance(Account.Position.X, Account.Position.Y, pos.X, pos.Y) < 4.5)
                     {
                         Bot.underAttackBy          = tower.entityInfo;
                         BotSettings.escapingIsland = true;
                         if (!BotLogic.OnAttackRunning && Bot.Running)
                         {
                             BotLogic.StartonAttackThread();
                         }
                         return;
                     }
                 }
             }
         }
     }
     catch (Exception)
     {
     }
 }