Esempio n. 1
0
        private static void GameOnTick(EventArgs args)
        {
            try
            {
                var flags = Orbwalker.ActiveModesFlags;
                if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    Offensive.Items();
                    Defensive.Items();
                }

                if (loadedreveal)
                {
                    AutoReveal.Reveal();
                }

                AutoLvlUp.Levelup();
                AutoTear.OnUpdate();
                GanksDetector.OnUpdate();
                Smite.Smiteopepi();
                Spells.Cast();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
 public void UpdateScore(double score, Activity activity, bool winner, bool isOffence)
 {
     Score = score;
     ScoreHistory.Enqueue(new Tuple <double, Activity>(score, activity));
     if (winner)
     {
         Total.AddVictory();
         _winning.Add();
         _loosing.Reset();
         if (isOffence)
         {
             Offensive.AddVictory();
         }
         else
         {
             Defensive.AddVictory();
         }
     }
     else
     {
         Total.AddDefeat();
         _winning.Reset();
         _loosing.Add();
         if (isOffence)
         {
             Offensive.AddDefeat();
         }
         else
         {
             Defensive.AddDefeat();
         }
     }
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Offensive != null ? Offensive.GetHashCode() : 0) * 397) ^ (Defensive != null ? Defensive.GetHashCode() : 0));
     }
 }
Esempio n. 4
0
        private static void Game_OnUpdate(EventArgs args)
        {
            Defensive.Execute();
            Offensive.Execute();
            Consumables.Execute();

            Initialize.Execute();
        }
Esempio n. 5
0
    void Start()
    {
        structures.Add(gameObject);
        Instantiate(particleOnSpawn, new Vector3(transform.position.x, transform.position.y + 0.5f, transform.position.z), Quaternion.Euler(new Vector2(270, 0)));

        //_healthComp = GetComponent<Health>();
        _offensiveComp = GetComponent <Offensive>();
        enemyBase      = GameObject.Find(Constants.NAME_WOLPERTINGER_BASE);
    }
Esempio n. 6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Item" /> class.
 /// </summary>
 /// <param name="orbwalker">
 ///     The orbwalker.
 /// </param>
 public Item(Orbwalking.Orbwalker orbwalker)
 {
     Orbwalker                = orbwalker;
     _offensive               = new Offensive();
     _defensive               = new Defensive();
     Orbwalking.AfterAttack  += After_Attack;
     Orbwalking.BeforeAttack += Before_Attack;
     Game.OnUpdate           += OnUpdate;
 }
Esempio n. 7
0
    public static void Attack(Fighter attacker, Fighter target, bool doAnimations)
    {
        IsBattling = true;

        int spd1 = StatsCalc.AttackSpeed(attacker.Unit.stats.speed, attacker.Weapon.weight, attacker.Unit.stats.constitution);
        int spd2 = StatsCalc.AttackSpeed(target.Unit.stats.speed, target.Weapon.weight, target.Unit.stats.constitution);

        bool repeated        = StatsCalc.RepeatedAttack(spd1, spd2);
        bool repeatedCounter = StatsCalc.RepeatedAttack(spd2, spd1);
        bool counter         = false;

        Cell[] counterArea = Map.GetExtendedArea(new Cell[1] {
            Map.UnitTile(target)
        }, target.Weapon.range, target.Weapon.rangedClosedSet, target.Weapon.closedSetMin);

        foreach (Cell c in counterArea)
        {
            if (c == Map.UnitTile(attacker))
            {
                counter = true;
                break;
            }
        }

        Offensive atk1 = new Offensive(attacker, target);
        Offensive cnt1 = null;

        Offensive atk2 = null;
        Offensive cnt2 = null;

        if (counter)
        {
            cnt1 = new Offensive(target, attacker)
            {
                IsCounter = true
            };
        }
        if (repeated)
        {
            atk2 = new Offensive(attacker, target, true);
        }
        if (repeatedCounter)
        {
            cnt2           = new Offensive(target, attacker, true);
            cnt1.IsCounter = true;
        }

        instance.StartCoroutine(DoAttacks(
                                    new Offensive[4]
        {
            atk1,
            cnt1,
            atk2,
            cnt2
        }
                                    ));
    }
Esempio n. 8
0
        internal static void OnLoad(EventArgs args)
        {
            Config    = new Menu(Menuname, Menuname, true);
            Orbwalker = new Orbwalking.Orbwalker(Menu.root);
            ActivatorMenu.LoadActivator();
            DamagesMenu.LoadDamagesMenu();
            EnviormentMenu.LoadEnviormentMenu();
            JungleMenu.LoadJungleMenu();
            DrawingsMenu.DrawingsMenus();
            SummonersMenu.LoadSummonersMenu();
            AutoLevelMenu.OnLoad();
            Config.Item("useautolevel").SetValue(false);
            Config.AddToMainMenu();

            // Activator
            Defensive.OnLoad();
            Offensive.OnLoad();
            Consumables.OnLoad();

            // Summoners
            Ignite.OnLoad();
            Heal.OnLoad();
            Cleanse.OnLoad();
            Barrier.OnLoad();

            //Drawings //todo DtoP
            EnemyRanges.OnLoad();
            AllyRanges.OnLoad();
            Wards.OnLoad();
            TrackerSpell.OnLoad();
            //DtoT.OnLoad();s
            //  DtoP.OnLoad();

            //Jungle (yes smite contains everything in jungle) //todo Jungle timers
            Smite.OnLoad();

            //Enviormenet //todo Ult Manager, Inhibs, Turn Around, Turrets
            AntiRengar.OnLoad();
            Auto_Level_Manager.AutoLevel.OnLoad();
            //UltManager.OnLoad();
            //Inhibitors.OnLoad();
            //TurnAround.OnLoad();
            //Turrets.OnLoad();
        }
Esempio n. 9
0
        int[,] transitions; // transition[#s][#i] = #s

        public void Init(TeamRobot robot)
        {
            // Initialize the starting states
            Scan scan = new Scan();

            scan.Init(ref robot);

            Offensive off = new Offensive();

            off.Init(ref robot);

            Defensive def = new Defensive();

            def.Init(ref robot);

            current = scan;

            // Initialize the event queue for handling events
            events = new Queue <Event>();

            // Initialize and store the references to the states
            states = new List <State>();
            states.Add(current);
            states.Add(off);
            states.Add(def);

            // Make transition table
            transitions       = new int[states.Count, states.Count];
            transitions[0, 0] = 0;  // Scan + !enemyFound == Scan
            transitions[0, 1] = 1;  // Scan + highEnergy == Offensive
            transitions[0, 2] = 2;  // Scan + !highEnergy == Defensive
            transitions[1, 0] = 0;  // Offensive + !enemyFound == Scan
            transitions[1, 1] = 1;  // Offensive + highEnergy == Offensive
            transitions[1, 2] = 2;  // Offensive + !highEnergy == Defensive
            transitions[2, 0] = 0;  // Defensive + !enemyFound == Scan
            transitions[2, 1] = 1;  // Defensive + highEnergy == Offensive
            transitions[2, 2] = 2;  // Defensive + !highEnergy == Defensive
        }
Esempio n. 10
0
    private static IEnumerator DoAttacks(Offensive[] offensives)
    {
        if (GameSettings.DoBattleAnimation)
        {
            yield return(instance.StartCoroutine(BattleScreen.Open(offensives[0].Attacker, offensives[0].Defender)));
        }

        foreach (Offensive o in offensives)
        {
            if (o != null && o.Attacker != null && o.Defender != null && !o.Attacker.Dead() && !o.Defender.Dead())
            {
                Current = o;
                yield return(_Attack(o));
            }
        }

        if (GameSettings.DoBattleAnimation)
        {
            yield return(instance.StartCoroutine(BattleScreen.Close()));
        }

        IsBattling = false;
    }
Esempio n. 11
0
    private static IEnumerator _Attack(Offensive offensive)
    {
        if (offensive.Attacker.Weapon.uses <= 0)
        {
            yield break;
        }

        if (GameSettings.DoBattleAnimation)
        {
            yield return(BattleAnimController.WaitForBattleAnimation(offensive));
        }

        if (offensive.Hit)
        {
            offensive.Defender.Damage(offensive.Damage);

            Debug.Log(offensive.Attacker.Unit.name + " attacked " + offensive.Defender.Unit.name + " for " + offensive.Damage + " damage \n" +
                      offensive.Defender.Unit.name + " hp: " + offensive.Defender.CurrentHP + "/" + offensive.Defender.Unit.stats.hp);
        }
        else
        {
            Debug.Log(offensive.Attacker.Unit.name + " missed " + offensive.Defender.Unit.name);
        }

        if (!offensive.Attacker.Weapon.unbreakable)
        {
            offensive.Attacker.Weapon.uses--;
        }

        if (offensive.Defender == offensive.Attacker.LastTarget && offensive.Attacker.LastTarget != null)
        {
            offensive.Attacker.RepeatedTarget++;
        }
        else
        {
            offensive.Attacker.LastTarget     = offensive.Defender;
            offensive.Attacker.RepeatedTarget = 1;
        }

        if (offensive.Attacker.CurrentHP <= 0)
        {
            UnitManager.Kill(offensive.Attacker);
        }
        if (offensive.Defender.CurrentHP <= 0)
        {
            UnitManager.Kill(offensive.Defender);
        }

        offensive.Attacker.AddEXP(
            StatsCalc.EXPGain_Damage(
                offensive.Attacker.Unit.stats.level,
                offensive.Defender.Unit.stats.level,
                offensive.Attacker.RepeatedTarget,
                offensive.Defender == null || offensive.Defender.CurrentHP <= 0,
                false
                )
            );

        while (GameSettings.DoBattleAnimation && BattleAnimController.IsAnimating)
        {
            yield return(null);
        }

        yield return(new WaitForSeconds(0.5f));
    }
Esempio n. 12
0
        private static void OnLoad(EventArgs args)
        {
            UtliMenu = MainMenu.AddMenu("KappaUtility", "KappaUtility");
            UtliMenu.AddGroupLabel("Global Settings [Must F5 To Take Effect]");
            UtliMenu.Add("AutoLvlUp", new CheckBox("Enable AutoLvlUp"));
            UtliMenu.Add("AutoQSS", new CheckBox("Enable AutoQSS"));
            UtliMenu.Add("AutoTear", new CheckBox("Enable AutoTear"));
            UtliMenu.Add("AutoReveal", new CheckBox("Enable AutoReveal"));
            UtliMenu.Add("GanksDetector", new CheckBox("Enable GanksDetector"));
            UtliMenu.Add("Tracker", new CheckBox("Enable Tracker"));
            UtliMenu.Add("SkinHax", new CheckBox("Enable SkinHax"));
            UtliMenu.Add("Spells", new CheckBox("Enable SummonerSpells"));
            UtliMenu.Add("Potions", new CheckBox("Enable Potions"));
            UtliMenu.Add("Offensive", new CheckBox("Enable Offensive Items"));
            UtliMenu.Add("Defensive", new CheckBox("Enable Defensive Items"));
            if (UtliMenu["AutoLvlUp"].Cast <CheckBox>().CurrentValue)
            {
                AutoLvlUp.OnLoad();
            }
            if (UtliMenu["AutoQSS"].Cast <CheckBox>().CurrentValue)
            {
                AutoQSS.OnLoad();
            }
            if (UtliMenu["AutoTear"].Cast <CheckBox>().CurrentValue)
            {
                AutoTear.OnLoad();
            }
            if (UtliMenu["AutoReveal"].Cast <CheckBox>().CurrentValue)
            {
                AutoReveal.OnLoad();
                loadedreveal = true;
            }
            if (UtliMenu["GanksDetector"].Cast <CheckBox>().CurrentValue)
            {
                GanksDetector.OnLoad();
            }
            if (UtliMenu["Tracker"].Cast <CheckBox>().CurrentValue)
            {
                Tracker.OnLoad();
                Surrender.OnLoad();
                loadedtrack = true;
            }
            if (UtliMenu["SkinHax"].Cast <CheckBox>().CurrentValue)
            {
                SkinHax.OnLoad();
            }
            if (UtliMenu["Spells"].Cast <CheckBox>().CurrentValue)
            {
                Spells.OnLoad();
                Flash.FOnLoad();
            }
            if (UtliMenu["Potions"].Cast <CheckBox>().CurrentValue)
            {
                Potions.OnLoad();
            }
            if (UtliMenu["Offensive"].Cast <CheckBox>().CurrentValue)
            {
                Offensive.OnLoad();
            }
            if (UtliMenu["Defensive"].Cast <CheckBox>().CurrentValue)
            {
                Defensive.OnLoad();
            }

            Game.OnTick        += GameOnTick;
            Drawing.OnEndScene += OnEndScene;
            Drawing.OnDraw     += DrawingOnDraw;
        }
Esempio n. 13
0
        public override bool Initialize()
        {
            IsCleanedUpOutOfFrame = false;

            _isxeveProvider    = new IsxeveProvider();
            _eveWindowProvider = new EveWindowProvider();

            #region Core object construction
            //Background stuff
            Logging     = new Logging();
            LogCallback = LogIsxeveMessage;
            Tracing.AddCallback(LogCallback);

            _mathUtility        = new MathUtility();
            Statistics          = new Statistics();
            EventCommunications = new EventCommunications(Logging);
            FileManager         = new FileManager();

            //moduleManager and BehaviorManager
            ModuleManager = new ModuleManager(_isxeveProvider, _eveWindowProvider);

            //Me cache. Contains the other caches.
            MeCache = new MeCache(_isxeveProvider, _eveWindowProvider);

            //ConfigurationManager
            Config = new Configuration();
            ConfigurationManager = new ConfigurationManager(Config, MeCache);

            Ship = new Ship(_isxeveProvider, _eveWindowProvider, MeCache, MeCache.Ship, Config.CargoConfig, Statistics, Config.MovementConfig);

            //Entity Populator object
            EntityProvider = new EntityProvider(_isxeveProvider);

            //Other Cache and Data classes
            MissionCache = new MissionCache(_isxeveProvider, _eveWindowProvider);
            AgentCache   = new AgentCache(FileManager, MeCache, Config, _eveWindowProvider);

            BookMarkCache  = new BookMarkCache(MeCache, EntityProvider, Logging, _isxeveProvider);
            NpcBountyCache = new NpcBountyCache();
            //EVEDB modules
            PilotCache       = new PilotCache();
            AllianceCache    = new AllianceCache(FileManager);
            CorporationCache = new CorporationCache();
            MissionDatabase  = new MissionDatabase();
            PossibleEwarNpcs = new PossibleEwarNpcs();

            //Core Functionality Providers, not necessarily caches
            TargetQueue          = new TargetQueue(MeCache, EntityProvider, Config.MiningConfig, Config.MainConfig);
            JetCan               = new JettisonContainer(_eveWindowProvider);
            Social               = new Social(_isxeveProvider);
            Station              = new Station(_isxeveProvider, _eveWindowProvider);
            AsteroidBelts        = new AsteroidBelts(Config, MeCache, EntityProvider, BookMarkCache, Ship);
            Bookmarks            = new Bookmarks(MeCache, Station, Config, BookMarkCache, AsteroidBelts, _isxeveProvider);
            Drones               = new Drones(_isxeveProvider);
            Fleet                = new Fleet();
            Alerts               = new Alerts(Config, MeCache, Logging);
            _anomalyProvider     = new AnomalyProvider(MeCache.Ship);
            _anomalyClaimTracker = new AnomalyClaimTracker(Logging, EventCommunications, MeCache);
            _safespots           = new Safespots(MeCache, BookMarkCache, Config.MovementConfig, MeCache.ToEntity, EntityProvider, _isxeveProvider, Ship, Social, _mathUtility, Logging);

            Attackers = new Attackers(MeCache, Config, Ship, Drones, EntityProvider, Alerts, AsteroidBelts, PossibleEwarNpcs, TargetQueue, ModuleManager);
            #endregion

            #region ActionModule construction
            //Action classes
            Movement     = new Movement(_isxeveProvider, EntityProvider, MeCache, _anomalyProvider, TargetQueue, Ship, Drones);
            Targeting    = new Targeting(Logging, Config.MaxRuntimeConfig, MeCache, Ship, Drones, Alerts, ModuleManager, TargetQueue, EntityProvider, Movement);
            Offensive    = new Offensive(Logging, TargetQueue, EntityProvider);
            NonOffensive = new NonOffensive(MeCache, Config.MiningConfig, Config.DefenseConfig, EntityProvider, TargetQueue, Ship, Drones, Targeting, Movement);
            Defense      = new Defense(_isxeveProvider, EntityProvider, Ship, MeCache, Config.DefenseConfig, Social, Drones, Alerts, _safespots, Movement);
            #endregion

            #region Processor construction
            MissionProcessor = new MissionProcessor(_eveWindowProvider, Movement);
            #endregion

            #region BehaviorModule construction
            _moveToDropOffLocationPartialBehavior = new MoveToDropOffLocationPartialBehavior(Movement, EntityProvider, Config.CargoConfig, BookMarkCache, Bookmarks,
                                                                                             Config.MovementConfig, MeCache, _mathUtility, _isxeveProvider);
            _dropOffCargoPartialBehavior = new DropOffCargoPartialBehavior(_eveWindowProvider, Config.CargoConfig, Config.MainConfig, Config.MiningConfig,
                                                                           MeCache, Ship, Station, JetCan, EntityProvider, EventCommunications);

            //Behavior classes
            BehaviorManager = new BehaviorManager();
            Mining          = new Mining(Config.CargoConfig, Config.MainConfig, MeCache, Ship, EntityProvider,
                                         _safespots, Movement, Social, Config.MovementConfig, AsteroidBelts, _moveToDropOffLocationPartialBehavior, _dropOffCargoPartialBehavior, Config.MiningConfig,
                                         _isxeveProvider, BookMarkCache, TargetQueue);
            Hauler = new Hauler(_eveWindowProvider, Config.CargoConfig, Config.MainConfig, Config.MiningConfig, MeCache, Ship, Station, JetCan, EntityProvider, EventCommunications,
                                _safespots, Movement, BookMarkCache, _moveToDropOffLocationPartialBehavior);
            BoostCanOrca = new BoostCanOrca();
            BoostOrca    = new BoostOrca(BookMarkCache, Config.MiningConfig, Bookmarks, _safespots, Movement, Config.MainConfig, Ship, MeCache);
            Freighter    = new Freighter(_eveWindowProvider, Config.CargoConfig, Config.MainConfig,
                                         Config.MiningConfig, MeCache, Ship, Station, JetCan, EntityProvider, EventCommunications, _moveToDropOffLocationPartialBehavior, _dropOffCargoPartialBehavior, Movement);
            MissionRunner     = new MissionRunner(Config, MissionCache, AgentCache, _eveWindowProvider);
            JumpStabilityTest = new JumpStabilityTest();
            Ratting           = new Ratting(Social, MeCache, Bookmarks, Config.SalvageConfig, Config.RattingConfig, _anomalyProvider, EntityProvider, _anomalyClaimTracker, _safespots,
                                            Movement, Ship, AsteroidBelts, Config.MovementConfig, Alerts, TargetQueue, Attackers);
            #endregion

            //StealthBotUI Interop construction
            //SbUiCommunication = new SbUiCommunication();

#if DEBUG
            LavishScript.ExecuteCommand("ISXEVE:Debug_SetHighPerfLogging[1]");
#endif

            return(true);
        }
Esempio n. 14
0
        public static void Execute()
        {
            UtliMenu = MainMenu.AddMenu("CH汉化活化剂", "KappaUtility");
            UtliMenu.AddLabel("CH汉化 Kappa活化剂,有同样功能的脚本最好不要一起开");
            UtliMenu.AddGroupLabel("全局设置 [需要F5才生效]");
            UtliMenu.Add("AutoLvlUp", new CheckBox("开启自动加点"));
            UtliMenu.Add("AutoQSS", new CheckBox("自动解控"));
            UtliMenu.Add("AutoTear", new CheckBox("开启女神叠加"));
            UtliMenu.Add("AutoReveal", new CheckBox("开启自动插眼"));
            UtliMenu.Add("GanksDetector", new CheckBox("开启Gank提示"));
            UtliMenu.Add("Tracker", new CheckBox("开启记录器"));
            UtliMenu.Add("SkinHax", new CheckBox("开启换肤"));
            UtliMenu.Add("Spells", new CheckBox("开启召唤师技能"));
            UtliMenu.Add("Potions", new CheckBox("开启吃药"));
            UtliMenu.Add("Offensive", new CheckBox("开启进攻物品"));
            UtliMenu.Add("Defensive", new CheckBox("开启防守物品"));
            if (UtliMenu["AutoLvlUp"].Cast <CheckBox>().CurrentValue)
            {
                AutoLvlUp.OnLoad();
            }
            if (UtliMenu["AutoQSS"].Cast <CheckBox>().CurrentValue)
            {
                AutoQSS.OnLoad();
            }
            if (UtliMenu["AutoTear"].Cast <CheckBox>().CurrentValue)
            {
                AutoTear.OnLoad();
            }
            if (UtliMenu["AutoReveal"].Cast <CheckBox>().CurrentValue)
            {
                AutoReveal.OnLoad();
                loadedreveal = true;
            }
            if (UtliMenu["GanksDetector"].Cast <CheckBox>().CurrentValue)
            {
                GanksDetector.OnLoad();
            }
            if (UtliMenu["Tracker"].Cast <CheckBox>().CurrentValue)
            {
                Tracker.OnLoad();
                Surrender.OnLoad();
                loadedtrack = true;
            }
            if (UtliMenu["SkinHax"].Cast <CheckBox>().CurrentValue)
            {
                SkinHax.OnLoad();
            }
            if (UtliMenu["Spells"].Cast <CheckBox>().CurrentValue)
            {
                Spells.OnLoad();
                Flash.FOnLoad();
            }
            if (UtliMenu["Potions"].Cast <CheckBox>().CurrentValue)
            {
                Potions.OnLoad();
            }
            if (UtliMenu["Offensive"].Cast <CheckBox>().CurrentValue)
            {
                Offensive.OnLoad();
            }
            if (UtliMenu["Defensive"].Cast <CheckBox>().CurrentValue)
            {
                Defensive.OnLoad();
            }

            Game.OnTick        += GameOnTick;
            Drawing.OnEndScene += OnEndScene;
            Drawing.OnDraw     += DrawingOnDraw;
        }
 void Start()
 {
     _offensiveComp = GetComponent<Offensive>();
     _animatorComp = GetComponent<Animator>();
 }
        public Activator(Menu attachToMenu)
        {
            AMenu = attachToMenu;

            AMenu = MainMenu.AddMenu("Aka´s Activator", "AkasActivator");
            AMenu.Add("Combo", new CheckBox("Use Items in Combo"));
            AMenu.Add("Harass", new CheckBox("Use Items in Harass"));
            AMenu.Add("LaneClear", new CheckBox("Use Items in LaneClear"));
            AMenu.Add("JungleClear", new CheckBox("Use Items in JungleClear"));
            AMenu.Add("Flee", new CheckBox("Use Items in Flee"));
            Offensive = AMenu.AddSubMenu("Offensive", "Offensive");
            Offensive.AddGroupLabel("Offensive Items");
            Offensive.AddLabel("Blade Of The Ruined King");
            Offensive.Add("botrkManager", new CheckBox("Blade Of The Ruined King"));
            Offensive.Add("botrkManagerMinMeHP", new Slider("Self HP %", 80));
            Offensive.Add("botrkManagerMinEnemyHP", new Slider("Enemy HP HP %", 80));
            Offensive.AddLabel("Cutlass");
            Offensive.Add("cutlassManager", new CheckBox("Cutlass"));
            Offensive.Add("cutlassManagerMinMeHP", new Slider("Self HP %", 80));
            Offensive.Add("cutlassManagerMinEnemyHP", new Slider("Enemy HP HP %", 80));

            if (Player.Instance.IsMelee)
            {
                Offensive.AddLabel("Tiamat");
                Offensive.Add("tiamatManager", new CheckBox("Use Tiamat"));
                Offensive.Add("tiamatManagerMinMeHP", new Slider("Self HP %", 99));
                Offensive.Add("tiamatManagerMinEnemyHP", new Slider("Enemy HP HP %", 99));
                Offensive.AddLabel("Hydra");
                Offensive.Add("hydraManager", new CheckBox("Use Hydra"));
                Offensive.Add("hydraManagerMinMeHP", new Slider("Self HP %", 99));
                Offensive.Add("hydraManagerMinEnemyHP", new Slider("Enemy HP HP %", 99));
            }

            Offensive.AddLabel("Gunblade");
            Offensive.Add("gunbladeManager", new CheckBox("Use Gunblade"));
            Offensive.Add("gunbladeManagerMinMeHP", new Slider("Self HP %", 99));
            Offensive.Add("gunbladeManagerMinEnemyHP", new Slider("Enemy HP HP %", 99));
            Offensive.AddLabel("GhostBlade");
            Offensive.Add("ghostbladeManager", new CheckBox("Use GhostBlade"));
            Offensive.Add("ghostbladeManagerMinMeHP", new Slider("Self HP %", 99));
            Offensive.Add("ghostbladeManagerMinEnemyHP", new Slider("Enemy HP HP %", 99));

            Potions = AMenu.AddSubMenu("Potions", "potions");
            Potions.AddGroupLabel("Potion Items");
            Potions.Add("healthPotionManager", new CheckBox("Health Potion"));
            Potions.Add("healthPotionManagerMinMeHP", new Slider("Min HP %", 65));
            Potions.AddSeparator();
            Potions.Add("biscuitPotionManager", new CheckBox("Biscuit"));
            Potions.Add("biscuitPotionManagerMinMeHP", new Slider("Min HP %", 65));
            Potions.AddSeparator();
            Potions.Add("refillPotManager", new CheckBox("Refill Potion"));
            Potions.Add("refillPotManagerMinMeHP", new Slider("Min HP %", 60));
            Potions.AddSeparator();
            Potions.Add("corruptpotManager", new CheckBox("Corrupt Potion"));
            Potions.Add("corruptpotManagerMinMeHP", new Slider("Min HP %", 60));
            Potions.Add("corruptpotManagerMinMeMana", new Slider("Min Mana %", 30));
            Potions.AddSeparator();
            Potions.Add("huntersPotManager", new CheckBox("Hunter's Potion"));
            Potions.Add("huntersPotManagerMinMeHP", new Slider("Min HP %", 60));
            Potions.Add("huntersPotManagerMinMeMana", new Slider("Min Mana %", 30));

            Qss = AMenu.AddSubMenu("Qss", "qss");
            Qss.AddGroupLabel("Qss Settings");
            Qss.Add("Polymorph", new CheckBox("Polymorph"));
            Qss.Add("Stun", new CheckBox("Stun"));
            Qss.Add("Taunt", new CheckBox("Taunt"));
            Qss.Add("Knockup", new CheckBox("Knock-up"));
            Qss.Add("Fear", new CheckBox("Fear"));
            Qss.Add("Snare", new CheckBox("Snare"));
            Qss.Add("Slow", new CheckBox("Slow"));
            Qss.Add("Blind", new CheckBox("Blind"));
            Qss.Add("Silence", new CheckBox("Silence"));
            Qss.Add("Charm", new CheckBox("Charm"));
            Qss.Add("Suppression", new CheckBox("Suppression"));
            Qss.Add("delay", new Slider("Activation Delay", 1000, 0, 2000));
            Qss.AddSeparator();
            Qss.AddLabel("Cleanse Items / Summoner Spell");
            Qss.Add("mikaelsCleanser", new CheckBox("Mikael's Cruicble"));
            Qss.Add("mercurialScimitarCleanser", new CheckBox("Mercurial Scimitar"));
            Qss.Add("quicksilverSashCleanser", new CheckBox("Quicksilver Sash"));
            Qss.Add("summonerSpellCleanse", new CheckBox("Summoner Cleanse"));

            Defensive = AMenu.AddSubMenu("Defensive Items", "defmenuactiv");
            Defensive.AddGroupLabel("Shield/Heal Items (self)");
            Defensive.Add("Archangels_Staff", new CheckBox("Serahph's Embrace"));
            Defensive.AddGroupLabel("Shield/Heal Items (ally/self)");
            Defensive.Add("Mikaels_Crucible_Heal", new CheckBox("Mikaels Crucible"));
            Defensive.AddLabel("Locket of the Iron Solari");
            Defensive.Add("Locket_of_the_Iron_Solari", new CheckBox("Locket of the Iron Solari"));
            Defensive.AddSeparator(0);
            Defensive.Add("Locket_of_the_Iron_Solari_ally", new CheckBox("Ally"));
            Defensive.Add("Locket_of_the_Iron_Solari_self", new CheckBox("Self"));
            Defensive.AddLabel("Face of the Mountain");
            Defensive.Add("Face_of_the_Mountain", new CheckBox("Face of the Mountain"));
            Defensive.AddSeparator(0);
            Defensive.Add("Face_of_the_Mountain_ally", new CheckBox("Ally"));
            Defensive.Add("Face_of_the_Mountain_self", new CheckBox("Self"));

            Sums = AMenu.AddSubMenu("Summoners", "sums");
            Sums.AddLabel("Heal");
            Sums.Add("healManager", new CheckBox("Use Heal"));
            Sums.Add("healManagerMinMeHP", new Slider("Self HP %", 30));
            Sums.Add("healManagerMinEnemyHP", new Slider("Enemy HP HP %", 30));
            Sums.AddLabel("Ignite");
            Sums.Add("igniteManager", new CheckBox("Use Ignite"));
            Sums.AddLabel("Barrier");
            Sums.Add("barrierManager", new CheckBox("Use Barrier"));
            Sums.Add("barrierManagerMinMeHP", new Slider("Self HP %", 30));
            Sums.Add("barrierManagerMinEnemyHP", new Slider("Enemy HP HP %", 30));

            SmiteMenu = AMenu.AddSubMenu("Smite Settings");
            SmiteMenu.AddGroupLabel("Camps");
            SmiteMenu.AddLabel("Epics");
            SmiteMenu.Add("SRU_Baron", new CheckBox("Baron"));
            SmiteMenu.Add("SRU_Dragon", new CheckBox("Dragon"));
            SmiteMenu.AddLabel("Buffs");
            SmiteMenu.Add("SRU_Blue", new CheckBox("Blue"));
            SmiteMenu.Add("SRU_Red", new CheckBox("Red"));
            SmiteMenu.AddLabel("Small Camps");
            SmiteMenu.Add("SRU_Gromp", new CheckBox("Gromp", false));
            SmiteMenu.Add("SRU_Murkwolf", new CheckBox("Murkwolf", false));
            SmiteMenu.Add("SRU_Krug", new CheckBox("Krug", false));
            SmiteMenu.Add("SRU_Razorbeak", new CheckBox("Razerbeak", false));
            SmiteMenu.Add("Sru_Crab", new CheckBox("Skuttles", false));
            SmiteMenu.AddSeparator();
            SmiteMenu.Add("smiteActive",
                          new KeyBind("Smite Active (toggle)", true, KeyBind.BindTypes.PressToggle, 'M'));
            SmiteMenu.AddSeparator();
            SmiteMenu.Add("useSlowSmite", new CheckBox("KS with Slow Smite"));
            SmiteMenu.Add("comboWithDuelSmite", new CheckBox("Combo With Duel Smite"));

            Smite                   = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonersmite"), 500);
            Game.OnUpdate          += GameOnOnUpdate;
            Obj_AI_Base.OnBuffGain += Obj_AI_Base_OnBuffGain;
        }
    void Start()
    {
        structures.Add(gameObject);
        Instantiate(particleOnSpawn, new Vector3(transform.position.x, transform.position.y + 0.5f, transform.position.z), Quaternion.Euler(new Vector2(270, 0)));

        //_healthComp = GetComponent<Health>();
        _offensiveComp = GetComponent<Offensive>();
        enemyBase = GameObject.Find(Constants.NAME_WOLPERTINGER_BASE);
    }
Esempio n. 18
0
 private static void Game_OnTick(EventArgs args)
 {
     Defensive.Execute();
     Offensive.Execute();
     Consumables.Execute();
 }
Esempio n. 19
0
 void Start()
 {
     _offensiveComp = GetComponent <Offensive>();
     _animatorComp  = GetComponent <Animator>();
 }