Esempio n. 1
0
        public static bool Initialize()
        {
            LoadPlugin();

            if (PluginInstance == null)
            {
                Misc.PrintInfoMessage("<b><font color=\"#5ED43D\">" + Player.Instance.ChampionName +
                                      "</font></b> is not yet supported.");
                return(false);
            }

            if (EntityManager.Heroes.Enemies.Any(x => x.Hero == Champion.Ziggs || x.Hero == Champion.Rengar))
            {
                GameObject.OnCreate += GameObject_OnCreate;
            }

            _text = new EloBuddy.SDK.Rendering.Text(string.Empty, new SharpDX.Direct3D9.FontDescription
            {
                FaceName        = "Tahoma",
                Quality         = SharpDX.Direct3D9.FontQuality.ClearTypeNatural,
                OutputPrecision = SharpDX.Direct3D9.FontPrecision.Raster,
                Height          = 30
            });

            Game.OnTick    += Game_OnTick;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;

            return(true);
        }
Esempio n. 2
0
        public static void Initialize()
        {
            if (UtilityMenu.Baseult == null) return;

            Game.OnTick += OnTick;
            Drawing.OnEndScene += OnEndScene;
            Teleport.OnTeleport += OnTeleport;

            Text = new Font("", new FontDescription
            {
                FaceName = "Calibri",
                Height = Height/30*23,
                OutputPrecision = FontPrecision.Default,
                Quality = FontQuality.ClearType
            });

            foreach (var hero in ObjectManager.Get<AIHeroClient>())
            {
                Recalls.Add(new Recall(hero, RecallStatus.Inactive));
            }

            #region Spells

            BaseUltSpells.Add(new BaseUltSpell("Ashe", SpellSlot.R, 250, 1600, 130, true));
            BaseUltSpells.Add(new BaseUltSpell("Draven", SpellSlot.R, 400, 2000, 160, true));
            BaseUltSpells.Add(new BaseUltSpell("Ezreal", SpellSlot.R, 1000, 2000, 160, false));
            BaseUltSpells.Add(new BaseUltSpell("Jinx", SpellSlot.R, 600, 1700, 140, true));

            #endregion
        }
Esempio n. 3
0
        public static void Initialize()
        {
            if (UtilityMenu._baseult == null)
            {
                return;
            }

            Game.OnTick         += OnTick;
            Drawing.OnEndScene  += OnEndScene;
            Teleport.OnTeleport += OnTeleport;

            Text = new Font("", new FontDescription
            {
                FaceName        = "Calibri",
                Height          = (Height / 30) * 23,
                OutputPrecision = FontPrecision.Default,
                Quality         = FontQuality.ClearType
            });

            foreach (var hero in ObjectManager.Get <AIHeroClient>())
            {
                Recalls.Add(new Recall(hero, RecallStatus.Inactive));
            }

            #region Spells

            BaseUltSpells.Add(new BaseUltSpell("Ashe", SpellSlot.R, 250, 1600, 130, true));
            BaseUltSpells.Add(new BaseUltSpell("Draven", SpellSlot.R, 400, 2000, 160, true));
            BaseUltSpells.Add(new BaseUltSpell("Ezreal", SpellSlot.R, 1000, 2000, 160, false));
            BaseUltSpells.Add(new BaseUltSpell("Jinx", SpellSlot.R, 600, 1700, 140, true));

            #endregion
        }
Esempio n. 4
0
        public static void Initialize()
        {
            Program.BaseUltMenu["x"].Cast<Slider>().OnValueChange += Offset_OnValueChange;
            Program.BaseUltMenu["y"].Cast<Slider>().OnValueChange += Offset_OnValueChange;
            UpdateOffset(Program.BaseUltMenu["x"].Cast<Slider>().CurrentValue,
                Program.BaseUltMenu["y"].Cast<Slider>().CurrentValue);

            Text = new Font("", new FontDescription
            {
                FaceName = "Calibri",
                Height = (Height/30)*23,
                OutputPrecision = FontPrecision.Default,
                Quality = FontQuality.ClearType
            });

            Hud =
                new Sprite(Texture.FromMemory(Drawing.Direct3DDevice,
                    (byte[]) new ImageConverter().ConvertTo(Resources.baseulthud, typeof (byte[])), 285, 44, 0,
                    Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Bar =
                new Sprite(Texture.FromMemory(Drawing.Direct3DDevice,
                    (byte[]) new ImageConverter().ConvertTo(Resources.bar, typeof (byte[])), 260, 66, 0, Usage.None,
                    Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Warning =
                new Sprite(Texture.FromMemory(Drawing.Direct3DDevice,
                    (byte[]) new ImageConverter().ConvertTo(Resources.warning, typeof (byte[])), 40, 40, 0, Usage.None,
                    Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Underline =
                new Sprite(Texture.FromMemory(Drawing.Direct3DDevice,
                    (byte[]) new ImageConverter().ConvertTo(Resources.underline_red, typeof (byte[])), 355, 89, 0,
                    Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            foreach (var hero in ObjectManager.Get<AIHeroClient>())
            {
                Recalls.Add(new Recall(hero, RecallStatus.Inactive));
            }

            #region Spells

            BaseUltSpells.Add(new BaseUltSpell("Ezreal", SpellSlot.R, 1000, 2000, 160, false));
            BaseUltSpells.Add(new BaseUltSpell("Jinx", SpellSlot.R, 600, 1700, 140, true));
            BaseUltSpells.Add(new BaseUltSpell("Ashe", SpellSlot.R, 250, 1600, 130, true));
            BaseUltSpells.Add(new BaseUltSpell("Draven", SpellSlot.R, 400, 2000, 160, true));
            BaseUltSpells.Add(new BaseUltSpell("Karthus", SpellSlot.R, 3125, 0, 0, false));
            BaseUltSpells.Add(new BaseUltSpell("Ziggs", SpellSlot.Q, 250, 3100, 0, false));
            BaseUltSpells.Add(new BaseUltSpell("Lux", SpellSlot.R, 1375, 0, 0, false));
            BaseUltSpells.Add(new BaseUltSpell("Xerath", SpellSlot.R, 700, 600, 0, false));

            #endregion
        }
        public static void Initialize()
        {
            Program.BaseUltMenu["x"].Cast <Slider>().OnValueChange += Offset_OnValueChange;
            Program.BaseUltMenu["y"].Cast <Slider>().OnValueChange += Offset_OnValueChange;
            UpdateOffset(Program.BaseUltMenu["x"].Cast <Slider>().CurrentValue,
                         Program.BaseUltMenu["y"].Cast <Slider>().CurrentValue);

            Text = new Font("", new FontDescription
            {
                FaceName        = "Calibri",
                Height          = (Height / 30) * 23,
                OutputPrecision = FontPrecision.Default,
                Quality         = FontQuality.ClearType
            });

            Hud =
                new Sprite(Texture.FromMemory(Drawing.Direct3DDevice,
                                              (byte[])new ImageConverter().ConvertTo(Resources.baseulthud, typeof(byte[])), 285, 44, 0,
                                              Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Bar =
                new Sprite(Texture.FromMemory(Drawing.Direct3DDevice,
                                              (byte[])new ImageConverter().ConvertTo(Resources.bar, typeof(byte[])), 260, 66, 0, Usage.None,
                                              Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Warning =
                new Sprite(Texture.FromMemory(Drawing.Direct3DDevice,
                                              (byte[])new ImageConverter().ConvertTo(Resources.warning, typeof(byte[])), 40, 40, 0, Usage.None,
                                              Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            Underline =
                new Sprite(Texture.FromMemory(Drawing.Direct3DDevice,
                                              (byte[])new ImageConverter().ConvertTo(Resources.underline_red, typeof(byte[])), 355, 89, 0,
                                              Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0));

            foreach (var hero in ObjectManager.Get <AIHeroClient>())
            {
                Recalls.Add(new Recall(hero, RecallStatus.Inactive));
            }

            #region Spells

            BaseUltSpells.Add(new BaseUltSpell("Ezreal", SpellSlot.R, 1000, 2000, 160, false));
            BaseUltSpells.Add(new BaseUltSpell("Jinx", SpellSlot.R, 600, 1700, 140, true));
            BaseUltSpells.Add(new BaseUltSpell("Ashe", SpellSlot.R, 250, 1600, 130, true));
            BaseUltSpells.Add(new BaseUltSpell("Draven", SpellSlot.R, 400, 2000, 160, true));
            BaseUltSpells.Add(new BaseUltSpell("Karthus", SpellSlot.R, 3125, 0, 0, false));
            BaseUltSpells.Add(new BaseUltSpell("Ziggs", SpellSlot.Q, 250, 3100, 0, false));
            BaseUltSpells.Add(new BaseUltSpell("Lux", SpellSlot.R, 1375, 0, 0, false));
            BaseUltSpells.Add(new BaseUltSpell("Xerath", SpellSlot.R, 700, 600, 0, false));

            #endregion
        }