Esempio n. 1
0
 static Viktor()
 {
     Q = new Spell.Targeted(SpellSlot.Q, 650, DamageType.Magical);
     W = new Spell.Skillshot(SpellSlot.W, 700, SkillShotType.Circular, 250, int.MaxValue, 300)
     {
         AllowedCollisionCount = int.MaxValue,
     };
     E = new Spell.Skillshot(SpellSlot.E, 1225, SkillShotType.Linear, 50, 1050, 100)
     {
         AllowedCollisionCount = int.MaxValue,
     };
     E1 = new Spell.SimpleSkillshot(SpellSlot.E, 525, DamageType.Magical)
     {
         CastDelay = 50,
     };
     R = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Circular, 250, int.MaxValue, 450)
     {
         AllowedCollisionCount = int.MaxValue,
     };
     UtilityPlugin.AddPlugin(EUtility.ImmobileTracker);
     DamageIndicator.DamageDelegate = HandleDamageIndicator;
 }
Esempio n. 2
0
        static CoreMenu()
        {
            try
            {
                Core = MainMenu.AddMenu("UBAddons", "UBAddons.Core", "Core of UBAddons");
                Core.AddGroupLabel("UBAddons - version " + typeof(CoreMenu).Assembly.GetName().Version.ToString());
                Core.AddLabel("Made by Uzumaki Boruto. ~Dattebasa~");
                Core.AddGroupLabel("Inject Option");
                Core.Add("Core.Activator", new CheckBox("Inject Activator"));
                Core.Add("Core.BaseUlt", new CheckBox("Inject BaseUlt"));
                Core.Add("Core.AutoLv", new CheckBox("Inject Auto level up"));
                //Core.Add("Core.Surrender", new CheckBox("Inject Surrender Tracker", false)); this is no need
                if (Variables.IsADC)
                {
                    Core.Add("Core.Orbwalker", new CheckBox("Inject Extension for OrbWalker"));
                }
                Core.AddGroupLabel("FPS Protector");
                Core.Add("Core.Enable.FPS", new CheckBox("Enable FPS Protection"));
                Core.Add("Core.Min.FPS", new Slider("Min Fps", 45, 1, 300));
                Core.Add("Core.Calculate", new Slider("Calculations per second", 35, 1, 350));
                Core.AddGroupLabel("Global Settings");
                Core.AddLabel("Must F5 to take effect");
                var OnTickButton   = Core.Add("Core.OnTick", new CheckBox("Use Game.OnTick (More fps)"));
                var OnUpdateButton = Core.Add("Core.OnUpdate", new CheckBox("Use Game.OnUpdate (Faster rection)", false));
                OnUpdateButton.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
                {
                    if (args.NewValue)
                    {
                        OnTickButton.CurrentValue = false;
                        return;
                    }
                    if (!OnTickButton.CurrentValue)
                    {
                        OnUpdateButton.CurrentValue = true;
                    }
                };
                OnTickButton.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
                {
                    if (args.NewValue)
                    {
                        OnUpdateButton.CurrentValue = false;
                        return;
                    }
                    if (!OnUpdateButton.CurrentValue)
                    {
                        OnTickButton.CurrentValue = true;
                    }
                };

                if (UBAddons.PluginInstance != null)
                {
                    GapCloser = Core.AddSubMenu("GapCloser", "UBAddons.Core.GapCloser", "General GapCloser");
                    GapCloser.Add("UBAddons.Core.GapCloser.Melee", new CheckBox("Anti Melee Champ GapCloser"));
                    GapCloser.Add("UBAddons.Core.GapCloser.Flash", new CheckBox("Anti Flash GapCloser"));
                    GapCloser.Add("UBAddons.Core.GapCloser.Dash", new CheckBox("Anti Dash GapCloser"));

                    if (IplayEkko)
                    {
                        SpotJump = Core.AddSubMenu("Dash", "UBAddons.Core." + Player.Instance.Hero, "You're using " + Player.Instance.Hero);
                        {
                            SpotJump.Add("UBAddons.Core." + Player.Instance.Hero + ".Spot", new CheckBox("Load Dash Spot"));
                            SpotJump.Add("UBAddons.Core." + Player.Instance.Hero + ".Range", new Slider("Range of Click", 75, 15, 150));
                            SpotJump.Add("UBAddons.Core." + Player.Instance.Hero + ".Spot.Draw", new CheckBox("Draw Dash Spot"));
                            SpotJump.Add("UBAddons.Core." + Player.Instance.Hero + ".Spot.Color", new ColorPicker("Spot Color", ColorReader.Load("UBAddons.Core." + Player.Instance.Hero + ".Spot.Color", System.Drawing.Color.Green)));
                            if (Game.MapId.Equals(GameMapId.SummonersRift) && SpotJump.VChecked("UBAddons.Core." + Player.Instance.Hero + ".Spot"))
                            {
                                UtilityPlugin.AddPlugin(EUtility.JumpSpot);
                            }
                        }
                    }
                    if (IplayVelkoz)
                    {
                        RDirect = Core.AddSubMenu("Direct", "UBAddons.Core.Velkoz", "You're using Velkoz");
                        {
                            RDirect.Add("UBAddons.Core.Velkoz.Change.Direct", new CheckBox("Auto Follow R"));
                            RDirect.Add("UBAddons.Core.Velkoz.Change.Direct.Only.Combo", new CheckBox("Combo Only"));
                        }
                        Interrupter.OnInterruptableSpell += delegate(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
                        {
                            if (sender.IsMe)
                            {
                                if (Player.Instance.Spellbook.IsChanneling)
                                {
                                    var target = Champions.Velkoz.Velkoz.R.GetTarget();
                                    if (target != null)
                                    {
                                        var screenPos = target.Position.WorldToScreen();
                                        System.Windows.Forms.Cursor.Position = new System.Drawing.Point((int)screenPos.X, (int)screenPos.Y);
                                    }
                                }
                            }
                        };
                    }
                    Obj_AI_Base.OnBasicAttack      += AIHeroClient_OnBasicAttack;
                    Obj_AI_Base.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast;
                    Dash.OnDash += Dash_OnDash;
                }
                if (Core.VChecked("Core.Activator"))
                {
                    UtilityPlugin.AddPlugin(EUtility.Activator);
                }
                if (Core.VChecked("Core.BaseUlt"))
                {
                    UtilityPlugin.AddPlugin(EUtility.BaseUlt);
                }
                if (Core.VChecked("Core.AutoLv"))
                {
                    UtilityPlugin.AddPlugin(EUtility.AutoLv);
                }
                if (Variables.IsADC && Core.VChecked("Core.Orbwalker"))
                {
                    UtilityPlugin.AddPlugin(EUtility.ADOrbwalker);
                }
            }
            catch (Exception e)
            {
                Log.Debug.Print(e.ToString(), General.Console_Message.Error);
            }
        }