예제 #1
0
        public SpellDataInst GetChampionSpell()
        {
            EloBuddy.SpellSlot slot = GetEBSpellSlot();
            if (slot != EloBuddy.SpellSlot.Unknown)
            {
                return(caster.Spellbook.GetSpell(slot));
            }

            Console.WriteLine("Champion Spell was null: " + SpellName);
            return(null);
        }
예제 #2
0
파일: ElEkko.cs 프로젝트: riwalry1/AIO
        public static void OnLoad()
        {
            if (EloBuddy.ObjectManager.Player.CharData.BaseSkinName != "Ekko")
            {
                return;
            }

            ignite = Player.GetSpellSlot("summonerdot");

            spells[Spells.Q].SetSkillshot(0.25f, 60, 1650f, false, SkillshotType.SkillshotLine);
            spells[Spells.W].SetSkillshot(2.5f, 200f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            ElEkkoMenu.Initialize();
            EloBuddy.Game.OnUpdate  += OnUpdate;
            EloBuddy.Drawing.OnDraw += Drawings.OnDraw;
            EloBuddy.Obj_AI_Base.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
            EloBuddy.GameObject.OnCreate            += Obj_AI_Base_OnCreate;
            EloBuddy.GameObject.OnDelete            += Obj_AI_Base_OnDelete;
        }
예제 #3
0
        public SpellData(EloBuddy.SpellSlot slot,
                         TargetSelector.DamageType damageType,
                         int type,
                         string spellName,
                         float delay,
                         float radius,
                         float range,
                         int missileSpeed,
                         Func <float> rangeFunc            = null,
                         Func <Obj_AI_Base, double> damage = null)
        {
            SpellName    = spellName;
            Delay        = delay;
            Radius       = radius;
            Range        = range;
            MissileSpeed = missileSpeed;
            Instance     = new Spell(slot, range, damageType);

            switch (type)
            {
            case 1:
                Instance.SetSkillshot(delay, radius, missileSpeed, false, SkillshotType.SkillshotLine);
                break;

            case 2:
                Instance.SetTargetted(delay, missileSpeed);
                break;

            case 3:
                Instance.SetSkillshot(delay, radius, missileSpeed, false, SkillshotType.SkillshotCircle);
                break;

            case 4:
                Instance.SetSkillshot(delay, radius, missileSpeed, false, SkillshotType.SkillshotCone);
                break;
            }

            RangeFunc = rangeFunc;
            Damage    = damage;
        }
예제 #4
0
        public static void OnLoad()
        {
            if (EloBuddy.ObjectManager.Player.CharData.BaseSkinName != "Ekko")
            {
                return;
            }

            ignite = Player.GetSpellSlot("summonerdot");

            spells[Spells.Q].SetSkillshot(0.25f, 60, 1650f, false, SkillshotType.SkillshotLine);
            spells[Spells.W].SetSkillshot(2.5f, 200f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            ElEkkoMenu.Initialize();
            EloBuddy.Game.OnUpdate += OnUpdate;
            EloBuddy.Drawing.OnDraw += Drawings.OnDraw;
            EloBuddy.Obj_AI_Base.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
            EloBuddy.GameObject.OnCreate += Obj_AI_Base_OnCreate;
            EloBuddy.GameObject.OnDelete += Obj_AI_Base_OnDelete;
        }
예제 #5
0
        public static void Game_OnGameLoad()
        {
            Player = ObjectManager.Player;

            if (Player.CharData.BaseSkinName != ChampionName)
            {
                return;
            }

            //Create the spells
            Q  = new Spell(EloBuddy.SpellSlot.Q, 790);
            W  = new Spell(EloBuddy.SpellSlot.W, 925);
            E  = new Spell(EloBuddy.SpellSlot.E, 700);
            R  = new Spell(EloBuddy.SpellSlot.R, 675);
            Eq = new Spell(EloBuddy.SpellSlot.Q, Q.Range + 500);

            IgniteSlot = Player.GetSpellSlot("SummonerDot");

            Q.SetSkillshot(0.6f, 125f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            W.SetSkillshot(0.25f, 140f, 1600f, false, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0.25f, (float)(45 * 0.5), 2500f, false, SkillshotType.SkillshotCircle);
            Eq.SetSkillshot(float.MaxValue, 55f, 2000f, false, SkillshotType.SkillshotCircle);

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

            //Create the menu
            Config = new Menu(ChampionName, ChampionName, true).SetFontStyle(FontStyle.Regular, Color.GreenYellow);

            //Orbwalker submenu
            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));

            //AssassinManager = new AssassinManager();
            //AssassinManager.Initialize();

            //Initialize the orbwalker and add it to the menu as submenu.
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            var menuKeys = new Menu("Keys", "Keys").SetFontStyle(FontStyle.Regular, Color.Aqua);
            {
                menuKeys.AddItem(
                    new MenuItem("Key.Combo", "Combo!").SetValue(
                        new KeyBind(Config.Item("Orbwalk").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.GreenYellow);
                menuKeys.AddItem(
                    new MenuItem("Key.Harass", "Harass!").SetValue(
                        new KeyBind(Config.Item("Farm").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.Coral);
                menuKeys.AddItem(
                    new MenuItem("Key.HarassT", "Harass (toggle)!").SetValue(
                        new KeyBind("Y".ToCharArray()[0], KeyBindType.Toggle)))
                .SetFontStyle(FontStyle.Regular, Color.Coral)
                .Permashow(true, "Syndra | Toggle Harass", Color.Aqua);
                menuKeys.AddItem(
                    new MenuItem("Key.Lane", "Lane Clear!").SetValue(
                        new KeyBind(Config.Item("LaneClear").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.DarkKhaki);
                menuKeys.AddItem(
                    new MenuItem("Key.Jungle", "Jungle Farm!").SetValue(
                        new KeyBind(Config.Item("LaneClear").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.DarkKhaki);
                menuKeys.AddItem(
                    new MenuItem("Key.InstantQE", "Instant Q-E to Enemy").SetValue(
                        new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                Config.AddSubMenu(menuKeys);
            }

            var menuCombo = new Menu("Combo", "Combo");
            {
                menuCombo.AddItem(new MenuItem("UseQCombo", "Use Q").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseWCombo", "Use W").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseECombo", "Use E").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseQECombo", "Use QE").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseRCombo", "Use R").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseIgniteCombo", "Use Ignite").SetValue(true));
                Config.AddSubMenu(menuCombo);
            }

            var menuHarass = new Menu("Harass", "Harass");
            {
                menuHarass.AddItem(new MenuItem("UseQHarass", "Use Q").SetValue(true));

                menuHarass.AddItem(new MenuItem("UseWHarass", "Use W").SetValue(false));
                menuHarass.AddItem(new MenuItem("UseEHarass", "Use E").SetValue(false));
                menuHarass.AddItem(new MenuItem("UseQEHarass", "Use QE").SetValue(false));
                menuHarass.AddItem(
                    new MenuItem("Harass.Mana", "Don't harass if mana < %").SetValue(new Slider(0)));
                Config.AddSubMenu(menuHarass);
            }

            var menuFarm = new Menu("Lane Farm", "Farm");
            {
                menuFarm.AddItem(new MenuItem("EnabledFarm", "Enable! (On/Off: Mouse Scroll)").SetValue(true))
                .Permashow(true, "Syndra | Farm Mode Active", Color.Aqua);
                menuFarm.AddItem(
                    new MenuItem("UseQFarm", "Use Q").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 2)));
                menuFarm.AddItem(
                    new MenuItem("UseWFarm", "Use W").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 1)));
                menuFarm.AddItem(
                    new MenuItem("UseEFarm", "Use E").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 3)));
                menuFarm.AddItem(
                    new MenuItem("FreezeActive", "Freeze!").SetValue(
                        new KeyBind(Config.Item("Farm").GetValue <KeyBind>().Key, KeyBindType.Press)));
                menuFarm.AddItem(new MenuItem("Lane.Mana", "Don't harass if mana < %").SetValue(new Slider(0)));
                Config.AddSubMenu(menuFarm);
            }

            var menuJungle = new Menu("Jungle Farm", "JungleFarm");
            {
                menuJungle.AddItem(new MenuItem("UseQJFarm", "Use Q").SetValue(true));
                menuJungle.AddItem(new MenuItem("UseWJFarm", "Use W").SetValue(true));
                menuJungle.AddItem(new MenuItem("UseEJFarm", "Use E").SetValue(true));
                Config.AddSubMenu(menuJungle);
            }

            var menuMisc = new Menu("Misc", "Misc");

            {
                menuMisc.AddItem(new MenuItem("InterruptSpells", "Interrupt spells").SetValue(true));
                menuMisc.AddItem(
                    new MenuItem("CastQE", "QE closest to cursor").SetValue(
                        new KeyBind('T', KeyBindType.Press)));

                menuMisc.AddSubMenu(new Menu("Dont use R on", "DontUlt"));
                foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(enemy => enemy.Team != Player.Team))
                {
                    menuMisc.SubMenu("DontUlt")
                    .AddItem(
                        new MenuItem("DontUlt" + enemy.CharData.BaseSkinName, enemy.CharData.BaseSkinName).SetValue(
                            false));
                }
                Config.AddSubMenu(menuMisc);
            }


            DrawMenu = new Menu("Drawings", "Drawings");
            {
                DrawMenu.AddItem(
                    new MenuItem("QRange", "Q range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("WRange", "W range").SetValue(
                        new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("ERange", "E range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("RRange", "R range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("QERange", "QE range").SetValue(
                        new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));

                var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Damage After Combo").SetValue(true);
                //LeagueSharp.Common.Utility.HpBar//DamageIndicator.DamageToUnit = GetComboDamage;
                //LeagueSharp.Common.Utility.HpBar//DamageIndicator.Enabled = dmgAfterComboItem.GetValue<bool>();
                dmgAfterComboItem.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
                {
                    //LeagueSharp.Common.Utility.HpBar//DamageIndicator.Enabled = eventArgs.GetNewValue<bool>();
                };

                DrawMenu.AddItem(dmgAfterComboItem);
                ManaBarIndicator.Initialize();
                Config.AddSubMenu(DrawMenu);
            }
            Config.AddToMainMenu();

            //Add the events we are going to use:
            Game.OnUpdate           += Game_OnGameUpdate;
            Game.OnWndProc          += Game_OnWndProc;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;

            Obj_AI_Base.OnSpellCast            += AIHeroClient_OnProcessSpellCast;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Drawing.OnDraw += Drawing_OnDraw;
            Chat.Print(ChampionName + " Loaded!");
        }
예제 #6
0
 public MItem(String name, String menuName, String menuVariable, int id, ItemTypeId type, float range = 0, SpellSlot abilitySlot = SpellSlot.Unknown, SpellType spellType = SpellType.TargetAll)
 {
     this.name         = name;
     this.menuVariable = menuVariable;
     this.menuName     = menuName;
     this.id           = id;
     this.range        = range;
     this.type         = type;
     this.abilitySlot  = abilitySlot;
     this.spellType    = spellType;
 }