Exemplo n.º 1
0
        private static void InvokerUpdate(EventArgs args)
        {
            if (Game.GameState == GameState.NotInGame)
            {
                onLoad = false;
                RunDrawings = false;

                me = null;
                comboKey = null;
                prepareComboKey = null;
                comboNext = null;
                comboPrev = null;

                CurrentCooldowns.Clear();
                CurrentCanUse.Clear();
                myCustomCombo.Clear();
            }
        }
Exemplo n.º 2
0
        private static void LHUpdate(EventArgs args)
        {
            if (Game.IsInGame && !Game.IsPaused)
            {
                gameLoad = true;
                meLulz = ObjectMgr.LocalHero;
            }
            else
            {
                gameLoad = false;
                onLoad = false;

                lastHitHold = null;
                lastHitToggle = null;
            }

            if (gameLoad && !onLoad)
            {
                lastHitHold = new HKC("lasthithold", "Last Hit Hold", 65, HKC.KeyMode.HOLD, new Vector2((Drawing.Width * 5 / 100) + 20, (Drawing.Height * 10 / 100) - 50), Color.LightGreen);
                lastHitToggle = new HKC("lasthittoggle", "Last Hit Toggle", 84, HKC.KeyMode.TOGGLE, new Vector2((Drawing.Width * 5 / 100) + 20, (Drawing.Height * 10 / 100) - 30), Color.LightGreen);
                onLoad = true;
            }

            if (gameLoad && (lastHitHold.IsActive || lastHitToggle.IsActive))
            {
                LastHit();
            }
        }
Exemplo n.º 3
0
        private static void InvokerIngameUpdate(EventArgs args)
        {
            me = ObjectMgr.LocalHero;
            if (me == null || me.ClassID != myClassID)
            {
                return;
            }

            if (!onLoad)
            {
                CurrentCombo = Combos.EMPTornadoMeteorBlast;

                comboKeyDrawPos = new Vector2(Drawing.Width * 90 / 100, Drawing.Height * 10 / 100);
                harassKeyDrawPos = new Vector2(Drawing.Width * 90 / 100, Drawing.Height * 12 / 100);
                comboNextDrawPos = new Vector2(Drawing.Width * 90 / 100, Drawing.Height * 14 / 100);
                comboPrevDrawPos = new Vector2(Drawing.Width * 90 / 100, Drawing.Height * 16 / 100);
                orbToggleDrawPos = new Vector2(Drawing.Width * 90 / 100, Drawing.Height * 18 / 100);
                fleeDrawPos = new Vector2(Drawing.Width * 90 / 100, Drawing.Height * 20 / 100);
                isOrbwalkingDrawPos = new Vector2(Drawing.Width * 87 / 100, Drawing.Height * 23 / 100);
                currentComboDrawPos = new Vector2(Drawing.Width * 87 / 100, Drawing.Height * 27 / 100);
                customComboDrawPos = new Vector2(Drawing.Width * 85 / 100, Drawing.Height * 30 / 100);

                comboKey = new HKC("combo", "Combo", 32, HKC.KeyMode.HOLD, comboKeyDrawPos, Color.LightBlue);
                prepareComboKey = new HKC("harass", "Prepare Combo", 67, HKC.KeyMode.HOLD, harassKeyDrawPos, Color.LightBlue);
                comboNext = new HKC("nextCombo", "Next Combo", 105, HKC.KeyMode.HOLD, comboNextDrawPos, Color.Pink);
                comboPrev = new HKC("prevCombo", "Previous Combo", 103, HKC.KeyMode.HOLD, comboPrevDrawPos, Color.Pink);
                toggleOrb = new HKC("orbToggle", "Toggle Orbwalking", 101, HKC.KeyMode.TOGGLE, orbToggleDrawPos, Color.Pink);
                fleeKey = new HKC("fleeing", "Flee (Follows Mouse)", 71, HKC.KeyMode.HOLD, fleeDrawPos, Color.Pink);

                CurrentCooldowns.Add(SpellsInvoker.Cold_Snap, 0);
                CurrentCooldowns.Add(SpellsInvoker.Ghost_Walk, 0);
                CurrentCooldowns.Add(SpellsInvoker.Ice_Wall, 0);
                CurrentCooldowns.Add(SpellsInvoker.EMP, 0);
                CurrentCooldowns.Add(SpellsInvoker.Tornado, 0);
                CurrentCooldowns.Add(SpellsInvoker.Alacrity, 0);
                CurrentCooldowns.Add(SpellsInvoker.Sun_Strike, 0);
                CurrentCooldowns.Add(SpellsInvoker.Forge_Spirit, 0);
                CurrentCooldowns.Add(SpellsInvoker.Chaos_Meteor, 0);
                CurrentCooldowns.Add(SpellsInvoker.Deafening_Blast, 0);

                CurrentCanUse.Add(SpellsInvoker.Cold_Snap, false);
                CurrentCanUse.Add(SpellsInvoker.Ghost_Walk, false);
                CurrentCanUse.Add(SpellsInvoker.Ice_Wall, false);
                CurrentCanUse.Add(SpellsInvoker.EMP, false);
                CurrentCanUse.Add(SpellsInvoker.Tornado, false);
                CurrentCanUse.Add(SpellsInvoker.Alacrity, false);
                CurrentCanUse.Add(SpellsInvoker.Sun_Strike, false);
                CurrentCanUse.Add(SpellsInvoker.Forge_Spirit, false);
                CurrentCanUse.Add(SpellsInvoker.Chaos_Meteor, false);
                CurrentCanUse.Add(SpellsInvoker.Deafening_Blast, false);

                Orbwalking.Load();

                Thread formThread = new Thread(delegate ()
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new UserComboForm());
                });

                formThread.SetApartmentState(ApartmentState.STA);

                formThread.Start();

                onLoad = true;
            }

            Quas = me.Spellbook.SpellQ;
            Wex = me.Spellbook.SpellW;
            Exort = me.Spellbook.SpellE;
            Invoke = me.Spellbook.SpellR;
            spellD = me.Spellbook.SpellD;
            spellF = me.Spellbook.SpellF;

            myCustomCombo = UserComboForm.CheckedList;

            HasAghanim = me.HasItem(ClassID.CDOTA_Item_UltimateScepter);

            RunDrawings = true;

            ComboChecks();

            CooldownChecks();

            TornadoComboChecks();

            MiscStuff();

            /*
            foreach (var buff in me.Modifiers)
            {
                Console.WriteLine(buff.Name);
            }
            */
        }
Exemplo n.º 4
0
        private static void SFUpdate(EventArgs args)
        {
            if (Game.IsInGame && !Game.IsPaused && !Game.IsWatchingGame)
            {
                gameLoad = true;
                SF = ObjectMgr.LocalHero;
            }
            else
            {
                SF = null;
                ComboKey = null;
                gameLoad = false;
                loadOnce = false;
            }

            if (gameLoad && SF != null)
            {
                if (SF.ClassID != SF_ClassID)
                {
                    return;
                }

                MenuCoords = new Vector2((Drawing.Width * 10 / 100) + 40, (Drawing.Height * 10 / 100) - 50);

                theQ = SF.Spellbook.SpellQ;
                theW = SF.Spellbook.SpellW;
                theE = SF.Spellbook.SpellE;

                _target = ObjectMgr.GetEntities<Hero>().Where(enemy => enemy.Team == SF.GetEnemyTeam() && enemy.IsAlive && enemy.IsVisible && !enemy.IsIllusion && !enemy.IsInvul() && SF.Distance2D(enemy) < GetFarthestRange())
                    .OrderBy(enemy => enemy.Health / enemy.MaximumHealth).DefaultIfEmpty(null).FirstOrDefault();

                if (!loadOnce)
                {
                    ComboKey = new HKC("SFcombo", "Combo Key", 32, HKC.KeyMode.HOLD, MenuCoords, Color.IndianRed);
                    Console.WriteLine("Pippy Shadow Fiend - Loaded!");

                    loadOnce = true;
                }

                if (ComboKey.IsActive && !Game.IsChatOpen)
                {
                    Combo();
                }
            }
        }