public static void Initialize()
        {
            // Initialize spells
            Q = new Spell.Chargeable(SpellSlot.Q, 750, 1550, 1500, 500, int.MaxValue, 100);
            W = new Spell.Skillshot(SpellSlot.W, 1100, SkillShotType.Circular, 750, int.MaxValue, 150);
            E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear, 250, 1400, 60);
            R = new Spell.Skillshot(SpellSlot.R, 3200, SkillShotType.Circular, 500, int.MaxValue, 120);

            // Finetune spells
            Q.AllowedCollisionCount = int.MaxValue;
            W.AllowedCollisionCount = int.MaxValue;
            R.AllowedCollisionCount = int.MaxValue;

            Spells = (new Spell.SpellBase[] { Q, W, E, R }).OrderByDescending(o => o.Range).ToArray();
            ColorTranslation = new Dictionary<SpellSlot, Color>
            {
                { SpellSlot.Q, Color.IndianRed.ToArgb(150) },
                { SpellSlot.W, Color.PaleVioletRed.ToArgb(150) },
                { SpellSlot.E, Color.IndianRed.ToArgb(150) },
                { SpellSlot.R, Color.DarkRed.ToArgb(150) }
            };

            // Setup ult management
            Game.OnTick += OnTick;
            Messages.RegisterEventHandler<Messages.KeyUp>(OnKeyUp);
            Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
        }
示例#2
0
        static SpellManager()
        {
            Q = new Spell.Chargeable(SpellSlot.Q, 250, 875, 1250, 0, 1400, 55);
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Active(SpellSlot.E, 600);
            E2 = new Spell.Skillshot(SpellSlot.E, 600, SkillShotType.Cone);
            R = new Spell.Targeted(SpellSlot.R, 800);
            var FlashSlot = ObjectManager.Player.GetSpellSlotFromName("summonerflash");
            Flash = new Spell.Skillshot(FlashSlot, 450, SkillShotType.Linear, 0, int.MaxValue, 55);
            
            Q.AllowedCollisionCount = int.MaxValue;
            Flash.AllowedCollisionCount = int.MaxValue;

            //VodkaSmite

            if (SmiteDamage.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner1).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner1, 570);
                return;
            }
            if (SmiteDamage.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner2).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner2, 570);
            }
        }
示例#3
0
 static Lib()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 430, SkillShotType.Linear, 250, null, 100);
     Q.AllowedCollisionCount = int.MaxValue;
     W = new Spell.Active(SpellSlot.W, 400);
     E = new Spell.Targeted(SpellSlot.E, 525);
     R = new Spell.Chargeable(SpellSlot.R, 500, 1200, 4000, 250, int.MaxValue, 90);
     Flash = null;
 }
示例#4
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Xerath")
                return;

            Q = new Spell.Chargeable(SpellSlot.Q, 750, 1500, int.MaxValue, 250, int.MaxValue, 100);
            W = new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Circular, 250, int.MaxValue, 200);
            E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear, 250,int.MaxValue, 60);
            R = new Spell.Skillshot(SpellSlot.R, 3200, SkillShotType.Linear, 70, 2000, (int)(160f));
        }
示例#5
0
 static SpellManager()
 {
     Q = new Spell.Chargeable(SpellSlot.Q, 250, 875, 1250, 250, 1400, 55)
     {
         AllowedCollisionCount = int.MaxValue
     };
     W = new Spell.Active(SpellSlot.W);
     E = new Spell.Active(SpellSlot.E, 175);
     R = new Spell.Targeted(SpellSlot.R, 800);
 }
示例#6
0
 static SpellManager()
 {
     Q = new Spell.Chargeable(SpellSlot.Q, 800, 1743, 3000,250, 900, 85)
     {
         AllowedCollisionCount = int.MaxValue
     };
     W = new Spell.Targeted(SpellSlot.W, 600);
     E = new Spell.Targeted(SpellSlot.E, 800);
     R = new Spell.Active(SpellSlot.R, 550);
 }
示例#7
0
 static SpellManager()
 {
     Q = new Spell.Chargeable(SpellSlot.Q, 925, 1650, 1200, 250, 1850, 70)
     {
         AllowedCollisionCount = int.MaxValue
     };
     W = new Spell.Active(SpellSlot.W);
     E = new Spell.Skillshot(SpellSlot.E, 1100, SkillShotType.Circular, 350, 1500, 120)
     {
         AllowedCollisionCount = int.MaxValue
     };
     R = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Linear, 250, 1950, 120);
 }
示例#8
0
        static SpellManager()
        {
            // Initialize spells
            Q = new Spell.Chargeable(SpellSlot.Q, 250, 715, 6 / 5, 250, 1500, 55);
            Q2 = new Spell.Skillshot(SpellSlot.Q, 250, SkillShotType.Linear, 250, 1500, 55);
            E = new Spell.Skillshot(SpellSlot.E, 400, SkillShotType.Linear, 250, null, 350);
            R = new Spell.Targeted(SpellSlot.R, 800);

            AllSpells = new List<Spell.SpellBase>(new Spell.SpellBase[] { Q, E, R });
            ColorTranslation = new Dictionary<SpellSlot, Color>
            {
                { SpellSlot.Q, Color.Blue.ToArgb(150) },
                { SpellSlot.E, Color.Green.ToArgb(150) },
                { SpellSlot.R, Color.Red.ToArgb(150) }
            };
        }
示例#9
0
 static SpellManager()
 {
     Q = new Spell.Chargeable(SpellSlot.Q, 750, 1550, 1500, 500, int.MaxValue, 100)
     {
         AllowedCollisionCount = int.MaxValue
     };
     W = new Spell.Skillshot(SpellSlot.W, 1100, SkillShotType.Circular, 750, int.MaxValue, 150)
     {
         AllowedCollisionCount = int.MaxValue
     };
     E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear, 250, 1400, 60)
     {
         AllowedCollisionCount = int.MaxValue
     };
     R = new Spell.Skillshot(SpellSlot.R, 3200, SkillShotType.Circular, 500, int.MaxValue, 120)
     {
         AllowedCollisionCount = int.MaxValue
     };
 }
示例#10
0
        static SpellManager()
        {
            Q = new Spell.Skillshot(SpellSlot.Q, 550, SkillShotType.Linear, 500, int.MaxValue, 120);
            W = new Spell.Active(SpellSlot.W, 350);
            E = new Spell.Chargeable(SpellSlot.E, 0, 1750, 1500, 500, 1500, 250);
            R = new Spell.Active(SpellSlot.R, 300);

            //E = new Spell.Chargeable(SpellSlot.E, 250, 1750, (int)EMaxChannelTimes[E.Level - 1], 0, 1500, 300);

            Q.AllowedCollisionCount = int.MaxValue;
            E.AllowedCollisionCount = int.MaxValue;

            if (Utility.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner1).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner1, 570);
                return;
            }
            if (Utility.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner2).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner2, 570);
            }
        }
示例#11
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Vi")
                return;

            Vi = Player.Instance;
            ModeHandler.Vi = Player.Instance;

            MenuHandler.Initialize();

            Q = new Spell.Chargeable(SpellSlot.Q, 250, 725, 4, 250, 1250, 55, DamageType.Physical)
            {
                AllowedCollisionCount = int.MaxValue,
            };
            W = new Spell.Active(SpellSlot.W, 0);
            E = new Spell.Active(SpellSlot.E, 175, DamageType.Physical);
            R = new Spell.Targeted(SpellSlot.R, 800, DamageType.Physical);

            Game.OnTick += Game_OnTick;
            Drawing.OnDraw += Drawing_OnDraw;
            Drawing.OnEndScene += Drawing_OnEndScene;
        }
示例#12
0
        static SpellManager()
        {
            // Initialize spells
            Q2 = new Spell.Skillshot(SpellSlot.Q, 925, EloBuddy.SDK.Enumerations.SkillShotType.Linear, 0, 1900, 100);
            Q2.AllowedCollisionCount = int.MaxValue;
            Q = new Spell.Chargeable(SpellSlot.Q, 925, 1625, 2000, 0, 1900, 100);
            Q.OnSpellCasted += Q_OnSpellCasted;
            Q.AllowedCollisionCount = int.MaxValue;
            E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 500, int.MaxValue, 750);
            R = new Spell.Skillshot(SpellSlot.R, 1075, SkillShotType.Linear, 0, 1200, 120);
            var slot = ObjectManager.Player.GetSpellSlotFromName("summonerheal");
            if (slot != SpellSlot.Unknown)
            {
                heal = new Spell.Active(slot, 850);
            }
            var slot2 = ObjectManager.Player.GetSpellSlotFromName("summonerdot");
            if (slot2 != SpellSlot.Unknown)
            {
                ignite = new Spell.Targeted(slot2, 600);
            }

        }
示例#13
0
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (EloBuddy.Player.Instance.Hero != Champion.Varus)
            {
                return;
            }

            Q = new Spell.Chargeable(SpellSlot.Q, 925, 1600, 1250, 0, 1500, 70)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1750, 250)
            {
                AllowedCollisionCount = int.MaxValue
            };
            R = new Spell.Skillshot(SpellSlot.R, 1200, SkillShotType.Linear, 250, 1200, 120)
            {
                AllowedCollisionCount = int.MaxValue
            };

            var slot = Player.GetSpellSlotFromName("summonerheal");

            if (slot != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot, 600);
            }
            Ignite = ObjectManager.Player.GetSpellSlotFromName("summonerdot");

            HealthPotion     = new Item(2003, 0);
            TotalBiscuit     = new Item(2010, 0);
            CorruptingPotion = new Item(2033, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion    = new Item(2032, 0);

            Chat.Print(
                "<font color=\"#580dd9\" >MeLoDag Presents </font><font color=\"#ffffff\" > VarusTheTroll </font><font color=\"#580dd9\" >Kappa Kippo</font>");


            Menu = MainMenu.AddMenu("Varus The Troll", "VarusTheTroll");
            Menu.AddLabel(" Varus The Troll " + Version);
            Menu.AddLabel(" Made by MeLoDag");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddGroupLabel("Q Settings");
            ComboMenu.Add("useQComboAlways", new CheckBox("Use Q[Always]"));
            ComboMenu.Add("useQCombo", new CheckBox("Use Q[StackCount]", false));
            ComboMenu.Add("StackCount", new Slider("Q when stacks >= ", 3, 1, 3));
            ComboMenu.AddLabel("E Settings");
            ComboMenu.Add("useEComboAlways", new CheckBox("Use E"));
            ComboMenu.AddLabel("R Settings");
            ComboMenu.Add("useRCombo", new CheckBox("Use R"));
            ComboMenu.Add("Rcount", new Slider("R when enemies >= ", 1, 1, 5));
            ComboMenu.Add("UseRcomboHP", new CheckBox("Use R[HpEnemy]"));
            ComboMenu.Add("RHP", new Slider("Use R If Hp enemies >= ", 50));
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("Combo preferences:");
            ComboMenu.Add("useWComboFocus", new CheckBox("Focus Target W"));
            ComboMenu.Add("ForceR",
                          new KeyBind("Force R On Target Selector", false, KeyBind.BindTypes.HoldActive, "T".ToCharArray()[0]));
            ComboMenu.Add("combo.ignite", new CheckBox("Use Ignite If Combo Killable"));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useEHarass", new CheckBox("Use E"));
            HarassMenu.Add("useEHarassMana", new Slider("E Mana > %", 70));
            HarassMenu.Add("useQHarassMana", new Slider("Q Mana > %", 70));

            JungleLaneMenu = Menu.AddSubMenu("Lane Clear Settings", "FarmSettings");
            JungleLaneMenu.AddLabel("Lane Clear");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useEFarm", new CheckBox("Use E"));
            JungleLaneMenu.Add("LaneMana", new Slider("Mana > %", 70));
            JungleLaneMenu.AddSeparator();
            JungleLaneMenu.AddLabel("Jungle Clear");
            JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useEJungle", new CheckBox("Use E"));
            JungleLaneMenu.Add("JungleMana", new Slider("E Mana > %", 70));

            MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings");
            MiscMenu.AddGroupLabel("Gap Close/Interrupt Settings");
            MiscMenu.Add("gapcloser", new CheckBox("Auto E for Gapcloser"));
            MiscMenu.Add("interrupter", new CheckBox("Auto R for Interrupter"));
            MiscMenu.AddLabel("Auto Skills On CC Enemy");
            MiscMenu.Add("CCQ", new CheckBox("Auto Q on Enemy CC"));
            MiscMenu.AddLabel("KillSteal Settings");
            MiscMenu.Add("UseQks", new CheckBox("Use Q ks"));
            MiscMenu.Add("UseRKs", new CheckBox("Use R Ks"));

            AutoPotHealMenu = Menu.AddSubMenu("Potion & Heal", "Potion & Heal");
            AutoPotHealMenu.AddGroupLabel("Auto pot usage");
            AutoPotHealMenu.Add("potion", new CheckBox("Use potions"));
            AutoPotHealMenu.Add("potionminHP", new Slider("Minimum Health % to use potion", 40));
            AutoPotHealMenu.Add("potionMinMP", new Slider("Minimum Mana % to use potion", 20));
            AutoPotHealMenu.AddGroupLabel("AUto Heal Usage");
            AutoPotHealMenu.Add("UseHeal", new CheckBox("Use Heal"));
            AutoPotHealMenu.Add("useHealHP", new Slider("Minimum Health % to use Heal", 20));

            ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings");
            ItemMenu.Add("useBOTRK", new CheckBox("Use BOTRK"));
            ItemMenu.Add("useBotrkMyHP", new Slider("My Health < ", 60));
            ItemMenu.Add("useBotrkEnemyHP", new Slider("Enemy Health < ", 60));
            ItemMenu.Add("useYoumu", new CheckBox("Use Youmu"));
            ItemMenu.AddSeparator();
            ItemMenu.Add("useQSS", new CheckBox("Use QSS"));
            ItemMenu.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo"));
            ItemMenu.Add("Stun", new CheckBox("Stun", true));
            ItemMenu.Add("Blind", new CheckBox("Blind", true));
            ItemMenu.Add("Charm", new CheckBox("Charm", true));
            ItemMenu.Add("Suppression", new CheckBox("Suppression", true));
            ItemMenu.Add("Polymorph", new CheckBox("Polymorph", true));
            ItemMenu.Add("Fear", new CheckBox("Fear", true));
            ItemMenu.Add("Taunt", new CheckBox("Taunt", true));
            ItemMenu.Add("Silence", new CheckBox("Silence", false));
            ItemMenu.Add("QssDelay", new Slider("Use QSS Delay(ms)", 250, 0, 1000));


            SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger");
            SkinMenu.Add("checkSkin", new CheckBox("Use Skin Changer", false));
            SkinMenu.Add("skin.Id", new Slider("Skin", 1, 0, 5));

            DrawMenu = Menu.AddSubMenu("Drawing Settings");
            DrawMenu.Add("drawRange", new CheckBox("Draw Q Range"));
            DrawMenu.Add("drawE", new CheckBox("Draw E Range"));
            DrawMenu.Add("drawR", new CheckBox("Draw R Range"));
            DrawMenu.AddLabel("Damage indicators");
            DrawMenu.Add("healthbar", new CheckBox("Healthbar overlay"));
            DrawMenu.Add("percent", new CheckBox("Damage percent info"));


            Game.OnTick                      += Game_OnTick;
            Game.OnUpdate                    += OnGameUpdate;
            Obj_AI_Base.OnBuffGain           += OnBuffGain;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapCloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Drawing.OnDraw                   += Drawing_OnDraw;
            DamageIndicator.Initialize(ComboDamage);
        }
示例#14
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != ChampionName)
            {
                return;
            }

            Q = new Spell.Chargeable(SpellSlot.Q, 750, 1450, 1500, 500, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Skillshot(SpellSlot.W, 1100, SkillShotType.Circular, 250, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Linear, 250, 1600, 70);
            R = new Spell.Skillshot(SpellSlot.R, 3200, SkillShotType.Circular, 600, int.MaxValue, 125)
            {
                AllowedCollisionCount = int.MaxValue
            };

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            Menuini         = MainMenu.AddMenu("Xerath", "Xerath");
            RMenu           = Menuini.AddSubMenu("R Settings");
            ComboMenu       = Menuini.AddSubMenu("Combo Settings");
            HarassMenu      = Menuini.AddSubMenu("Harass Settings");
            LaneClearMenu   = Menuini.AddSubMenu("LaneClear Settings");
            JungleClearMenu = Menuini.AddSubMenu("JungleClear Settings");
            KillStealMenu   = Menuini.AddSubMenu("KillSteal Settings");
            MiscMenu        = Menuini.AddSubMenu("Misc Settings");
            DrawMenu        = Menuini.AddSubMenu("Drawings Settings");
            ColorMenu       = Menuini.AddSubMenu("Color Picker");

            RMenu.AddGroupLabel("R Settings");
            RMenu.Add("R", new CheckBox("Use R"));
            RMenu.Add(R.Slot + "hit", new ComboBox("R HitChance", 0, "High", "Medium", "Low"));
            RMenu.Add("scrybR", new CheckBox("Use Scrybing Orb while Ulting"));
            RMenu.Add("Rmode", new ComboBox("R Mode", 0, "Auto", "Custom Delays", "On Tap"));
            RMenu.Add("Rtap", new KeyBind("R Tap Key", false, KeyBind.BindTypes.HoldActive, 'S'));
            RMenu.AddGroupLabel("R Custom Delays");
            for (int i = 1; i <= 5; i++)
            {
                RMenu.Add("delay" + i, new Slider("Delay " + i, 0, 0, 1500));
            }
            RMenu.Add("Rblock", new CheckBox("Block Commands While Casting R"));
            RMenu.Add("Rnear", new CheckBox("Focus Targets Near Mouse Only"));
            RMenu.Add("Mradius", new Slider("Mouse Radius", 750, 300, 1500));

            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("key", new KeyBind("Combo Key", false, KeyBind.BindTypes.HoldActive, 32));
            ComboMenu.Add("Q", new CheckBox("Use Q"));
            ComboMenu.Add(Q.Slot + "hit", new ComboBox("Q HitChance", 0, "High", "Medium", "Low"));
            ComboMenu.Add("W", new CheckBox("Use W"));
            ComboMenu.Add(W.Slot + "hit", new ComboBox("W HitChance", 0, "High", "Medium", "Low"));
            ComboMenu.Add("E", new CheckBox("Use E"));
            ComboMenu.Add(E.Slot + "hit", new ComboBox("E HitChance", 0, "High", "Medium", "Low"));

            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("key", new KeyBind("Harass Key", false, KeyBind.BindTypes.HoldActive, 'C'));
            HarassMenu.Add("toggle", new KeyBind("Auto Harass", false, KeyBind.BindTypes.PressToggle, 'H'));
            HarassMenu.Add("Q", new CheckBox("Use Q"));
            HarassMenu.Add(Q.Slot + "hit", new ComboBox("Q HitChance", 0, "High", "Medium", "Low"));
            HarassMenu.Add("Qmana", new Slider("Use Q if Mana% > [{0}%]"));
            HarassMenu.Add("W", new CheckBox("Use W"));
            HarassMenu.Add(W.Slot + "hit", new ComboBox("W HitChance", 0, "High", "Medium", "Low"));
            HarassMenu.Add("Wmana", new Slider("Use W if Mana% > [{0}%]"));
            HarassMenu.Add("E", new CheckBox("Use E"));
            HarassMenu.Add(E.Slot + "hit", new ComboBox("E HitChance", 0, "High", "Medium", "Low"));
            HarassMenu.Add("Emana", new Slider("Use E if Mana% > [{0}%]"));

            LaneClearMenu.AddGroupLabel("LaneClear Settings");
            LaneClearMenu.Add("key", new KeyBind("LaneClear Key", false, KeyBind.BindTypes.HoldActive, 'V'));
            LaneClearMenu.Add("Q", new CheckBox("Use Q"));
            LaneClearMenu.Add("Qmode", new ComboBox("Q Mode", 0, "LaneClear", "LastHit", "Both"));
            LaneClearMenu.Add("Qmana", new Slider("Use Q if Mana% > [{0}%]"));
            LaneClearMenu.Add("W", new CheckBox("Use W"));
            LaneClearMenu.Add("Wmode", new ComboBox("W Mode", 0, "LaneClear", "LastHit", "Both"));
            LaneClearMenu.Add("Wmana", new Slider("Use W if Mana% > [{0}%]"));
            LaneClearMenu.Add("E", new CheckBox("Use E"));
            LaneClearMenu.Add("Emode", new ComboBox("E Mode", 0, "LaneClear", "LastHit", "Both"));
            LaneClearMenu.Add("Emana", new Slider("Use E if Mana% > [{0}%]"));

            JungleClearMenu.AddGroupLabel("JungleClear Settings");
            JungleClearMenu.Add("key", new KeyBind("JungleClear Key", false, KeyBind.BindTypes.HoldActive, 'V'));
            JungleClearMenu.Add("Q", new CheckBox("Use Q"));
            JungleClearMenu.Add("Qmana", new Slider("Use Q if Mana% > [{0}%]"));
            JungleClearMenu.Add("W", new CheckBox("Use W"));
            JungleClearMenu.Add("Wmana", new Slider("Use W if Mana% > [{0}%]"));
            JungleClearMenu.Add("E", new CheckBox("Use E"));
            JungleClearMenu.Add("Emana", new Slider("Use E if Mana% > [{0}%]"));

            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("Q", new CheckBox("Use Q"));
            KillStealMenu.Add("W", new CheckBox("Use W"));
            KillStealMenu.Add("E", new CheckBox("Use E"));

            MiscMenu.AddGroupLabel("Misc Settings");
            MiscMenu.Add("gap", new CheckBox("E Anti-GapCloser"));
            MiscMenu.Add("int", new CheckBox("E Interrupter"));
            MiscMenu.Add("danger", new ComboBox("Interrupter Danger Level", 1, "High", "Medium", "Low"));
            MiscMenu.Add("flee", new KeyBind("Escape with E", false, KeyBind.BindTypes.HoldActive, 'A'));
            var notifi = MiscMenu.Add("Notifications", new CheckBox("Use Notifications"));

            MiscMenu.Add("autoECC", new CheckBox("Auto E On CC enemy"));
            MiscMenu.Add("scrybebuy", new CheckBox("Auto Scrybing Orb Buy"));
            MiscMenu.Add("scrybebuylevel", new Slider("Buy Orb at level [{0}]", 9, 1, 18));
            MiscMenu.AddGroupLabel("Anti-GapCloser Spells");
            foreach (var spell in
                     from spell in Gapcloser.GapCloserList
                     from enemy in EntityManager.Heroes.Enemies.Where(enemy => spell.ChampName == enemy.ChampionName)
                     select spell)
            {
                MiscMenu.Add(spell.SpellName, new CheckBox(spell.ChampName + " - " + spell.SpellSlot));
            }

            foreach (var spell in SpellList)
            {
                DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Range"));
            }

            DrawMenu.Add("Rmini", new CheckBox("Draw R Range (MiniMap)", false));

            foreach (var spell in SpellList)
            {
                ColorMenu.Add(spell.Slot + "Color", new ColorPicker(spell.Slot + " Color", Color.Chartreuse));
            }

            if (notifi.CurrentValue)
            {
                Common.ShowNotification("KappaXerath - Loaded", 5000);
            }

            Game.OnUpdate      += Game_OnGameUpdate;
            Drawing.OnDraw     += Drawing_OnDraw;
            Drawing.OnEndScene += Drawing_OnEndScene;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
            Orbwalker.OnPreAttack            += Orbwalker_OnPreAttack;
            Player.OnIssueOrder   += Player_OnIssueOrder;
            GameObject.OnCreate   += GameObject_OnCreate;
            Spellbook.OnCastSpell += Spellbook_OnCastSpell;
        }
示例#15
0
        public static bool CanCast(this Obj_AI_Base target, Spell.Chargeable spell)
        {
            var asBase = spell as Spell.SpellBase;

            return(target.CanCast(asBase));
        }
示例#16
0
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Poppy)
            {
                return;
            }

            Q = new Spell.Skillshot(SpellSlot.Q, 430, SkillShotType.Linear, 250, null, 100);
            Q.AllowedCollisionCount = int.MaxValue;
            W = new Spell.Active(SpellSlot.W, 400);
            E = new Spell.Targeted(SpellSlot.E, 425);
            E2 = new Spell.Skillshot(SpellSlot.E, 525, SkillShotType.Linear, 250, 1250);
            R = new Spell.Chargeable(SpellSlot.R, 500, 1200, 4000, 250, int.MaxValue, 90);

            var slot = _Player.GetSpellSlotFromName("summonerheal");
            if (slot != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot, 600);
            }
            HealthPotion = new Item(2003, 0);
            TotalBiscuit = new Item(2010, 0);
            CorruptingPotion = new Item(2033, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion = new Item(2032, 0);

            Chat.Print("Poppy The Troll Loaded! Version 1", Color.DeepSkyBlue);
            Chat.Print("Have Fun And Dont Feed Kappa!", Color.DeepSkyBlue);

            Menu = MainMenu.AddMenu("Poppy The Troll", "PoppyTheTroll");
            Menu.AddGroupLabel("Poppy The Troll Version 1");
            Menu.AddLabel("Last Update 31/5/2016");
            Menu.AddLabel("Made By MeLoDaG");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("useQCombo", new CheckBox("Use Q"));
            ComboMenu.Add("useWCombo", new CheckBox("Use W"));
            ComboMenu.Add("useECombo", new CheckBox("Use E"));
            ComboMenu.Add("useRcombo", new CheckBox("Use R"));
            ComboMenu.Add("combo.REnemies", new Slider("Min Enemyes for R", 1, 1, 5));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useWHarassMana", new Slider("Min. Mana for Harass %", 70, 0, 100));

            JungleLaneMenu = Menu.AddSubMenu("Lane Jungle Clear Settings", "FarmSettings");
            JungleLaneMenu.AddGroupLabel("Lane Clear");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useWManalane", new Slider("Min. Mana for Laneclear Spells %", 70, 0, 100));
            JungleLaneMenu.AddLabel("Jungle Clear");
            JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useWMana", new Slider("Min. Mana for Jungleclear Spells %", 70, 0, 100));

            ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings");
            ItemMenu.AddGroupLabel("Botrk Settings");
            ItemMenu.Add("useBOTRK", new CheckBox("Use BOTRK"));
            ItemMenu.Add("useBotrkMyHP", new Slider("My Health < ", 60, 1, 100));
            ItemMenu.Add("useBotrkEnemyHP", new Slider("Enemy Health < ", 60, 1, 100));
            ItemMenu.Add("useYoumu", new CheckBox("Use Youmu"));
            ItemMenu.AddGroupLabel("Auto QSS if :");
            ItemMenu.Add("Blind",
                new CheckBox("Blind", false));
            ItemMenu.Add("Charm",
                new CheckBox("Charm"));
            ItemMenu.Add("Fear",
                new CheckBox("Fear"));
            ItemMenu.Add("Polymorph",
                new CheckBox("Polymorph"));
            ItemMenu.Add("Stun",
                new CheckBox("Stun"));
            ItemMenu.Add("Snare",
                new CheckBox("Snare"));
            ItemMenu.Add("Silence",
                new CheckBox("Silence", false));
            ItemMenu.Add("Taunt",
                new CheckBox("Taunt"));
            ItemMenu.Add("Suppression",
                new CheckBox("Suppression"));

            AutoPotHealMenu = Menu.AddSubMenu("Potion & HeaL", "Potion & HeaL");
            AutoPotHealMenu.AddGroupLabel("Auto pot usage");
            AutoPotHealMenu.Add("potion", new CheckBox("Use potions"));
            AutoPotHealMenu.Add("potionminHP", new Slider("Minimum Health % to use potion", 40));
            AutoPotHealMenu.Add("potionMinMP", new Slider("Minimum Mana % to use potion", 20));
            AutoPotHealMenu.AddGroupLabel("AUto Heal Usage");
            AutoPotHealMenu.Add("UseHeal", new CheckBox("Use Heal"));
            AutoPotHealMenu.Add("useHealHP", new Slider("Minimum Health % to use Heal", 20));

            MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings");
            MiscMenu.AddGroupLabel("Gapcloser/Interrupt  settings");
            MiscMenu.Add("gapcloser", new CheckBox("Auto W for Gapcloser"));
            MiscMenu.Add("gapcloserE", new CheckBox("Auto E for Gapcloser"));
            MiscMenu.Add("InterruptE", new CheckBox("Auto E for Interrupt"));
            MiscMenu.Add("interruptR", new CheckBox("Auto R for Interrupt"));
            MiscMenu.AddGroupLabel("Ks Settings");
            MiscMenu.Add("UseQks", new CheckBox("Use Q ks"));

            SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger");
            SkinMenu.Add("checkSkin", new CheckBox("Use Skin Changer", false));
            SkinMenu.Add("skin.Id", new Slider("Skin", 1, 0, 8));

            FleeMenu = Menu.AddSubMenu("Flee Settings", "FleeSettings");
            FleeMenu.AddGroupLabel("Flee Settings");
            FleeMenu.Add("FleeW", new CheckBox("Use W"));

            DrawMenu = Menu.AddSubMenu("Drawing Settings");
            DrawMenu.AddGroupLabel("Draw Settings");
            DrawMenu.Add("drawQ", new CheckBox("Draw Q Range"));
            DrawMenu.Add("drawW", new CheckBox("Draw W Range"));
            DrawMenu.Add("drawE", new CheckBox("Draw E Range"));
            DrawMenu.Add("drawR", new CheckBox("Draw R Range"));
            DrawMenu.AddLabel("Damage indicators");
            DrawMenu.Add("healthbar", new CheckBox("Healthbar overlay"));
            DrawMenu.Add("percent", new CheckBox("Damage percent info"));

            DamageIndicator.Initialize(ComboDamage);
            Game.OnTick += Game_OnTick;
            Game.OnUpdate += OnGameUpdate;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Obj_AI_Base.OnBuffGain += OnBuffGain;
            Gapcloser.OnGapcloser += Gapcloser_OnGapCloser;
            Drawing.OnDraw += Drawing_OnDraw;
        }
示例#17
0
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Varus")
                return;
            Bootstrap.Init(null);

            // Spell instances
            Q = new Spell.Chargeable(SpellSlot.Q, 925, 1650, 4);
            E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular);
            R = new Spell.Skillshot(SpellSlot.R, 1100, SkillShotType.Linear);

            //Menu Instances
            VarusMenu = MainMenu.AddMenu("xRP Varus", "xrpvarus");
            VarusMenu.AddGroupLabel("xRP-Varus");
            VarusMenu.AddSeparator();
            VarusMenu.AddGroupLabel("Made by: xRPdev");

            ComboMenu = VarusMenu.AddSubMenu("Combo", "sbtwcombo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.AddSeparator();
            ComboMenu.Add("usecomboq", new CheckBox("Use Q"));
            ComboMenu.Add("usecomboe", new CheckBox("Use E"));
            ComboMenu.Add("usecombor", new CheckBox("R to Stun"));

            HarassMenu = VarusMenu.AddSubMenu("HarassMenu", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.AddSeparator();
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useEHarass", new CheckBox("Use E"));
            HarassMenu.Add("waitAA", new CheckBox("wait for AA to finish", false));

            MiscMenu = VarusMenu.AddSubMenu("Misc", "misc");
            MiscMenu.AddGroupLabel("Misc");
            MiscMenu.AddSeparator();
            MiscMenu.Add("kse", new CheckBox("KS with E"));
            MiscMenu.Add("ksq", new CheckBox("KS with Q"));
            MiscMenu.AddSeparator();
            MiscMenu.Add("gapr", new CheckBox("R on Gapcloser"));

            DrawMenu = VarusMenu.AddSubMenu("Drawings", "drawings");
            DrawMenu.AddGroupLabel("Drawings");
            DrawMenu.AddSeparator();
            DrawMenu.Add("drawq", new CheckBox("Draw Q"));
            DrawMenu.Add("drawe", new CheckBox("Draw E"));
            DrawMenu.Add("drawr", new CheckBox("Draw R"));
            DrawMenu.Add("drawAA", new CheckBox("Draw AutoAttack"));

            LaneClearMenu = VarusMenu.AddSubMenu("Lane Clear", "laneclear");
            LaneClearMenu.AddGroupLabel("Lane Clear Settings");
            LaneClearMenu.AddSeparator();
            LaneClearMenu.Add("LCQ", new CheckBox("Use Q"));
            LaneClearMenu.Add("countM", new Slider("Min minions to Q", 3, 0, 6));
            LaneClearMenu.Add("LCE", new CheckBox("Use E"));
            LaneClearMenu.Add("countME", new Slider("Min minions to E", 3, 0, 6));

            Game.OnTick += Tick;
            Drawing.OnDraw += OnDraw;
            Gapcloser.OnGapcloser += Gapcloser_OnGapCloser;
        }
示例#18
0
文件: poppy.cs 项目: kin123/EloBuddy
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Poppy)
            {
                return;
            }


            Q = new Spell.Skillshot(SpellSlot.Q, 430, SkillShotType.Linear, 250, null, 100);
            Q.AllowedCollisionCount = int.MaxValue;
            W  = new Spell.Active(SpellSlot.W, 400);
            E  = new Spell.Targeted(SpellSlot.E, 425);
            E2 = new Spell.Skillshot(SpellSlot.E, 525, SkillShotType.Linear, 250, 1250);
            R  = new Spell.Chargeable(SpellSlot.R, 500, 1200, 4000, 250, int.MaxValue, 90);



            Menu = MainMenu.AddMenu("Poppy HTTF", "Poppy");


            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("useQCombo", new CheckBox("Use Q"));
            ComboMenu.Add("useWCombo", new CheckBox("Use W"));
            ComboMenu.Add("useECombo", new CheckBox("Use E"));
            ComboMenu.Add("useRcombo", new CheckBox("Use R"));
            ComboMenu.Add("combo.REnemies", new Slider("Min Enemyes for R", 1, 1, 5));
            ComboMenu.AddGroupLabel("Harass Settings");
            ComboMenu.Add("useQHarass", new CheckBox("Use Q"));
            ComboMenu.Add("useWHarassMana", new Slider("Min. Mana for Harass %", 70, 0, 100));
            ComboMenu.AddGroupLabel("E Setting");
            ComboMenu.Add("useEwall", new CheckBox("Use E always in wall?"));
            ComboMenu.Add("useEeq", new CheckBox("Use E in escape ?"));

            JungleLaneMenu = Menu.AddSubMenu("Clear Settings", "FarmSettings");
            JungleLaneMenu.AddGroupLabel("Lane Clear");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useWManalane", new Slider("Min. Mana for Laneclear Spells %", 70, 0, 100));
            JungleLaneMenu.AddLabel("Jungle Clear");
            JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useWMana", new Slider("Min. Mana for Jungleclear Spells %", 70, 0, 100));


            MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings");
            MiscMenu.AddGroupLabel("Gapcloser and Interrupt  settings");
            MiscMenu.Add("gapcloser", new CheckBox("Auto W  Gapcloser"));
            MiscMenu.Add("gapcloserE", new CheckBox("Auto E  Gapcloser"));
            MiscMenu.Add("InterruptE", new CheckBox("Auto E  Interrupt"));
            MiscMenu.Add("interruptR", new CheckBox("Auto R  Interrupt"));
            MiscMenu.AddGroupLabel("Flee Settings");
            MiscMenu.Add("FleeW", new CheckBox("Use W"));



            DrawMenu = Menu.AddSubMenu("Drawing Settings");
            DrawMenu.AddGroupLabel("Draw Settings");
            DrawMenu.Add("drawQ", new CheckBox("Draw Q Range"));
            DrawMenu.Add("drawW", new CheckBox("Draw W Range"));
            DrawMenu.Add("drawE", new CheckBox("Draw E Range"));
            DrawMenu.Add("drawR", new CheckBox("Draw R Range"));


            Game.OnUpdate += OnGameUpdate;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapCloser;
            Drawing.OnDraw += Drawing_OnDraw;
        }
示例#19
0
        public override void Init()
        {
            try
            {
                //spells
                _q = new Spell.Chargeable(SpellSlot.Q, 925, 1600, 1250, 0, 1500, 70)
                {
                    AllowedCollisionCount = int.MaxValue
                };
                _w = new Spell.Active(SpellSlot.W);
                _e = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1750, 250)
                {
                    AllowedCollisionCount = int.MaxValue
                };
                _r = new Spell.Skillshot(SpellSlot.R, 1200, SkillShotType.Linear, 250, 1200, 120)
                {
                    AllowedCollisionCount = int.MaxValue
                };

                //menu

                //combo test
                MainMenu.ComboKeys(useW: false);
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Combo Preferences", "combo.grouplabel.addonmenu", true);
                MainMenu._combo.AddCheckBox("combo.q.stacks", "Use Q only for stacks", false, true);
                MainMenu._combo.AddSlider("combo.q.stacks.min", "Min. {0} stacks for Q", 3, 1, 3, true);
                MainMenu._combo.AddCheckBox("combo.e.stacks", "Use E only for stacks", true, true);
                MainMenu._combo.AddSlider("combo.e.stacks.min", "Min. {0} stacks for E", 3, 1, 3, true);
                MainMenu._combo.Add("combo.r.assist",
                                    new KeyBind("Semi-Auto Ult", false, KeyBind.BindTypes.HoldActive, 'G'));
                MainMenu._combo.AddCheckBox("combo.r.aoe", "Use R for AOE", true, true);
                MainMenu._combo.AddSlider("combo.r.slider", "{0} enemies hit with R snare", 3, 1, 5, true);

                //harass
                MainMenu.HarassKeys(useW: false, useR: false);
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddCheckBox("harass.q.stacks", "Use Q only for stacks", false, true);
                MainMenu._harass.AddSlider("harass.q.stacks.min", "Min. {0} stacks for Q", 3, 1, 3, true);
                MainMenu._harass.AddCheckBox("harass.e.stacks", "Use E only for stacks", false, true);
                MainMenu._harass.AddSlider("harass.e.stacks.min", "Min. {0} stacks for E", 3, 1, 3, true);
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddGroupLabel("Mana Manager:", "harass.grouplabel.addonmenu", true);
                MainMenu.HarassManaManager(true, false, true, false, 20, 0, 20, 0);

                //laneclear
                MainMenu.LaneKeys(useW: false, useR: false);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddGroupLabel("Harass Preferences", "lane.grouplabel.addonmenu", true);
                MainMenu._lane.AddCheckBox("lane.q.harass", "Use Q", true, true);
                MainMenu._lane.AddCheckBox("lane.e.harass", "Use E", true, true);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddCheckBox("lane.q.stacks", "Use Q only for stacks", false, true);
                MainMenu._lane.AddSlider("lane.q.stacks.min", "Min. {0} stacks for Q", 3, 1, 3, true);
                MainMenu._lane.AddCheckBox("lane.e.stacks", "Use E only for stacks", false, true);
                MainMenu._lane.AddSlider("lane.e.stacks.min", "Min. {0} stacks for E", 3, 1, 3, true);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddGroupLabel("Farm Preferences", "lane.grouplabel1.addonmenu", true);
                MainMenu._lane.AddSlider("lane.q.min", "Min. {0} minions for Q", 3, 1, 7, true);
                MainMenu._lane.AddSlider("lane.e.min", "Min. {0} minions for E", 3, 1, 7, true);
                MainMenu._lane.AddGroupLabel("Mana Manager:", "lane.grouplabel2.addonmenu", true);
                MainMenu.LaneManaManager(true, false, true, false, 20, 0, 20, 0);

                //jungleclear
                MainMenu.JungleKeys(useW: false, useR: false);
                MainMenu._jungle.AddSeparator();
                MainMenu._jungle.AddSlider("jungle.q.min", "Min. {0} minions for Q", 3, 1, 4, true);
                MainMenu._jungle.AddSlider("jungle.e.min", "Min. {0} minions for E", 3, 1, 4, true);
                MainMenu._jungle.AddGroupLabel("Mana Manager:", "jungle.grouplabel.addonmenu", true);
                MainMenu.JungleManaManager(true, false, true, false, 20, 0, 20, 0);

                //lasthit
                MainMenu.LastHitKeys(false, useW: false, useE: false, useR: false);
                MainMenu._lasthit.AddCheckBox("lasthit.q.siege", "Use Q on Siege Minions");
                MainMenu._lasthit.AddSeparator();
                MainMenu._lasthit.AddGroupLabel("Mana Manager:", "lasthit.grouplabel.addonmenu", true);
                MainMenu.LasthitManaManager(true, false, false, false, 15, 0, 0, 0);

                //flee
                MainMenu.FleeKeys(false, useW: false, useR: false);
                MainMenu._flee.AddSeparator();
                MainMenu._flee.AddGroupLabel("Mana Manager:", "flee.grouplabel.addonmenu", true);
                MainMenu.FleeManaManager(false, false, true, false, 0, 0, 20, 0);

                //ks
                MainMenu.KsKeys(useW: false, useR: false);
                MainMenu._ks.AddSeparator();
                MainMenu._ks.AddGroupLabel("Mana Manager:", "killsteal.grouplabel.addonmenu", true);
                MainMenu.KsManaManager(true, false, true, false, 20, 0, 10, 0);

                //misc
                MainMenu.MiscMenu();
                MainMenu._misc.AddCheckBox("misc.r.interrupt", "Use R to Interrupt");
                MainMenu._misc.AddCheckBox("misc.e.gapcloser", "Use E for Anti-Gapcloser");
                MainMenu._misc.AddCheckBox("misc.r.auto", "Anti Rengar + Khazix");
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddGroupLabel("Auto Q/E Settings", "misc.grouplabel.addonmenu", true);
                MainMenu._misc.AddCheckBox("misc.q.charm", "Use Q on Charmed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.stun", "Use Q on Stunned Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.knockup", "Use Q on Knocked Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.snare", "Use Q on Snared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.suppression", "Use Q on Suppressed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.taunt", "Use Q on Taunted Enemy", true, true);
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddCheckBox("misc.e.charm", "Use E on Charmed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.stun", "Use E on Stunned Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.knockup", "Use E on Knocked Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.snare", "Use E on Snared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.suppression", "Use E on Suppressed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.taunt", "Use E on Taunted Enemy", true, true);
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddGroupLabel("Prediction", "misc.grouplabel1.addonmenu", true);
                MainMenu._misc.AddSlider("misc.q.prediction", "Hitchance Percentage for Q", 80, 0, 100, true);
                MainMenu._misc.AddSlider("misc.e.prediction", "Hitchance Percentage for E", 80, 0, 100, true);
                MainMenu._misc.AddSlider("misc.r.prediction", "Hitchance Percentage for R", 80, 0, 100, true);

                //draw
                MainMenu.DrawKeys(useW: false);
                MainMenu._draw.AddSeparator();
                MainMenu._draw.AddCheckBox("draw.hp.bar", "Draw Combo Damage", true, true);
            }

            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>");
            }

            try
            {
                Value.Init();
                if (MainMenu._menu["useonupdate"].Cast <CheckBox>().CurrentValue)
                {
                    Game.OnUpdate += GameOnUpdate;
                }
                else
                {
                    Game.OnTick += GameOnUpdate;
                }
                Drawing.OnDraw                   += GameOnDraw;
                Drawing.OnEndScene               += Drawing_OnEndScene;
                Obj_AI_Base.OnBuffGain           += Player_OnBuffGain;
                Obj_AI_Base.OnBuffLose           += Obj_AI_Base_OnBuffLose;
                GameObject.OnCreate              += GameObject_OnCreate;
                Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
                Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            }

            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code INIT)</font>");
            }
        }
示例#20
0
 public Vi()
 {
     Q = new Spell.Chargeable(SpellSlot.Q, 250, 875, 1250, 0, 1400, 55);
     W = new Spell.Active(SpellSlot.W);
     E = new Spell.Active(SpellSlot.E, 600);
     //E2 = new Spell.Skillshot(SpellSlot.E, 600, SkillShotType.Cone);
     R = new Spell.Targeted(SpellSlot.R, 800);
 }
示例#21
0
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (EloBuddy.Player.Instance.Hero != Champion.Varus)
            {
                return;
            }

            Q = new Spell.Chargeable(SpellSlot.Q, 925, 1600, 1250, 0, 1500, 70)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1750, 250)
            {
                AllowedCollisionCount = int.MaxValue
            };
            R = new Spell.Skillshot(SpellSlot.R, 1200, SkillShotType.Linear, 250, 1200, 120)
            {
                AllowedCollisionCount = int.MaxValue
            };

            var slot = Player.GetSpellSlotFromName("summonerheal");
            if (slot != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot, 600);
            }
            Ignite = ObjectManager.Player.GetSpellSlotFromName("summonerdot");

            HealthPotion = new Item(2003, 0);
            TotalBiscuit = new Item(2010, 0);
            CorruptingPotion = new Item(2033, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion = new Item(2032, 0);

            Chat.Print(
                "<font color=\"#580dd9\" >MeLoDag Presents </font><font color=\"#ffffff\" > VarusTheTroll </font><font color=\"#580dd9\" >Kappa Kippo</font>");

            Menu = MainMenu.AddMenu("Varus The Troll", "VarusTheTroll");
            Menu.AddLabel(" Varus The Troll " + Version);
            Menu.AddLabel(" Made by MeLoDag");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddGroupLabel("Q Settings");
            ComboMenu.Add("useQComboAlways", new CheckBox("Use Q[Always]"));
            ComboMenu.Add("useQCombo", new CheckBox("Use Q[StackCount]", false));
            ComboMenu.Add("StackCount", new Slider("Q when stacks >= ", 3, 1, 3));
            ComboMenu.AddLabel("E Settings");
            ComboMenu.Add("useEComboAlways", new CheckBox("Use E"));
            ComboMenu.AddLabel("R Settings");
            ComboMenu.Add("useRCombo", new CheckBox("Use R"));
            ComboMenu.Add("Rcount", new Slider("R when enemies >= ", 1, 1, 5));
            ComboMenu.Add("UseRcomboHP", new CheckBox("Use R[HpEnemy]"));
            ComboMenu.Add("RHP", new Slider("Use R If Hp enemies >= ", 50));
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("Combo preferences:");
            ComboMenu.Add("useWComboFocus", new CheckBox("Focus Target W"));
            ComboMenu.Add("ForceR",
                new KeyBind("Force R On Target Selector", false, KeyBind.BindTypes.HoldActive, "T".ToCharArray()[0]));
            ComboMenu.Add("combo.ignite", new CheckBox("Use Ignite If Combo Killable"));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useEHarass", new CheckBox("Use E"));
            HarassMenu.Add("useEHarassMana", new Slider("E Mana > %", 70));
            HarassMenu.Add("useQHarassMana", new Slider("Q Mana > %", 70));

            JungleLaneMenu = Menu.AddSubMenu("Lane Clear Settings", "FarmSettings");
            JungleLaneMenu.AddLabel("Lane Clear");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useEFarm", new CheckBox("Use E"));
            JungleLaneMenu.Add("LaneMana", new Slider("Mana > %", 70));
            JungleLaneMenu.AddSeparator();
            JungleLaneMenu.AddLabel("Jungle Clear");
            JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useEJungle", new CheckBox("Use E"));
            JungleLaneMenu.Add("JungleMana", new Slider("E Mana > %", 70));

            MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings");
            MiscMenu.AddGroupLabel("Gap Close/Interrupt Settings");
            MiscMenu.Add("gapcloser", new CheckBox("Auto E for Gapcloser"));
            MiscMenu.Add("interrupter", new CheckBox("Auto R for Interrupter"));
            MiscMenu.AddLabel("Auto Skills On CC Enemy");
            MiscMenu.Add("CCQ", new CheckBox("Auto Q on Enemy CC"));
            MiscMenu.AddLabel("KillSteal Settings");
            MiscMenu.Add("UseQks", new CheckBox("Use Q ks"));
            MiscMenu.Add("UseRKs", new CheckBox("Use R Ks"));

            AutoPotHealMenu = Menu.AddSubMenu("Potion & Heal", "Potion & Heal");
            AutoPotHealMenu.AddGroupLabel("Auto pot usage");
            AutoPotHealMenu.Add("potion", new CheckBox("Use potions"));
            AutoPotHealMenu.Add("potionminHP", new Slider("Minimum Health % to use potion", 40));
            AutoPotHealMenu.Add("potionMinMP", new Slider("Minimum Mana % to use potion", 20));
            AutoPotHealMenu.AddGroupLabel("AUto Heal Usage");
            AutoPotHealMenu.Add("UseHeal", new CheckBox("Use Heal"));
            AutoPotHealMenu.Add("useHealHP", new Slider("Minimum Health % to use Heal", 20));

            ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings");
            ItemMenu.Add("useBOTRK", new CheckBox("Use BOTRK"));
            ItemMenu.Add("useBotrkMyHP", new Slider("My Health < ", 60));
            ItemMenu.Add("useBotrkEnemyHP", new Slider("Enemy Health < ", 60));
            ItemMenu.Add("useYoumu", new CheckBox("Use Youmu"));
            ItemMenu.AddSeparator();
            ItemMenu.Add("useQSS", new CheckBox("Use QSS"));
            ItemMenu.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo"));
            ItemMenu.Add("Stun", new CheckBox("Stun", true));
            ItemMenu.Add("Blind", new CheckBox("Blind", true));
            ItemMenu.Add("Charm", new CheckBox("Charm", true));
            ItemMenu.Add("Suppression", new CheckBox("Suppression", true));
            ItemMenu.Add("Polymorph", new CheckBox("Polymorph", true));
            ItemMenu.Add("Fear", new CheckBox("Fear", true));
            ItemMenu.Add("Taunt", new CheckBox("Taunt", true));
            ItemMenu.Add("Silence", new CheckBox("Silence", false));
            ItemMenu.Add("QssDelay", new Slider("Use QSS Delay(ms)", 250, 0, 1000));

            SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger");
            SkinMenu.Add("checkSkin", new CheckBox("Use Skin Changer", false));
            SkinMenu.Add("skin.Id", new Slider("Skin", 1, 0, 5));

            DrawMenu = Menu.AddSubMenu("Drawing Settings");
            DrawMenu.Add("drawRange", new CheckBox("Draw Q Range"));
            DrawMenu.Add("drawE", new CheckBox("Draw E Range"));
            DrawMenu.Add("drawR", new CheckBox("Draw R Range"));
            DrawMenu.AddLabel("Damage indicators");
            DrawMenu.Add("healthbar", new CheckBox("Healthbar overlay"));
            DrawMenu.Add("percent", new CheckBox("Damage percent info"));

            Game.OnTick += Game_OnTick;
            Game.OnUpdate += OnGameUpdate;
            Obj_AI_Base.OnBuffGain += OnBuffGain;
            Gapcloser.OnGapcloser += Gapcloser_OnGapCloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Drawing.OnDraw += Drawing_OnDraw;
            DamageIndicator.Initialize(ComboDamage);
        }
示例#22
0
 private static void OnLoadingComplete(EventArgs args)
 {
     if (Varus.Hero != Champion.Varus)
     {
         return;
     }
     _q = new Spell.Chargeable(SpellSlot.Q, 1000, 1600, 1300, 0, 1900, 70)
     {
         AllowedCollisionCount = int.MaxValue
     };
     _w = new Spell.Active(SpellSlot.W);
     _e = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1500, 235);
     _r = new Spell.Skillshot(SpellSlot.R, 1250, SkillShotType.Linear, 250, 1950, 120)
     {
         AllowedCollisionCount = -1
     };
     Orbwalker.OnPreAttack          += (a, b) => IsPreAa = true;
     Orbwalker.OnPostAttack         += (a, b) => { IsPreAa = false; IsAfterAa = true; };
     Game.OnTick                    += VarusActive;
     Gapcloser.OnGapcloser          += QAndRAntiGapCloser;
     Obj_AI_Base.OnProcessSpellCast += AutoItem;
     Obj_AI_Base.OnLevelUp          += OnLevelUpR;
     Drawing.OnEndScene             += HasarGostergesi;
     Drawing.OnDraw                 += SpellDraw;
     _lvl  = Varus.Spellbook;
     _main = MainMenu.AddMenu("Super韦鲁斯", "index");
     _main.AddGroupLabel("欢迎使用 Super韦鲁斯");
     _main.AddSeparator(5);
     _main.AddLabel("祝您游戏愉快!");
     _combo = _main.AddSubMenu("连招设置");
     _combo.AddGroupLabel("韦鲁斯 连招 设置");
     _combo.AddLabel("连招使用Q (On/Off)");
     _combo.Add("q", new CheckBox("使用 Q"));
     _combo.AddSeparator(5);
     _combo.Add("qlogic", new ComboBox("Q 逻辑", 0, "正常", "Super"));
     _combo.AddSeparator(5);
     _combo.AddLabel("连招使用E (On/Off)" + "                                 " + "仅在3成W使用E (On/Off)");
     _combo.Add("e", new CheckBox("使用 E"));
     _combo.Add("stackWuseE", new CheckBox("仅在3成W使用E"));
     _combo.AddSeparator(5);
     _combo.Add("EHitChance", new Slider("E 命中率 : {0}", 60));
     _combo.AddSeparator(5);
     _combo.AddLabel("使用手动R键设置");
     _combo.Add("RKey", new KeyBind("手动R热键绑定", false, KeyBind.BindTypes.HoldActive, 'T'));
     _combo.AddSeparator(5);
     _combo.Add("rlogic", new ComboBox("R 逻辑 ", 0, "正常", "Super"));
     _combo.AddSeparator(5);
     _combo.Add("RHit", new Slider("手动R敌人数量", 1, 1, 5));
     _combo.AddSeparator(5);
     _combo.Add("RHitChance", new Slider("R 命中率 : {0}", 60));
     _harras = _main.AddSubMenu("骚扰设置");
     _harras.AddGroupLabel("韦鲁斯 骚扰 设置");
     _harras.AddLabel("使用骚扰Q键设置");
     _harras.Add("harrasQ", new KeyBind("骚扰Q热键绑定", false, KeyBind.BindTypes.HoldActive, 'C'));
     _harras.AddSeparator(5);
     _harras.Add("HmanaP", new Slider("自动骚扰Q蓝量控制百分比 ({0}%) to use Q", 50, 1));
     _harras.AddSeparator(5);
     _harras.Add("QHitChance", new Slider("Q 命中率 : {0}", 60));
     _laneclear = _main.AddSubMenu("清线设置");
     _laneclear.AddGroupLabel("韦鲁斯 清线 设置");
     _laneclear.Add("LmanaP", new Slider(" 使用Q和E清线最小蓝量控制百分比({0}%)", 70, 1));
     _laneclear.AddSeparator(5);
     _laneclear.Add("q", new CheckBox("使用Q (On/Off)"));
     _laneclear.Add("qHit", new Slider("最少{0} 小兵使用Q", 3, 1, 6));
     _laneclear.AddSeparator(5);
     _laneclear.Add("e", new CheckBox("使用 E (On/Off)"));
     _laneclear.Add("eHit", new Slider("最少 {0} 小兵使用E", 3, 1, 6));
     _jungleclear = _main.AddSubMenu("打野设置");
     _jungleclear.AddGroupLabel("韦鲁斯 打野 设置");
     _jungleclear.Add("JmanaP", new Slider("使用Q和E打野最小蓝量控制百分比 ({0}%)", 30, 1));
     _jungleclear.AddSeparator(5);
     _jungleclear.AddLabel("打野使用Q和E (On/Off)");
     _jungleclear.Add("q", new CheckBox("使用 Q"));
     _jungleclear.Add("e", new CheckBox("使用 E"));
     _drawings = _main.AddSubMenu("线圈设置");
     _drawings.AddGroupLabel("韦鲁斯 线圈 设置");
     _drawings.AddLabel("画出Q-E-R线圈 (On/Off)");
     _drawings.Add("drawQ", new CheckBox("Q线圈", false));
     _drawings.Add("drawE", new CheckBox("E线圈", false));
     _drawings.Add("drawR", new CheckBox("R线圈", false));
     _drawings.AddLabel("画出损伤指示 (On/Off)");
     _drawings.Add("damageQ", new CheckBox("损伤指示"));
     _misc = _main.AddSubMenu("其他设置");
     _misc.AddLabel("自动使用破败王者之刃和水银弯刀");
     _misc.Add("botrk", new CheckBox("使用破败王者之刃 "));
     _misc.Add("autoCutlass", new CheckBox("使用水银弯刀"));
     _drawings.AddSeparator(5);
     _misc.AddLabel("使用R反突进 ");
     //_misc.Add("Qgap", new CheckBox("Use Q Anti Gap Closer (On/Off)", false));
     _misc.Add("Rgap", new CheckBox("使用R反突进", false));
 }
示例#23
0
 /// <summary>
 /// It will only cast the spell if it can
 /// </summary>
 /// <param name="spell">Active Spell</param>
 /// <param name="target">Target to cast the spell</param>
 public static bool TryCast(this Spell.Chargeable spell, Obj_AI_Base target)
 {
     return(TryCast(spell as Spell.Ranged, target));
 }
示例#24
0
 /// <summary>
 /// Check if can cast the spell on the target
 /// </summary>
 /// <param name="target">Target to check</param>
 /// <param name="spell">Any spell</param>
 /// <returns></returns>
 public static bool CanCast(this Obj_AI_Base target, Spell.Chargeable spell)
 {
     return(CanCast(target, spell as Spell.Ranged));
 }
示例#25
0
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (EloBuddy.Player.Instance.Hero != Champion.Varus)
            {
                return;
            }

            Q = new Spell.Chargeable(SpellSlot.Q, 925, 1600, 1250, 0, 1500, 70)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1750, 250)
            {
                AllowedCollisionCount = int.MaxValue
            };
            R = new Spell.Skillshot(SpellSlot.R, 1200, SkillShotType.Linear, 250, 1200, 120)
            {
                AllowedCollisionCount = int.MaxValue
            };

            var slot = Player.GetSpellSlotFromName("summonerheal");
            if (slot != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot, 600);
            }
            Ignite = ObjectManager.Player.GetSpellSlotFromName("summonerdot");

            HealthPotion = new Item(2003, 0);
            TotalBiscuit = new Item(2010, 0);
            CorruptingPotion = new Item(2033, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion = new Item(2032, 0);

            Chat.Print(
                "<font color=\"#580dd9\" >MeLoDag Presents </font><font color=\"#ffffff\" > VarusTheTroll </font><font color=\"#580dd9\" >Kappa Kippo</font>");


            Menu = MainMenu.AddMenu("Varus The Troll", "VarusTheTroll");
            Menu.AddLabel(" Varus The Troll " + Version);
            Menu.AddLabel(" Made by MeLoDag");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddGroupLabel("Q Ayarları");
            ComboMenu.Add("useQComboAlways", new CheckBox("Her zaman Q kullan"));
            ComboMenu.Add("useQCombo", new CheckBox("Q için yük say", false));
            ComboMenu.Add("StackCount", new Slider("Q yükü >= ", 3, 1, 3));
            ComboMenu.AddLabel("E Ayarları");
            ComboMenu.Add("useEComboAlways", new CheckBox("Use E"));
            ComboMenu.AddLabel("R Ayarları");
            ComboMenu.Add("useRCombo", new CheckBox("Kullan R"));
            ComboMenu.Add("Rcount", new Slider("R için gereken düşman >= ", 1, 1, 5));
            ComboMenu.Add("UseRcomboHP", new CheckBox("R yi düşmanın canına göre kullan"));
            ComboMenu.Add("RHP", new Slider("R kullanmak için gereken düşman canı >= ", 50));
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("Kombo özellikleri:");
            ComboMenu.Add("useWComboFocus", new CheckBox("W hedefe odakla"));
            ComboMenu.Add("ForceR",
                new KeyBind("Force R On Target Selector", false, KeyBind.BindTypes.HoldActive, "T".ToCharArray()[0]));
            ComboMenu.Add("combo.ignite", new CheckBox("Tutuştur kullan hedef ölecekse"));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.Add("useQHarass", new CheckBox("Kullan Q"));
            HarassMenu.Add("useEHarass", new CheckBox("Kullan E"));
            HarassMenu.Add("useEHarassMana", new Slider("E Mana > %", 70));
            HarassMenu.Add("useQHarassMana", new Slider("Q Mana > %", 70));

            JungleLaneMenu = Menu.AddSubMenu("Lane Clear Settings", "FarmSettings");
            JungleLaneMenu.AddLabel("Lane Temizleme");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Kullan Q"));
            JungleLaneMenu.Add("useEFarm", new CheckBox("Kullan E"));
            JungleLaneMenu.Add("LaneMana", new Slider("Mana > %", 70));
            JungleLaneMenu.AddSeparator();
            JungleLaneMenu.AddLabel("Orman Temizleme");
            JungleLaneMenu.Add("useQJungle", new CheckBox("Kullan Q"));
            JungleLaneMenu.Add("useEJungle", new CheckBox("Kullan E"));
            JungleLaneMenu.Add("JungleMana", new Slider("E Mana > %", 70));

            MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings");
            MiscMenu.AddGroupLabel("Gap Close/Interrupt Ayarları");
            MiscMenu.Add("gapcloser", new CheckBox("Otomatik Q Gapcloser"));
            MiscMenu.Add("interrupter", new CheckBox("Otomatik R Interrupter"));
            MiscMenu.AddLabel("Otomatik büyü kullanma hedefe(CC)");
            MiscMenu.Add("CCQ", new CheckBox("Otomatik hedefe Q (CC)"));
            MiscMenu.AddLabel("Killçalma ayarları");
            MiscMenu.Add("UseQks", new CheckBox("Q ile çal"));
            MiscMenu.Add("UseRKs", new CheckBox("R ile çal"));

            AutoPotHealMenu = Menu.AddSubMenu("Potion & Heal", "Potion & Heal");
            AutoPotHealMenu.AddGroupLabel("Otomatik Pot Kullanımı");
            AutoPotHealMenu.Add("potion", new CheckBox("Kullan İksir"));
            AutoPotHealMenu.Add("potionminHP", new Slider("İksir için Canım şundan az", 40));
            AutoPotHealMenu.Add("potionMinMP", new Slider("İksir için manam şundan az", 20));
            AutoPotHealMenu.AddGroupLabel("Otomatik iyileştirme kullan");
            AutoPotHealMenu.Add("UseHeal", new CheckBox("İyileştirme Kullan"));
            AutoPotHealMenu.Add("useHealHP", new Slider("İyileştirme için benim canım", 20));

            ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings");
            ItemMenu.Add("useBOTRK", new CheckBox("Kullan Mahvolmuş kılıcı"));
            ItemMenu.Add("useBotrkMyHP", new Slider("Canım < ", 60));
            ItemMenu.Add("useBotrkEnemyHP", new Slider("Düşmanın canı < ", 60));
            ItemMenu.Add("useYoumu", new CheckBox("Kullan Youmu"));
            ItemMenu.AddSeparator();
            ItemMenu.Add("useQSS", new CheckBox("Kullan QSS"));
            ItemMenu.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo"));
            ItemMenu.Add("Stun", new CheckBox("Sabitse", true));
            ItemMenu.Add("Blind", new CheckBox("Körse", true));
            ItemMenu.Add("Charm", new CheckBox("Çekiliyorsa(ahri)", true));
            ItemMenu.Add("Suppression", new CheckBox("Durmuşsa", true));
            ItemMenu.Add("Polymorph", new CheckBox("Polymorph", true));
            ItemMenu.Add("Fear", new CheckBox("Korkmuşsa", true));
            ItemMenu.Add("Taunt", new CheckBox("Alay ediliyorsa", true));
            ItemMenu.Add("Silence", new CheckBox("Susturulmuşsa", false));
            ItemMenu.Add("QssDelay", new Slider("QSS gecikmesi(ms)", 250, 0, 1000));


            SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger");
            SkinMenu.Add("checkSkin", new CheckBox("Kostüm hilesi kullan", false));
            SkinMenu.Add("skin.Id", new Slider("Skin", 1, 0, 5));

            DrawMenu = Menu.AddSubMenu("Drawing Settings");
            DrawMenu.Add("drawRange", new CheckBox("Göster Q Menzili"));
            DrawMenu.Add("drawE", new CheckBox("Göster E Menzili"));
            DrawMenu.Add("drawR", new CheckBox("Göster R Menzili"));
            DrawMenu.AddLabel("Hasar Tespitçisi");
            DrawMenu.Add("healthbar", new CheckBox("Can barı gösterimi"));
            DrawMenu.Add("percent", new CheckBox("Hasarı yüzde olarak göster"));


            Game.OnTick += Game_OnTick;
            Game.OnUpdate += OnGameUpdate;
            Obj_AI_Base.OnBuffGain += OnBuffGain;
            Gapcloser.OnGapcloser += Gapcloser_OnGapCloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Drawing.OnDraw += Drawing_OnDraw;
            DamageIndicator.Initialize(ComboDamage);
        }
示例#26
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Vladimir") return;
            Chat.Print(
                "<font color=\"#d80303\" >MeLoDag Presents </font><font color=\"#ffffff\" > Vladimir </font><font color=\"#d80303\" >Kappa Kippo</font>");
            VladimirTheTrollMeNu.LoadMenu();
            Game.OnTick += GameOnTick;
            Activator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill

            Q = new Spell.Targeted(SpellSlot.Q, 600);
            W = new Spell.Skillshot(SpellSlot.W, 600, SkillShotType.Circular);
            E = new Spell.Chargeable(SpellSlot.E, 600, 600, 1250, 0, 1500, 70);
            R = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Circular, 250, 1200, 150);

            #endregion

            Drawing.OnDraw += GameOnDraw;
            DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
        }
示例#27
0
 public Zac()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 550, SkillShotType.Linear, 500, int.MaxValue, 120);
     W = new Spell.Active(SpellSlot.W, 350);
     E = new Spell.Chargeable(SpellSlot.E, 0, 1750, 1500, 500, 1500, 250);
     R = new Spell.Active(SpellSlot.R, 300);
 }
示例#28
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Varus.Hero != Champion.Varus)
            {
                return;
            }
            _q = new Spell.Chargeable(SpellSlot.Q, 1000, 1600, 1300, 0, 1900, 70)
            {
                AllowedCollisionCount = int.MaxValue
            };
            _w = new Spell.Active(SpellSlot.W);
            _e = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1500, 235);
            _r = new Spell.Skillshot(SpellSlot.R, 1250, SkillShotType.Linear, 250, 1950, 120)
            {
                AllowedCollisionCount = -1
            };
            Orbwalker.OnPreAttack          += (a, b) => IsPreAa = true;
            Orbwalker.OnPostAttack         += (a, b) => { IsPreAa = false; IsAfterAa = true; };
            Game.OnTick                    += VarusActive;
            Gapcloser.OnGapcloser          += QAndRAntiGapCloser;
            Obj_AI_Base.OnProcessSpellCast += AutoItem;
            Obj_AI_Base.OnLevelUp          += OnLevelUpR;
            Drawing.OnEndScene             += HasarGostergesi;
            Drawing.OnDraw                 += SpellDraw;
            _lvl  = Varus.Spellbook;
            _main = MainMenu.AddMenu("FrOnDaL Varus", "index");
            _main.AddGroupLabel("Welcome FrOnDaL Varus");
            _main.AddSeparator(5);
            _main.AddLabel("For faults please visit the 'elobuddy' forum and let me know.");
            _main.AddSeparator(10);
            _main.AddLabel("My good deeds -> FrOnDaL");

            _combo = _main.AddSubMenu("Combo");
            _combo.AddGroupLabel("Combo mode settings for Varus");
            _combo.AddLabel("Use Combo Q (On/Off)" + "                                 " + "W stack use Q");
            _combo.Add("q", new CheckBox("Use Q"));
            _combo.Add("qstcW", new CheckBox("W stack use Q (On/Off)", false));
            _combo.Add("qhitW", new Slider("{0} W stack use Q", 2, 1, 3));
            _combo.AddSeparator(5);
            _combo.Add("qlogic", new ComboBox("Q Logic ", 0, "Normal", "FrOnDaL"));
            _combo.AddSeparator(5);
            _combo.AddLabel("Use Combo E (On/Off)" + "                                 " + "3 W stack use E (On/Off)");
            _combo.Add("e", new CheckBox("Use E"));
            _combo.Add("stackWuseE", new CheckBox("Use E only to 3 W stack"));
            _combo.AddSeparator(5);
            _combo.Add("EHitChance", new Slider("E hitchance percent : {0}", 60));
            _combo.AddSeparator(5);
            _combo.AddLabel("Use Manual R Key Setting");
            _combo.Add("RKey", new KeyBind("Manual R keybind", false, KeyBind.BindTypes.HoldActive, 'T'));
            _combo.AddSeparator(5);
            _combo.Add("rlogic", new ComboBox("R Logic ", 0, "Normal", "FrOnDaL"));
            _combo.AddSeparator(5);
            _combo.Add("RHit", new Slider("Manual R Hits ", 1, 1, 5));
            _combo.AddSeparator(5);
            _combo.Add("RHitChance", new Slider("R hitchance percent : {0}", 60));

            _harras = _main.AddSubMenu("Harras");
            _harras.AddGroupLabel("Harras mode settings for Varus");
            _harras.AddLabel("Use harras Q key settings");
            _harras.Add("harrasQ", new KeyBind("Enable Harass Q", false, KeyBind.BindTypes.HoldActive, 'C'));
            _harras.AddSeparator(5);
            _harras.Add("HmanaP", new Slider("Harras Mana Control Min mana percentage ({0}%) to use Q", 50, 1));
            _harras.AddSeparator(5);
            _harras.Add("QHitChance", new Slider("Q hitchance percent : {0}", 60));

            _laneclear = _main.AddSubMenu("LaneClear");
            _laneclear.AddGroupLabel("LaneClear mode settings for Varus");
            _laneclear.Add("LmanaP", new Slider("Lane Clear Mana Control Min mana percentage ({0}%) to use Q and E", 70, 1));
            _laneclear.AddSeparator(5);
            _laneclear.Add("q", new CheckBox("Use Q (On/Off)"));
            _laneclear.Add("qHit", new Slider("Hit {0} Units Minions Use Q", 3, 1, 6));
            _laneclear.AddSeparator(5);
            _laneclear.Add("e", new CheckBox("Use E (On/Off)"));
            _laneclear.Add("eHit", new Slider("Hit {0} Units Minions Use E", 3, 1, 6));

            _jungleclear = _main.AddSubMenu("JungClear");
            _jungleclear.AddGroupLabel("JungClear mode settings for Varus");
            _jungleclear.Add("JmanaP", new Slider("Jung Clear Mana Control Min mana percentage ({0}%) to use Q and E", 30, 1));
            _jungleclear.AddSeparator(5);
            _jungleclear.AddLabel("Jung Clear Use Q an E (On/Off)");
            _jungleclear.Add("q", new CheckBox("Use Q"));
            _jungleclear.Add("e", new CheckBox("Use E"));

            _drawings = _main.AddSubMenu("Drawings");
            _drawings.AddGroupLabel("Drawings mode settings for Varus");
            _drawings.AddLabel("Use Drawings Q-E-R (On/Off)");
            _drawings.Add("drawQ", new CheckBox("Draw Q", false));
            _drawings.Add("drawE", new CheckBox("Draw E", false));
            _drawings.Add("drawR", new CheckBox("Draw R", false));
            _drawings.AddLabel("Use Draw Damage (On/Off)");
            _drawings.Add("damageQ", new CheckBox("Draw damage indicator"));

            _misc = _main.AddSubMenu("Misc");
            _misc.AddLabel("Auto Blade of the Ruined King and Bilgewater Cutlass");
            _misc.Add("botrk", new CheckBox("Use BotRk (On/Off)"));
            _misc.Add("autoCutlass", new CheckBox("Use Bilgewater Cutlass (On/Off)"));
            _drawings.AddSeparator(5);
            _misc.AddLabel("Anti Gap Closer R (On/Off)");
            //_misc.Add("Qgap", new CheckBox("Use Q Anti Gap Closer (On/Off)", false));
            _misc.Add("Rgap", new CheckBox("Use R Anti Gap Closer (On/Off)", false));
        }
示例#29
0
文件: Varus.cs 项目: newchild/OKTRAIO
        public override void Init()
        {

            try
            {
                //spells
                _q = new Spell.Chargeable(SpellSlot.Q, 925, 1600, 1250, 0, 1500, 70)
                {
                    AllowedCollisionCount = int.MaxValue
                };
                _w = new Spell.Active(SpellSlot.W);
                _e = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1750, 250)
                {
                    AllowedCollisionCount = int.MaxValue
                };
                _r = new Spell.Skillshot(SpellSlot.R, 1200, SkillShotType.Linear, 250, 1200, 120)
                {
                    AllowedCollisionCount = int.MaxValue
                };

                //menu

                //combo test
                MainMenu.ComboKeys(true, false, true, true);
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Combo Preferences", "combo.grouplabel.addonmenu", true);
                MainMenu._combo.AddCheckBox("combo.q.stacks", "Use Q only for stacks", false, true);
                MainMenu._combo.AddSlider("combo.q.stacks.min", "Min. {0} stacks for Q", 3, 1, 3, true);
                MainMenu._combo.AddCheckBox("combo.e.stacks", "Use E only for stacks", true, true);
                MainMenu._combo.AddSlider("combo.e.stacks.min", "Min. {0} stacks for E", 3, 1, 3, true);
                MainMenu._combo.Add("combo.r.assist", new KeyBind("Semi-Auto Ult", false, KeyBind.BindTypes.HoldActive,'G'));
                MainMenu._combo.AddCheckBox("combo.r.aoe", "Use R for AOE", true, true);
                MainMenu._combo.AddSlider("combo.r.slider", "{0} enemies hit with R snare", 3, 1, 5, true);

                //harass
                MainMenu.HarassKeys(true, false, true, false);
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddCheckBox("harass.q.stacks", "Use Q only for stacks", false, true);
                MainMenu._harass.AddSlider("harass.q.stacks.min", "Min. {0} stacks for Q", 3, 1, 3, true);
                MainMenu._harass.AddCheckBox("harass.e.stacks", "Use E only for stacks", false, true);
                MainMenu._harass.AddSlider("harass.e.stacks.min", "Min. {0} stacks for E", 3, 1, 3, true);
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddGroupLabel("Mana Manager:", "harass.grouplabel.addonmenu", true);
                MainMenu.HarassManaManager(true, false, true, false, 20, 0, 20, 0);

                //laneclear
                MainMenu.LaneKeys(true, false, true, false);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddGroupLabel("Harass Preferences", "lane.grouplabel.addonmenu", true);
                MainMenu._lane.AddCheckBox("lane.q.harass", "Use Q", true, true);
                MainMenu._lane.AddCheckBox("lane.e.harass", "Use E", true, true);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddCheckBox("lane.q.stacks", "Use Q only for stacks", false, true);
                MainMenu._lane.AddSlider("lane.q.stacks.min", "Min. {0} stacks for Q", 3, 1, 3, true);
                MainMenu._lane.AddCheckBox("lane.e.stacks", "Use E only for stacks", false, true);
                MainMenu._lane.AddSlider("lane.e.stacks.min", "Min. {0} stacks for E", 3, 1, 3, true);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddGroupLabel("Farm Preferences", "lane.grouplabel1.addonmenu", true);
                MainMenu._lane.AddSlider("lane.q.min", "Min. {0} minions for Q", 3, 1, 7, true);
                MainMenu._lane.AddSlider("lane.e.min", "Min. {0} minions for E", 3, 1, 7, true);
                MainMenu._lane.AddGroupLabel("Mana Manager:", "lane.grouplabel2.addonmenu", true);
                MainMenu.LaneManaManager(true, false, true, false, 20, 0, 20, 0);

                //jungleclear
                MainMenu.JungleKeys(true, false, true, false);
                MainMenu._jungle.AddSeparator();
                MainMenu._jungle.AddSlider("jungle.q.min", "Min. {0} minions for Q", 3, 1, 4, true);
                MainMenu._jungle.AddSlider("jungle.e.min", "Min. {0} minions for E", 3, 1, 4, true);
                MainMenu._jungle.AddGroupLabel("Mana Manager:", "jungle.grouplabel.addonmenu", true);
                MainMenu.JungleManaManager(true, false, true, false, 20, 0, 20, 0);

                //lasthit
                MainMenu.LastHitKeys(false, false, false, false);
                MainMenu._lasthit.AddCheckBox("lasthit.q.siege", "Use Q on Siege Minions");
                MainMenu._lasthit.AddSeparator();
                MainMenu._lasthit.AddGroupLabel("Mana Manager:", "lasthit.grouplabel.addonmenu", true);
                MainMenu.LasthitManaManager(true, false, false, false, 15, 0, 0, 0);

                //flee
                MainMenu.FleeKeys(false, false, true, false);
                MainMenu._flee.AddSeparator();
                MainMenu._flee.AddGroupLabel("Mana Manager:", "flee.grouplabel.addonmenu", true);
                MainMenu.FleeManaManager(false, false, true, false, 0, 0, 20, 0);

                //ks
                MainMenu.KsKeys(true, false, true, false);
                MainMenu._ks.AddSeparator();
                MainMenu._ks.AddGroupLabel("Mana Manager:", "killsteal.grouplabel.addonmenu", true);
                MainMenu.KsManaManager(true, false, true, false, 20, 0, 10, 0);

                //misc
                MainMenu.MiscMenu();
                MainMenu._misc.AddCheckBox("misc.r.interrupt", "Use R to Interrupt");
                MainMenu._misc.AddCheckBox("misc.e.gapcloser", "Use E for Anti-Gapcloser");
                MainMenu._misc.AddCheckBox("misc.r.auto", "Anti Rengar + Khazix");
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddGroupLabel("Auto Q/E Settings", "misc.grouplabel.addonmenu", true);
                MainMenu._misc.AddCheckBox("misc.q.charm", "Use Q on Charmed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.stun", "Use Q on Stunned Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.knockup", "Use Q on Knocked Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.snare", "Use Q on Snared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.suppression", "Use Q on Suppressed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.taunt", "Use Q on Taunted Enemy", true, true);
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddCheckBox("misc.e.charm", "Use E on Charmed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.stun", "Use E on Stunned Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.knockup", "Use E on Knocked Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.snare", "Use E on Snared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.suppression", "Use E on Suppressed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.e.taunt", "Use E on Taunted Enemy", true, true);
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddGroupLabel("Prediction", "misc.grouplabel1.addonmenu", true);
                MainMenu._misc.AddSlider("misc.q.prediction", "Hitchance Percentage for Q", 80, 0, 100, true);
                MainMenu._misc.AddSlider("misc.e.prediction", "Hitchance Percentage for E", 80, 0, 100, true);
                MainMenu._misc.AddSlider("misc.r.prediction", "Hitchance Percentage for R", 80, 0, 100, true);

                //draw
                MainMenu.DrawKeys(true, false, true, true);
                MainMenu._draw.AddSeparator();
                MainMenu._draw.AddCheckBox("draw.hp.bar", "Draw Combo Damage", true, true);

            }

            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>");
            }

            try
            {
                Value.Init();
                if (MainMenu._menu["useonupdate"].Cast<CheckBox>().CurrentValue)
                {
                    Game.OnUpdate += GameOnUpdate;
                }
                else
                {
                    Game.OnTick += GameOnUpdate;
                }
                Drawing.OnDraw += GameOnDraw;
                Drawing.OnEndScene += Drawing_OnEndScene;
                Obj_AI_Base.OnBuffGain += Player_OnBuffGain;
                Obj_AI_Base.OnBuffLose += Obj_AI_Base_OnBuffLose;
                GameObject.OnCreate += GameObject_OnCreate;
                Gapcloser.OnGapcloser += Gapcloser_OnGapcloser;
                Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            }

            catch (Exception e)
            {

                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code INIT)</font>");
            }

        }
示例#30
0
        internal static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            if (target == null || target.IsAlly)
            {
                return;
            }

            if (AutoFarm.Lh[AutoFarm.Player.ChampionName + "Enable"].Cast <KeyBind>().CurrentValue ||
                AutoFarm.Lh[AutoFarm.Player.ChampionName + "Enableactive"].Cast <KeyBind>().CurrentValue)
            {
                if (AutoFarm.Lh.Get <ComboBox>(AutoFarm.Player.ChampionName + "Qmode").CurrentValue == 0 &&
                    AutoFarm.Lh[AutoFarm.Player.ChampionName + "Q"].Cast <CheckBox>().CurrentValue &&
                    Player.Instance.ManaPercent
                    >= AutoFarm.ManaMenu[AutoFarm.Player.ChampionName + "Q"].Cast <Slider>().CurrentValue &&
                    Spells.Q.IsReady())
                {
                    if (Spells.QisToggle || Spells.QisDash || Spells.QisCc || Spells.Q == null)
                    {
                        return;
                    }

                    if (ObjectManager.Player.GetSpellDamage(target, SpellSlot.Q)
                        >= Prediction.Health.GetPrediction(target, (int)Spells.Q.CastDelay * 1000) &&
                        Spells.Q.IsInRange(target))
                    {
                        if (Spells.Q.GetType() == typeof(Spell.Skillshot))
                        {
                            var qx = Spells.Q as Spell.Skillshot;
                            qx?.GetPrediction(target);
                            qx?.Cast(target);
                            return;
                        }

                        if (Spells.Q.GetType() == typeof(Spell.Active))
                        {
                            Spells.Q.Cast(target);
                            return;
                        }

                        if (Spells.Q.GetType() == typeof(Spell.Chargeable))
                        {
                            var qx = Spells.Q as Spell.Chargeable;
                            if (qx != null && !qx.IsCharging)
                            {
                                qx.StartCharging();
                            }

                            if (qx.Range == qx.MaximumRange)
                            {
                                qx.Cast(target.Position);
                            }

                            return;
                        }

                        if (Spells.Q.GetType() == typeof(Spell.Ranged))
                        {
                            Spells.Q.Cast(target.Position);
                            return;
                        }
                    }
                }

                if (AutoFarm.Lh.Get <ComboBox>(AutoFarm.Player.ChampionName + "Wmode").CurrentValue == 0 &&
                    AutoFarm.Lh[AutoFarm.Player.ChampionName + "W"].Cast <CheckBox>().CurrentValue &&
                    Player.Instance.ManaPercent
                    >= AutoFarm.ManaMenu[AutoFarm.Player.ChampionName + "W"].Cast <Slider>().CurrentValue &&
                    Spells.W.IsReady())
                {
                    if (Spells.WisToggle || Spells.WisDash || Spells.WisCc || Spells.W == null)
                    {
                        return;
                    }
                    if (ObjectManager.Player.GetSpellDamage(target, SpellSlot.W)
                        > Prediction.Health.GetPrediction(target, (int)(Spells.W.CastDelay)) &&
                        Spells.W.IsInRange(target))
                    {
                        if (Spells.W.GetType() == typeof(Spell.Skillshot))
                        {
                            var wx = Spells.W as Spell.Skillshot;
                            if (wx != null)
                            {
                                wx.GetPrediction(target);
                                wx.Cast(target);
                            }
                            return;
                        }

                        if (Spells.W.GetType() == typeof(Spell.Targeted))
                        {
                            Spells.W.Cast(target);
                            return;
                        }

                        if (Spells.W.GetType() == typeof(Spell.Active))
                        {
                            Spells.W.Cast();
                            return;
                        }

                        if (Spells.W.GetType() == typeof(Spell.Chargeable))
                        {
                            var wx = Spells.W as Spell.Chargeable;
                            if (wx != null && !wx.IsCharging)
                            {
                                wx.StartCharging();
                            }

                            if (wx != null && wx.Range == wx.MaximumRange)
                            {
                                wx.Cast(target.Position);
                            }
                            return;
                        }

                        if (Spells.W.GetType() == typeof(Spell.Ranged))
                        {
                            Spells.W.Cast(target.Position);
                            return;
                        }
                    }
                }

                if (AutoFarm.Lh.Get <ComboBox>(AutoFarm.Player.ChampionName + "Emode").CurrentValue == 0 &&
                    AutoFarm.Lh[AutoFarm.Player.ChampionName + "E"].Cast <CheckBox>().CurrentValue &&
                    Player.Instance.ManaPercent
                    >= AutoFarm.ManaMenu[AutoFarm.Player.ChampionName + "E"].Cast <Slider>().CurrentValue &&
                    Spells.E.IsReady())
                {
                    if (Spells.EisToggle || Spells.EisDash || Spells.EisCc || Spells.E == null)
                    {
                        return;
                    }
                    if (ObjectManager.Player.GetSpellDamage(target, SpellSlot.E)
                        > Prediction.Health.GetPrediction(target, (int)(Spells.E.CastDelay * 1000)) &&
                        Spells.E.IsInRange(target))
                    {
                        if (Spells.E.GetType() == typeof(Spell.Skillshot))
                        {
                            var ex = Spells.E as Spell.Skillshot;
                            if (ex != null)
                            {
                                ex.GetPrediction(target);
                                ex.Cast(target);
                            }
                            return;
                        }

                        if (Spells.E.GetType() == typeof(Spell.Targeted))
                        {
                            Spells.E.Cast(target);
                            return;
                        }

                        if (Spells.E.GetType() == typeof(Spell.Active))
                        {
                            Spells.E.Cast();
                            return;
                        }

                        if (Spells.E.GetType() == typeof(Spell.Chargeable))
                        {
                            Spell.Chargeable ex = Spells.E as Spell.Chargeable;
                            if (ex != null && !ex.IsCharging)
                            {
                                ex.StartCharging();
                            }

                            if (ex != null && ex.Range == ex.MaximumRange)
                            {
                                ex.Cast(target.Position);
                            }
                            return;
                        }

                        if (Spells.E.GetType() == typeof(Spell.Ranged))
                        {
                            Spells.E.Cast(target.Position);
                            return;
                        }
                    }
                }

                if (AutoFarm.Lh.Get <ComboBox>(AutoFarm.Player.ChampionName + "Rmode").CurrentValue == 0 &&
                    AutoFarm.Lh[AutoFarm.Player.ChampionName + "R"].Cast <CheckBox>().CurrentValue &&
                    Player.Instance.ManaPercent
                    >= AutoFarm.ManaMenu[AutoFarm.Player.ChampionName + "R"].Cast <Slider>().CurrentValue)
                {
                    if (Spells.RisToggle || Spells.RisDash || Spells.RisCc || Spells.R == null)
                    {
                        return;
                    }
                    if (ObjectManager.Player.GetSpellDamage(target, SpellSlot.R)
                        > Prediction.Health.GetPrediction(target, (int)(Spells.R.CastDelay * 1000)) &&
                        Spells.R.IsInRange(target))
                    {
                        if (Spells.R.GetType() == typeof(Spell.Skillshot))
                        {
                            Spell.Skillshot rx = Spells.R as Spell.Skillshot;
                            if (rx != null)
                            {
                                rx.GetPrediction(target);
                                rx.Cast(target);
                            }
                            return;
                        }

                        if (Spells.R.GetType() == typeof(Spell.Targeted))
                        {
                            Spells.R.Cast(target);
                            return;
                        }

                        if (Spells.R.GetType() == typeof(Spell.Active))
                        {
                            Spells.R.Cast();
                            return;
                        }

                        if (Spells.R.GetType() == typeof(Spell.Chargeable))
                        {
                            Spell.Chargeable rx = Spells.R as Spell.Chargeable;
                            if (rx != null && !rx.IsCharging)
                            {
                                rx.StartCharging();
                            }

                            if (rx != null && rx.Range == rx.MaximumRange)
                            {
                                rx.Cast(target.Position);
                            }
                            return;
                        }

                        if (Spells.R.GetType() == typeof(Spell.Ranged))
                        {
                            Spells.R.Cast(target.Position);
                            return;
                        }
                    }
                }
            }
        }
示例#31
0
 public Poppy()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 430, SkillShotType.Linear, 250, null, 100);
     W = new Spell.Active(SpellSlot.W, 400);
     E = new Spell.Targeted(SpellSlot.E, 525);
     R = new Spell.Chargeable(SpellSlot.R, 500, 1200, 4000, 250, int.MaxValue, 90);
 }
示例#32
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Varus")
                return;
            Bootstrap.Init(null);
            Drawing.OnDraw += Drawing_OnDraw;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Game.OnTick += Game_OnTick;

            Q = new Spell.Chargeable(SpellSlot.Q, 925, 1625, 4, (int)0.25f, 925, (int)250f);
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, (int)0.25f, 1000, (int)300f);
            R = new Spell.Skillshot(SpellSlot.R, 1050, SkillShotType.Linear, 150, 2000, 120);

            VarusMenu = MainMenu.AddMenu("Apex Varus", "VarusMenu");
            VarusMenu.AddGroupLabel("Apex Varus");
            VarusMenu.AddSeparator();
            VarusMenu.AddLabel("Created by TheApex");

            ComboMenu = VarusMenu.AddSubMenu("Combo:", "ComboMenu");
            ComboMenu.AddGroupLabel("Combo:");
            ComboMenu.Add("UseQ", new CheckBox("Use Q in combo"));
            ComboMenu.Add("UseE", new CheckBox("Use E in combo"));
            ComboMenu.Add("UseR", new CheckBox("Use R in combo", false));
            ComboMenu.Add("IntR", new CheckBox("Auto Ult on interruptable spell", false));
            ComboMenu.Add("CastR", new KeyBind("Cast R on key press", false, KeyBind.BindTypes.HoldActive, 'T'));

            HarassMenu = VarusMenu.AddSubMenu("Harass:", "HarassMenu");
            HarassMenu.AddGroupLabel("Harass:");
            HarassMenu.Add("HarassQ", new CheckBox("Use Q to harass"));
            HarassMenu.Add("HarassE", new CheckBox("Use E to harass"));
            HarassMenu.Add("HarassMana", new Slider("Minimum mana percent to harass", 40, 0, 100));
            HarassMenu.Add("HarassToggle", new KeyBind("Toggle harass", false, KeyBind.BindTypes.PressToggle, 'H'));

            CSMenu = VarusMenu.AddSubMenu("CS:", "CSMenu");
            CSMenu.AddGroupLabel("CS:");
            CSMenu.Add("ClearQ", new CheckBox("Use Q to waveclear"));
            CSMenu.Add("ClearE", new CheckBox("Use E to waveclear"));
            CSMenu.Add("CSMana", new Slider("Minimum mana percent to waveclear", 30, 0, 100));

            DrawingsMenu = VarusMenu.AddSubMenu("Drawings:", "DrawingsMenu");
            DrawingsMenu.AddGroupLabel("Drawings:");
            DrawingsMenu.Add("DrawQ", new CheckBox("Draw Q range", false));
            DrawingsMenu.Add("DrawR", new CheckBox("Draw R range"));
        }
示例#33
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Varus)
            {
                return;
            }

            _q = new Spell.Chargeable(SpellSlot.Q, 925, 1600, 1250, 0, 1500, 70)
            {
                AllowedCollisionCount = int.MaxValue
            };
            _w = new Spell.Active(SpellSlot.W);
            _e = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1750, 250)
            {
                AllowedCollisionCount = int.MaxValue
            };
            _r = new Spell.Skillshot(SpellSlot.R, 1200, SkillShotType.Linear, 250, 1200, 120)
            {
                AllowedCollisionCount = int.MaxValue
            };

            var slot = _Player.GetSpellSlotFromName("summonerheal");

            if (slot != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot, 600);
            }
            Ignite = ObjectManager.Player.GetSpellSlotFromName("summonerdot");

            HealthPotion     = new Item(2003, 0);
            TotalBiscuit     = new Item(2010, 0);
            CorruptingPotion = new Item(2033, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion    = new Item(2032, 0);

            Chat.Print(
                "<font color=\"#580dd9\" >MeLoDag Presents </font><font color=\"#ffffff\" > VarusTheTroll </font><font color=\"#580dd9\" >Kappa Kippo</font>");


            Menu = MainMenu.AddMenu("VarusTheTroll", "VarusTheTroll");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.Add("useQComboAlways", new CheckBox("Use Q[Always]"));
            ComboMenu.Add("useQCombo", new CheckBox("Use Q[StackCount]"));
            ComboMenu.Add("StackCount", new Slider("Q when stacks >= ", 3, 1, 3));
            ComboMenu.Add("useECombo", new CheckBox("Use E"));
            ComboMenu.Add("useWComboFocus", new CheckBox("Focus Target W"));
            ComboMenu.Add("useRCombo", new CheckBox("Use R"));
            ComboMenu.Add("Rcount", new Slider("R when enemies >= ", 1, 1, 5));
            ComboMenu.AddSeparator();
            ComboMenu.Add("useRComboFinisher", new CheckBox("Use R [FinisherMode]"));
            ComboMenu.Add("ForceR",
                          new KeyBind("Force R On Target Selector", false, KeyBind.BindTypes.HoldActive, "T".ToCharArray()[0]));
            ComboMenu.Add("combo.ignite", new CheckBox("Use Ignite If Combo Killable"));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useEHarass", new CheckBox("Use E"));
            HarassMenu.Add("useEHarassMana", new Slider("E Mana > %", 70, 0, 100));
            HarassMenu.Add("useQHarassMana", new Slider("Q Mana > %", 70, 0, 100));

            JungleLaneMenu = Menu.AddSubMenu("Lane Clear Settings", "FarmSettings");
            JungleLaneMenu.AddLabel("Lane Clear");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useEFarm", new CheckBox("Use E"));
            JungleLaneMenu.AddSeparator();
            //     JungleLaneMenu.AddLabel("Jungle Clear");
            //     JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q"));
            //    JungleLaneMenu.Add("useEJungle", new CheckBox("Use E"));
            //    JungleLaneMenu.Add("useWMana", new Slider("E Mana > %", 70, 0, 100));

            MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings");
            MiscMenu.Add("gapcloser", new CheckBox("Auto E for Gapcloser"));
            MiscMenu.Add("interrupter", new CheckBox("Auto R for Interrupter"));
            MiscMenu.Add("CCQ", new CheckBox("Auto Q on Enemy CC"));
            //     MiscMenu.Add("UseQks", new CheckBox("Use Q ks"));

            AutoPotHealMenu = Menu.AddSubMenu("Potion & Heal", "Potion & Heal");
            AutoPotHealMenu.AddGroupLabel("Auto pot usage");
            AutoPotHealMenu.Add("potion", new CheckBox("Use potions"));
            AutoPotHealMenu.Add("potionminHP", new Slider("Minimum Health % to use potion", 40));
            AutoPotHealMenu.Add("potionMinMP", new Slider("Minimum Mana % to use potion", 20));
            AutoPotHealMenu.AddGroupLabel("AUto Heal Usage");
            AutoPotHealMenu.Add("UseHeal", new CheckBox("Use Heal"));
            AutoPotHealMenu.Add("useHealHP", new Slider("Minimum Health % to use Heal", 20));

            ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings");
            ItemMenu.Add("useBOTRK", new CheckBox("Use BOTRK"));
            ItemMenu.Add("useBotrkMyHP", new Slider("My Health < ", 60, 1, 100));
            ItemMenu.Add("useBotrkEnemyHP", new Slider("Enemy Health < ", 60, 1, 100));
            ItemMenu.Add("useYoumu", new CheckBox("Use Youmu"));
            ItemMenu.AddSeparator();
            ItemMenu.Add("useQSS", new CheckBox("Use QSS"));
            ItemMenu.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo"));
            ItemMenu.Add("Stun", new CheckBox("Stun", true));
            ItemMenu.Add("Blind", new CheckBox("Blind", true));
            ItemMenu.Add("Charm", new CheckBox("Charm", true));
            ItemMenu.Add("Suppression", new CheckBox("Suppression", true));
            ItemMenu.Add("Polymorph", new CheckBox("Polymorph", true));
            ItemMenu.Add("Fear", new CheckBox("Fear", true));
            ItemMenu.Add("Taunt", new CheckBox("Taunt", true));
            ItemMenu.Add("Silence", new CheckBox("Silence", false));
            ItemMenu.Add("QssDelay", new Slider("Use QSS Delay(ms)", 250, 0, 1000));
            ItemMenu.AddGroupLabel("Qqs Utly");
            ItemMenu.Add("ZedUlt", new CheckBox("Zed R", true));
            ItemMenu.Add("VladUlt", new CheckBox("Vladimir R", true));
            ItemMenu.Add("FizzUlt", new CheckBox("Fizz R", true));
            ItemMenu.Add("MordUlt", new CheckBox("Mordekaiser R", true));
            ItemMenu.Add("PoppyUlt", new CheckBox("Poppy R", true));
            ItemMenu.Add("QssUltDelay", new Slider("Use QSS Delay(ms) for Ult", 250, 0, 1000));

            SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger");
            SkinMenu.Add("checkSkin", new CheckBox("Use Skin Changer"));
            SkinMenu.Add("skin.Id", new Slider("Skin", 1, 0, 5));

            PrediMenu = Menu.AddSubMenu("Prediction Settings", "_PrediMenuettings");
            var style = PrediMenu.Add("style", new Slider("Min Prediction", 1, 0, 2));

            style.OnValueChange +=
                delegate
            {
                style.DisplayName = "Min Prediction: " + new[] { "Low", "Medium", "High" }[style.CurrentValue];
            };
            style.DisplayName = "Min Prediction: " + new[] { "Low", "Medium", "High" }[style.CurrentValue];

            DrawMenu = Menu.AddSubMenu("Drawing Settings");
            DrawMenu.Add("drawRange", new CheckBox("Draw Q Range"));
            DrawMenu.Add("drawE", new CheckBox("Draw E Range"));
            DrawMenu.Add("drawR", new CheckBox("Draw R Range"));

            Game.OnTick                      += Game_OnTick;
            Game.OnUpdate                    += OnGameUpdate;
            Obj_AI_Base.OnBuffGain           += OnBuffGain;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapCloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Drawing.OnDraw                   += Drawing_OnDraw;
        }
 public static float Range(this Spell.Chargeable self)
 {
     return(Math.Min(self.MinimumRange + (self.TimeSinceCharge() * 380), self.MaximumRange));
 }
示例#35
0
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Poppy)
            {
                return;
            }


            Q = new Spell.Skillshot(SpellSlot.Q, 430, SkillShotType.Linear, 250, null, 100);
            Q.AllowedCollisionCount = int.MaxValue;
            W  = new Spell.Active(SpellSlot.W, 400);
            E  = new Spell.Targeted(SpellSlot.E, 425);
            E2 = new Spell.Skillshot(SpellSlot.E, 525, SkillShotType.Linear, 250, 1250);
            R  = new Spell.Chargeable(SpellSlot.R, 500, 1200, 4000, 250, int.MaxValue, 90);

            var slot = _Player.GetSpellSlotFromName("summonerheal");

            if (slot != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot, 600);
            }
            HealthPotion     = new Item(2003, 0);
            TotalBiscuit     = new Item(2010, 0);
            CorruptingPotion = new Item(2033, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion    = new Item(2032, 0);

            Chat.Print("Poppy The Troll Loaded! Version 1", Color.DeepSkyBlue);
            Chat.Print("Have Fun And Dont Feed Kappa!", Color.DeepSkyBlue);

            Menu = MainMenu.AddMenu("Poppy The Troll", "PoppyTheTroll");
            Menu.AddGroupLabel("Poppy The Troll Version 1");
            Menu.AddLabel("Last Update 31/5/2016");
            Menu.AddLabel("Made By MeLoDaG");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("useQCombo", new CheckBox("Use Q"));
            ComboMenu.Add("useWCombo", new CheckBox("Use W"));
            ComboMenu.Add("useECombo", new CheckBox("Use E"));
            ComboMenu.Add("useRcombo", new CheckBox("Use R"));
            ComboMenu.Add("combo.REnemies", new Slider("Min Enemyes for R", 1, 1, 5));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useWHarassMana", new Slider("Min. Mana for Harass %", 70, 0, 100));

            JungleLaneMenu = Menu.AddSubMenu("Lane Jungle Clear Settings", "FarmSettings");
            JungleLaneMenu.AddGroupLabel("Lane Clear");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useWManalane", new Slider("Min. Mana for Laneclear Spells %", 70, 0, 100));
            JungleLaneMenu.AddLabel("Jungle Clear");
            JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useWMana", new Slider("Min. Mana for Jungleclear Spells %", 70, 0, 100));

            ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings");
            ItemMenu.AddGroupLabel("Botrk Settings");
            ItemMenu.Add("useBOTRK", new CheckBox("Use BOTRK"));
            ItemMenu.Add("useBotrkMyHP", new Slider("My Health < ", 60, 1, 100));
            ItemMenu.Add("useBotrkEnemyHP", new Slider("Enemy Health < ", 60, 1, 100));
            ItemMenu.Add("useYoumu", new CheckBox("Use Youmu"));
            ItemMenu.AddGroupLabel("Auto QSS if :");
            ItemMenu.Add("Blind",
                         new CheckBox("Blind", false));
            ItemMenu.Add("Charm",
                         new CheckBox("Charm"));
            ItemMenu.Add("Fear",
                         new CheckBox("Fear"));
            ItemMenu.Add("Polymorph",
                         new CheckBox("Polymorph"));
            ItemMenu.Add("Stun",
                         new CheckBox("Stun"));
            ItemMenu.Add("Snare",
                         new CheckBox("Snare"));
            ItemMenu.Add("Silence",
                         new CheckBox("Silence", false));
            ItemMenu.Add("Taunt",
                         new CheckBox("Taunt"));
            ItemMenu.Add("Suppression",
                         new CheckBox("Suppression"));

            AutoPotHealMenu = Menu.AddSubMenu("Potion & HeaL", "Potion & HeaL");
            AutoPotHealMenu.AddGroupLabel("Auto pot usage");
            AutoPotHealMenu.Add("potion", new CheckBox("Use potions"));
            AutoPotHealMenu.Add("potionminHP", new Slider("Minimum Health % to use potion", 40));
            AutoPotHealMenu.Add("potionMinMP", new Slider("Minimum Mana % to use potion", 20));
            AutoPotHealMenu.AddGroupLabel("AUto Heal Usage");
            AutoPotHealMenu.Add("UseHeal", new CheckBox("Use Heal"));
            AutoPotHealMenu.Add("useHealHP", new Slider("Minimum Health % to use Heal", 20));

            MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings");
            MiscMenu.AddGroupLabel("Gapcloser/Interrupt  settings");
            MiscMenu.Add("gapcloser", new CheckBox("Auto W for Gapcloser"));
            MiscMenu.Add("gapcloserE", new CheckBox("Auto E for Gapcloser"));
            MiscMenu.Add("InterruptE", new CheckBox("Auto E for Interrupt"));
            MiscMenu.Add("interruptR", new CheckBox("Auto R for Interrupt"));
            MiscMenu.AddGroupLabel("Ks Settings");
            MiscMenu.Add("UseQks", new CheckBox("Use Q ks"));

            SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger");
            SkinMenu.Add("checkSkin", new CheckBox("Use Skin Changer", false));
            SkinMenu.Add("skin.Id", new Slider("Skin", 1, 0, 8));

            FleeMenu = Menu.AddSubMenu("Flee Settings", "FleeSettings");
            FleeMenu.AddGroupLabel("Flee Settings");
            FleeMenu.Add("FleeW", new CheckBox("Use W"));

            DrawMenu = Menu.AddSubMenu("Drawing Settings");
            DrawMenu.AddGroupLabel("Draw Settings");
            DrawMenu.Add("drawQ", new CheckBox("Draw Q Range"));
            DrawMenu.Add("drawW", new CheckBox("Draw W Range"));
            DrawMenu.Add("drawE", new CheckBox("Draw E Range"));
            DrawMenu.Add("drawR", new CheckBox("Draw R Range"));
            DrawMenu.AddLabel("Damage indicators");
            DrawMenu.Add("healthbar", new CheckBox("Healthbar overlay"));
            DrawMenu.Add("percent", new CheckBox("Damage percent info"));

            DamageIndicator.Initialize(ComboDamage);
            Game.OnTick   += Game_OnTick;
            Game.OnUpdate += OnGameUpdate;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Obj_AI_Base.OnBuffGain           += OnBuffGain;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapCloser;
            Drawing.OnDraw += Drawing_OnDraw;
        }
示例#36
0
        internal static void Last()
        {
            var minions = EntityManager.MinionsAndMonsters.EnemyMinions.Where(x => x != null);

            foreach (var target in minions)
            {
                if (AutoFarm.Lh.Get <ComboBox>(AutoFarm.Player.ChampionName + "Qmode").CurrentValue == 1 &&
                    AutoFarm.Lh[AutoFarm.Player.ChampionName + "Q"].Cast <CheckBox>().CurrentValue &&
                    Player.Instance.ManaPercent
                    >= AutoFarm.ManaMenu[AutoFarm.Player.ChampionName + "Q"].Cast <Slider>().CurrentValue &&
                    Spells.Q.IsReady())
                {
                    if (Spells.QisToggle || Spells.QisDash || Spells.QisCc || Spells.Q == null)
                    {
                        return;
                    }

                    if (ObjectManager.Player.GetSpellDamage(target, SpellSlot.Q)
                        >= Prediction.Health.GetPrediction(target, (int)Spells.Q.CastDelay * 1000) &&
                        Spells.Q.IsInRange(target))
                    {
                        if (Spells.Q.GetType() == typeof(Spell.Skillshot))
                        {
                            var qx = Spells.Q as Spell.Skillshot;
                            qx?.GetPrediction(target);
                            qx?.Cast(target);
                            return;
                        }

                        if (Spells.Q.GetType() == typeof(Spell.Active))
                        {
                            Spells.Q.Cast(target);
                            return;
                        }

                        if (Spells.Q.GetType() == typeof(Spell.Chargeable))
                        {
                            var qx = Spells.Q as Spell.Chargeable;
                            if (qx != null && !qx.IsCharging)
                            {
                                qx.StartCharging();
                            }

                            if (qx.Range == qx.MaximumRange)
                            {
                                qx.Cast(target.Position);
                            }

                            return;
                        }

                        if (Spells.Q.GetType() == typeof(Spell.Ranged))
                        {
                            Spells.Q.Cast(target.Position);
                            return;
                        }
                    }
                }

                if (AutoFarm.Lh.Get <ComboBox>(AutoFarm.Player.ChampionName + "Wmode").CurrentValue == 1 &&
                    AutoFarm.Lh[AutoFarm.Player.ChampionName + "W"].Cast <CheckBox>().CurrentValue &&
                    Player.Instance.ManaPercent
                    >= AutoFarm.ManaMenu[AutoFarm.Player.ChampionName + "W"].Cast <Slider>().CurrentValue &&
                    Spells.W.IsReady())
                {
                    if (Spells.WisToggle || Spells.WisDash || Spells.WisCc || Spells.W == null)
                    {
                        return;
                    }
                    if (ObjectManager.Player.GetSpellDamage(target, SpellSlot.W)
                        > Prediction.Health.GetPrediction(target, (int)(Spells.W.CastDelay)) &&
                        Spells.W.IsInRange(target))
                    {
                        if (Spells.W.GetType() == typeof(Spell.Skillshot))
                        {
                            var wx = Spells.W as Spell.Skillshot;
                            if (wx != null)
                            {
                                wx.GetPrediction(target);
                                wx.Cast(target);
                            }
                            return;
                        }

                        if (Spells.W.GetType() == typeof(Spell.Targeted))
                        {
                            Spells.W.Cast(target);
                            return;
                        }

                        if (Spells.W.GetType() == typeof(Spell.Active))
                        {
                            Spells.W.Cast();
                            return;
                        }

                        if (Spells.W.GetType() == typeof(Spell.Chargeable))
                        {
                            var wx = Spells.W as Spell.Chargeable;
                            if (wx != null && !wx.IsCharging)
                            {
                                wx.StartCharging();
                            }

                            if (wx != null && wx.Range == wx.MaximumRange)
                            {
                                wx.Cast(target.Position);
                            }
                            return;
                        }

                        if (Spells.W.GetType() == typeof(Spell.Ranged))
                        {
                            Spells.W.Cast(target.Position);
                            return;
                        }
                    }
                }

                if (AutoFarm.Lh.Get <ComboBox>(AutoFarm.Player.ChampionName + "Emode").CurrentValue == 1 &&
                    AutoFarm.Lh[AutoFarm.Player.ChampionName + "E"].Cast <CheckBox>().CurrentValue &&
                    Player.Instance.ManaPercent
                    >= AutoFarm.ManaMenu[AutoFarm.Player.ChampionName + "E"].Cast <Slider>().CurrentValue &&
                    Spells.E.IsReady())
                {
                    if (Spells.EisToggle || Spells.EisDash || Spells.EisCc || Spells.E == null)
                    {
                        return;
                    }
                    if (ObjectManager.Player.GetSpellDamage(target, SpellSlot.E)
                        > Prediction.Health.GetPrediction(target, (int)(Spells.E.CastDelay * 1000)) &&
                        Spells.E.IsInRange(target))
                    {
                        if (Spells.E.GetType() == typeof(Spell.Skillshot))
                        {
                            var ex = Spells.E as Spell.Skillshot;
                            if (ex != null)
                            {
                                ex.GetPrediction(target);
                                ex.Cast(target);
                            }
                            return;
                        }

                        if (Spells.E.GetType() == typeof(Spell.Targeted))
                        {
                            Spells.E.Cast(target);
                            return;
                        }

                        if (Spells.E.GetType() == typeof(Spell.Active))
                        {
                            Spells.E.Cast();
                            return;
                        }

                        if (Spells.E.GetType() == typeof(Spell.Chargeable))
                        {
                            Spell.Chargeable ex = Spells.E as Spell.Chargeable;
                            if (ex != null && !ex.IsCharging)
                            {
                                ex.StartCharging();
                            }

                            if (ex != null && ex.Range == ex.MaximumRange)
                            {
                                ex.Cast(target.Position);
                            }
                            return;
                        }

                        if (Spells.E.GetType() == typeof(Spell.Ranged))
                        {
                            Spells.E.Cast(target.Position);
                            return;
                        }
                    }
                }

                if (AutoFarm.Lh.Get <ComboBox>(AutoFarm.Player.ChampionName + "Rmode").CurrentValue == 1 &&
                    AutoFarm.Lh[AutoFarm.Player.ChampionName + "R"].Cast <CheckBox>().CurrentValue &&
                    Player.Instance.ManaPercent
                    >= AutoFarm.ManaMenu[AutoFarm.Player.ChampionName + "R"].Cast <Slider>().CurrentValue)
                {
                    if (Spells.RisToggle || Spells.RisDash || Spells.RisCc || Spells.R == null)
                    {
                        return;
                    }
                    if (ObjectManager.Player.GetSpellDamage(target, SpellSlot.R)
                        > Prediction.Health.GetPrediction(target, (int)(Spells.R.CastDelay * 1000)) &&
                        Spells.R.IsInRange(target))
                    {
                        if (Spells.R.GetType() == typeof(Spell.Skillshot))
                        {
                            Spell.Skillshot rx = Spells.R as Spell.Skillshot;
                            if (rx != null)
                            {
                                rx.GetPrediction(target);
                                rx.Cast(target);
                            }
                            return;
                        }

                        if (Spells.R.GetType() == typeof(Spell.Targeted))
                        {
                            Spells.R.Cast(target);
                            return;
                        }

                        if (Spells.R.GetType() == typeof(Spell.Active))
                        {
                            Spells.R.Cast();
                            return;
                        }

                        if (Spells.R.GetType() == typeof(Spell.Chargeable))
                        {
                            Spell.Chargeable rx = Spells.R as Spell.Chargeable;
                            if (rx != null && !rx.IsCharging)
                            {
                                rx.StartCharging();
                            }

                            if (rx != null && rx.Range == rx.MaximumRange)
                            {
                                rx.Cast(target.Position);
                            }
                            return;
                        }

                        if (Spells.R.GetType() == typeof(Spell.Ranged))
                        {
                            Spells.R.Cast(target.Position);
                            return;
                        }
                    }
                }
            }
        }
示例#37
0
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Varus")
            {
                return;
            }
            Bootstrap.Init(null);


            // Spell instances
            Q = new Spell.Chargeable(SpellSlot.Q, 925, 1650, 4);
            E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular);
            R = new Spell.Skillshot(SpellSlot.R, 1100, SkillShotType.Linear);

            //Menu Instances
            VarusMenu = MainMenu.AddMenu("xRP Varus", "xrpvarus");
            VarusMenu.AddGroupLabel("xRP-Varus");
            VarusMenu.AddSeparator();
            VarusMenu.AddGroupLabel("Made by: xRPdev");


            ComboMenu = VarusMenu.AddSubMenu("Combo", "sbtwcombo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.AddSeparator();
            ComboMenu.Add("usecomboq", new CheckBox("Use Q"));
            ComboMenu.Add("usecomboe", new CheckBox("Use E"));
            ComboMenu.Add("usecombor", new CheckBox("R to Stun"));


            HarassMenu = VarusMenu.AddSubMenu("HarassMenu", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.AddSeparator();
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useEHarass", new CheckBox("Use E"));
            HarassMenu.Add("waitAA", new CheckBox("wait for AA to finish", false));

            MiscMenu = VarusMenu.AddSubMenu("Misc", "misc");
            MiscMenu.AddGroupLabel("Misc");
            MiscMenu.AddSeparator();
            MiscMenu.Add("kse", new CheckBox("KS with E"));
            MiscMenu.Add("ksq", new CheckBox("KS with Q"));
            MiscMenu.AddSeparator();
            MiscMenu.Add("gapr", new CheckBox("R on Gapcloser"));

            DrawMenu = VarusMenu.AddSubMenu("Drawings", "drawings");
            DrawMenu.AddGroupLabel("Drawings");
            DrawMenu.AddSeparator();
            DrawMenu.Add("drawq", new CheckBox("Draw Q"));
            DrawMenu.Add("drawe", new CheckBox("Draw E"));
            DrawMenu.Add("drawr", new CheckBox("Draw R"));
            DrawMenu.Add("drawAA", new CheckBox("Draw AutoAttack"));

            LaneClearMenu = VarusMenu.AddSubMenu("Lane Clear", "laneclear");
            LaneClearMenu.AddGroupLabel("Lane Clear Settings");
            LaneClearMenu.AddSeparator();
            LaneClearMenu.Add("LCQ", new CheckBox("Use Q"));
            LaneClearMenu.Add("countM", new Slider("Min minions to Q", 3, 0, 6));
            LaneClearMenu.Add("LCE", new CheckBox("Use E"));
            LaneClearMenu.Add("countME", new Slider("Min minions to E", 3, 0, 6));



            Game.OnTick           += Tick;
            Drawing.OnDraw        += OnDraw;
            Gapcloser.OnGapcloser += Gapcloser_OnGapCloser;
        }
示例#38
0
 public Varus()
 {
     //Q2 = new Spell.Skillshot(SpellSlot.Q, 925, EloBuddy.SDK.Enumerations.SkillShotType.Linear, 0, 1900, 100);
     //Q2.AllowedCollisionCount = int.MaxValue;
     Q = new Spell.Chargeable(SpellSlot.Q, 925, 1625, 2000, 0, 1900, 100);
     E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 500, int.MaxValue, 750);
     R = new Spell.Skillshot(SpellSlot.R, 1075, SkillShotType.Linear, 0, 1200, 120);
 }
示例#39
0
        static Xerath()
        {
            Scryb = new Item((int)ItemId.Farsight_Alteration, 3500f);
            Q     = new Spell.Chargeable(SpellSlot.Q, 750, 1500, 1500, 500, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Skillshot(SpellSlot.W, 1100, SkillShotType.Circular, 250, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear, 250, 1600, 70)
            {
                AllowedCollisionCount = 0
            };
            R = new Spell.Skillshot(SpellSlot.R, 3200, SkillShotType.Circular, 500, int.MaxValue, 120)
            {
                AllowedCollisionCount = int.MaxValue
            };

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            Menuini   = MainMenu.AddMenu("Xerath", "Xerath");
            RMenu     = Menuini.AddSubMenu("R Settings");
            ComboMenu = Menuini.AddSubMenu("Combo Settings");
            ComboMenu.AddGroupLabel("Combo Settings");
            HarassMenu = Menuini.AddSubMenu("Harass Settings");
            HarassMenu.AddGroupLabel("Harass Settings");
            LaneClearMenu = Menuini.AddSubMenu("LaneClear Settings");
            LaneClearMenu.AddGroupLabel("LaneClear Settings");
            JungleClearMenu = Menuini.AddSubMenu("JungleClear Settings");
            JungleClearMenu.AddGroupLabel("JungleClear Settings");
            KillStealMenu = Menuini.AddSubMenu("Stealer");
            KillStealMenu.AddGroupLabel("Stealer Settings");
            MiscMenu  = Menuini.AddSubMenu("Misc Settings");
            DrawMenu  = Menuini.AddSubMenu("Drawings Settings");
            ColorMenu = Menuini.AddSubMenu("Color Picker");

            foreach (var spell in SpellList)
            {
                Menuini.Add(spell.Slot + "hit", new ComboBox(spell.Slot + " HitChance", 0, "High", "Medium", "Low"));
                Menuini.AddSeparator(0);
            }

            RMenu.AddGroupLabel("R Settings");
            RMenu.Add("R", new CheckBox("Use R"));
            RMenu.Add("scrybR", new CheckBox("Use Scrybing Orb while Ulting"));
            RMenu.Add("Rmode", new ComboBox("R Mode", 0, "Auto", "Custom Delays", "On Tap"));
            RMenu.Add("Rtap", new KeyBind("R Tap Key", false, KeyBind.BindTypes.HoldActive, 'S'));
            RMenu.AddGroupLabel("R Custom Delays");
            for (var i = 1; i <= 5; i++)
            {
                RMenu.Add("delay" + i, new Slider("Delay " + i, 0, 0, 1500));
            }

            RMenu.Add("Rblock", new CheckBox("Block Commands While Casting R"));
            RMenu.Add("Rnear", new CheckBox("Focus Targets Near Mouse Only"));
            RMenu.Add("Mradius", new Slider("Mouse Radius", 750, 300, 1500));

            HarassMenu.Add("toggle", new KeyBind("Auto Harass", false, KeyBind.BindTypes.PressToggle, 'H'));

            foreach (var spell in SpellList.Where(s => s != R))
            {
                ComboMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));

                HarassMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                HarassMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% > [{0}%]"));
                HarassMenu.AddSeparator(0);

                LaneClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                LaneClearMenu.Add(spell.Slot + "mode", new ComboBox(spell.Slot + " Mode", 0, "LaneClear", "LastHit", "Both"));
                LaneClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% > [{0}%]"));
                LaneClearMenu.AddSeparator(0);

                JungleClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                JungleClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% > [{0}%]"));
                JungleClearMenu.AddSeparator(0);

                KillStealMenu.Add(spell.Slot + "ks", new CheckBox("KillSteal " + spell.Slot));
                KillStealMenu.Add(spell.Slot + "js", new CheckBox("JungleSteal " + spell.Slot));
                KillStealMenu.AddSeparator(0);
            }

            MiscMenu.AddGroupLabel("Misc Settings");
            MiscMenu.Add("gap", new CheckBox("E Anti-GapCloser"));
            MiscMenu.Add("int", new CheckBox("E Interrupter"));
            MiscMenu.Add("Danger", new ComboBox("Interrupter Danger Level", 1, "High", "Medium", "Low"));
            MiscMenu.Add("flee", new KeyBind("Escape with E", false, KeyBind.BindTypes.HoldActive, 'A'));
            MiscMenu.Add("Notifications", new CheckBox("Use Notifications"));
            MiscMenu.Add("autoECC", new CheckBox("Auto E On CC enemy"));
            MiscMenu.Add("scrybebuy", new CheckBox("Auto Scrybing Orb Buy"));
            MiscMenu.Add("scrybebuylevel", new Slider("Buy Orb at level [{0}]", 9, 1, 18));

            foreach (var spell in SpellList)
            {
                DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Range"));
            }

            DrawMenu.Add("Rmini", new CheckBox("Draw R Range (MiniMap)", false));
            DrawMenu.Add("damage", new CheckBox("Draw Combo Damage"));
            DrawMenu.AddLabel("Draws = ComboDamage / Enemy Current Health");

            foreach (var spell in SpellList)
            {
                ColorMenu.Add(spell.Slot.ToString(), new ColorPicker(spell.Slot + " Color", Color.Chartreuse));
            }

            Drawing.OnEndScene += Drawing_OnEndScene;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
            Orbwalker.OnPreAttack            += Orbwalker_OnPreAttack;
            Player.OnIssueOrder += Player_OnIssueOrder;
            GameObject.OnCreate += GameObject_OnCreate;
        }
示例#40
0
 public Xerath()
 {
     Q = new Spell.Chargeable(SpellSlot.Q, 750, 1500, 1500, 500, int.MaxValue, 100);
     W = new Spell.Skillshot(SpellSlot.W, 1100, SkillShotType.Circular, 250, int.MaxValue, 100);
     E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear, 250, 1600, 70);
     R = new Spell.Skillshot(SpellSlot.R, 3200, SkillShotType.Circular, 500, int.MaxValue, 120);
 }
示例#41
0
        private static void OnGalioLoad(EventArgs args)
        {
            if (Player.Instance.ChampionName == "Galio")
            {
                if (Player.Instance.ChampionName != "Galio")
                {
                    return;
                }
            }

            Q = new Spell.Skillshot(SpellSlot.Q, 825, SkillShotType.Circular, 250, 500, 400);
            W = new Spell.Chargeable(SpellSlot.W, 275, 450, 0);
            E = new Spell.Skillshot(SpellSlot.E, 600, SkillShotType.Linear, 250, 300, 150)
            {
                AllowedCollisionCount = 1
            };
            R = new Spell.Skillshot(SpellSlot.R, 4000, SkillShotType.Circular);


            menu = MainMenu.AddMenu("Galio", "Galio");
            //
            prediction = menu.AddSubMenu("-> Prediction");
            prediction.AddLabel("--> Prediction <--");
            prediction.Add("Qhit", new Slider("HitChance --> Q", 75, 1, 100));
            prediction.Add("Ehit", new Slider("HitChance --> E", 50, 1, 100));
            prediction.AddSeparator();
            prediction.AddLabel("Change combo? Not recommended");
            prediction.Add("HitBox", new ComboBox("Combos", 0, "Q -> E -> W -> R", "W Rage -> Q -> E"));
            prediction.AddSeparator();
            prediction.AddLabel("The 2nd combo is still not working trying to solve the problem");

            //
            Combo = menu.AddSubMenu("-> Combo");
            Combo.AddLabel("--> Combo < --");
            Combo.Add("Qc", new CheckBox("Q -> Combo"));
            Combo.Add("Wc", new CheckBox("W -> Combo"));
            Combo.Add("Ec", new CheckBox("E -> Combo"));
            Combo.Add("Rc", new CheckBox("R -> Combo", false));
            Combo.AddSeparator();
            Combo.AddLabel("[R] Settings");
            Combo.Add("CorretCurso", new Slider("How would you like to use Uti?", 800, 1, 2000));
            Combo.Add("UtiEnemy", new Slider("Minimum of Enemies", 2, 1, 5));

            //
            Harass = menu.AddSubMenu("-> Harass");
            Harass.AddLabel("--> Harass < --");
            Harass.Add("Hq", new CheckBox("Q -> Harass"));
            Harass.Add("He", new CheckBox("E -> Harass", false));
            Harass.AddSeparator();
            Harass.AddLabel("Harass Mana");
            Harass.Add("Hqm", new Slider("Mana -> [Q]", 50, 1, 100));
            Harass.Add("Hem", new Slider("Mana -> [E]", 70, 1, 100));
            //
            Clear = menu.AddSubMenu("-> Clear");
            Clear.AddLabel("--> LaneClear and JungleClear < --");
            Clear.Add("Lq", new CheckBox("Q -> LaneClear"));
            Clear.Add("Jq", new CheckBox("Q -> JungleClear"));
            Clear.AddSeparator();
            Clear.AddLabel("-> Clear Mana <-");
            Clear.Add("Lqm", new Slider("Mana [Q]", 50, 1, 100));
            Clear.AddLabel("Jungle");
            Clear.Add("Jqm", new Slider("Mana [Q]", 50, 1, 100));
            //
            Automatic = menu.AddSubMenu("-> Automatic");
            Automatic.AddLabel("--> Automatic < --");
            Automatic.Add("Ruti", new CheckBox("R -> Ally"));
            Automatic.Add("Re", new CheckBox("R -> Automatic"));
            //
            Drawings = menu.AddSubMenu("-> Drawing");
            Drawings.AddLabel("--> Drawing < --");
            Drawings.Add("Dq", new CheckBox("Q -> Drawing"));
            Drawings.Add("Dw", new CheckBox("W -> Drawing"));
            Drawings.Add("De", new CheckBox("E -> Drawing"));
            Drawings.Add("Dr", new CheckBox("R -> Drawing"));

            Drawing.OnDraw += OnDrawing;
            Game.OnTick    += OnTick;
        }
示例#42
0
文件: Poppy.cs 项目: tekintr/Elobuddy
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Poppy)
            {
                return;
            }


            Q = new Spell.Skillshot(SpellSlot.Q, 430, SkillShotType.Linear, 250, null, 100);
            Q.AllowedCollisionCount = int.MaxValue;
            W  = new Spell.Active(SpellSlot.W, 400);
            E  = new Spell.Targeted(SpellSlot.E, 425);
            E2 = new Spell.Skillshot(SpellSlot.E, 525, SkillShotType.Linear, 250, 1250);
            R  = new Spell.Chargeable(SpellSlot.R, 500, 1200, 4000, 250, int.MaxValue, 90);



            Menu = MainMenu.AddMenu("Poppy HTTF", "Poppy");


            ComboMenu = Menu.AddSubMenu("Kombo Ayarlari", "Combo");
            ComboMenu.AddGroupLabel("Kombo Ayarlari");
            ComboMenu.Add("useQCombo", new CheckBox("Kullan Q"));
            ComboMenu.Add("useWCombo", new CheckBox("Kullan W"));
            ComboMenu.Add("useECombo", new CheckBox("Kullan E"));
            ComboMenu.Add("useRcombo", new CheckBox("Kullan R"));
            ComboMenu.Add("combo.REnemies", new Slider("R kullanmak icin dusman sayisi", 1, 1, 5));
            ComboMenu.AddGroupLabel("Durtme Ayarlari");
            ComboMenu.Add("useQHarass", new CheckBox("Use Q"));
            ComboMenu.Add("useWHarassMana", new Slider("Durtmek icin enaz mana %", 70, 0, 100));
            ComboMenu.AddGroupLabel("E Ayarlari");
            ComboMenu.Add("useEwall", new CheckBox("Kullan E duvara her zaman?"));
            ComboMenu.Add("useEeq", new CheckBox("Kullan E kacarken ?"));

            JungleLaneMenu = Menu.AddSubMenu("Temizleme Ayarlari", "FarmSettings");
            JungleLaneMenu.AddGroupLabel("Koridor temizleme");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Kullan Q"));
            JungleLaneMenu.Add("useWManalane", new Slider("Koridor temizleme icin enaz mana %", 70, 0, 100));
            JungleLaneMenu.AddLabel("Orman temizleme");
            JungleLaneMenu.Add("useQJungle", new CheckBox("Kullan Q"));
            JungleLaneMenu.Add("useWMana", new Slider("Orman temizleme icin enaz mana %", 70, 0, 100));


            MiscMenu = Menu.AddSubMenu("Karisik ayarlar", "KarisikAyarlar");
            MiscMenu.AddGroupLabel("Atilma onleyici ve skill enlleyici  ayarlari");
            MiscMenu.Add("gapcloser", new CheckBox("Otomatik W  Atilma yapana"));
            MiscMenu.Add("gapcloserE", new CheckBox("Otomatik E  Atilma yapana"));
            MiscMenu.Add("InterruptE", new CheckBox("Otomatik E  gelen skilli engellemede"));
            MiscMenu.Add("interruptR", new CheckBox("Otomatik R  gelen skilli engellemede"));
            MiscMenu.AddGroupLabel("Flee Settings");
            MiscMenu.Add("FleeW", new CheckBox("Use W"));



            DrawMenu = Menu.AddSubMenu("Cizim ayarlari");
            DrawMenu.AddGroupLabel("Cizim ayarlari");
            DrawMenu.Add("drawQ", new CheckBox("Goster Q Mesafesi"));
            DrawMenu.Add("drawW", new CheckBox("Goster W Mesafesi"));
            DrawMenu.Add("drawE", new CheckBox("Goster E Mesafesi"));
            DrawMenu.Add("drawR", new CheckBox("Goster R Mesafesi"));


            Game.OnUpdate += OnGameUpdate;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapCloser;
            Drawing.OnDraw += Drawing_OnDraw;
        }
 public static float TimeSinceCharge(this Spell.Chargeable self)
 {
     return(Game.Time - (self.ChargingStartedTime / 1000));
 }