Ejemplo n.º 1
0
 private static void Load()
 {
     if (ObjectManager.LocalHero.ClassId != Members.MyClassId)
     {
         return;
     }
     if (Members.MyHero == null || !Members.MyHero.IsValid)
     {
         Members.MyHero = ObjectManager.LocalHero;
         Members.MyTeam = ObjectManager.LocalHero.Team;
     }
     _updater = new Sleeper();
     Orbwalking.Load();
     Members.Items = new List <string>();
     Members.Menu.AddToMainMenu();
     Game.OnUpdate  += Action.Game_OnUpdate;
     Game.OnUpdate  += UpdateItems;
     Game.OnUpdate  += HotkeyCombos.Game_OnUpdate;
     Drawing.OnDraw += Draw.Drawing;
     if (Members.Menu.Item("Range.Enable").GetValue <bool>())
     {
         Members.SpellRange =
             Members.MyHero.AddParticleEffect(@"particles\ui_mouseactions\drag_selected_ring.vpcf");
         var extraRange = Members.MyHero.Inventory.Items.Any(x => x.StoredName() == "item_aether_lens")
             ? 200
             : 0;
         var spellE = RealCastRange + extraRange + Members.MyHero.HullRadius;
         Members.SpellRange.SetControlPoint(1, new Vector3(99, 255, 255));
         Members.SpellRange.SetControlPoint(2, new Vector3(spellE, 255, 0));
     }
 }
Ejemplo n.º 2
0
        public static void Init()
        {
            Game.OnUpdate += Game_OnUpdate;
            loaded         = false;
            me             = null;
            target         = null;
            earthshock     = null;
            overpower      = null;
            enrage         = null;
            abyssalBlade   = null;
            scytheOfVyse   = null;
            blink          = null;
            text           = new Font(
                Drawing.Direct3DDevice9,
                new FontDescription
            {
                FaceName = "Tahoma", Height = 13, OutputPrecision = FontPrecision.Default,
                Quality  = FontQuality.Default
            });

            Drawing.OnPreReset  += Drawing_OnPreReset;
            Drawing.OnPostReset += Drawing_OnPostReset;
            Drawing.OnEndScene  += Drawing_OnEndScene;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomainDomainUnload;
            Game.OnWndProc += Game_OnWndProc;
            Orbwalking.Load();
        }
Ejemplo n.º 3
0
        public static void OnLoad(object sender, EventArgs e)
        {
            if (Variables.Loaded || ObjectManager.LocalHero == null)
            {
                return;
            }
            Variables.Me                  = ObjectManager.LocalHero;
            Variables.Loaded              = true;
            EnemyHeroes.Heroes            = new List <Hero>();
            EnemyHeroes.Illusions         = new List <Hero>();
            AllyHeroes.Heroes             = new List <Hero>();
            EnemyHeroes.UsableHeroes      = new Hero[] { };
            AllyHeroes.UsableHeroes       = new Hero[] { };
            AllyHeroes.AbilityDictionary  = new Dictionary <float, List <Ability> >();
            EnemyHeroes.AbilityDictionary = new Dictionary <float, List <Ability> >();
            AllyHeroes.ItemDictionary     = new Dictionary <float, List <Item> >();
            EnemyHeroes.ItemDictionary    = new Dictionary <float, List <Item> >();

            MenuLoader.MenuLoader.Load();

            Game.OnUpdate  += EzGoldSharp.Game_OnUpdate;
            Game.OnUpdate  += Updater.Update;
            Drawing.OnDraw += Draws.Drawing;

            Orbwalking.Load();

            Game.PrintMessage("EzGoldSharp Loaded");
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.WriteLine("EzGoldSharp Loaded");
            Console.ResetColor();
        }
Ejemplo n.º 4
0
 private static void Load()
 {
     if (ObjectManager.LocalHero.ClassId != ClassId.CDOTA_Unit_Hero_Wisp)
     {
         return;
     }
     if (Members.MyHero == null || !Members.MyHero.IsValid)
     {
         Members.MyHero = ObjectManager.LocalHero;
         Members.MyTeam = ObjectManager.LocalHero.Team;
     }
     _attacker     = new Sleeper();
     _updater      = new Sleeper();
     _multiSleeper = new MultiSleeper();
     Orbwalking.Load();
     Members.Items = new List <string>();
     Members.Menu.AddToMainMenu();
     Game.OnUpdate                += Game_OnUpdate;
     Game.OnUpdate                += AutoSaver;
     Game.OnUpdate                += AutoTeaser;
     Game.OnIngameUpdate          += RelocateTpAbuseAction;
     Drawing.OnDraw               += Drawing_OnDraw;
     Entity.OnParticleEffectAdded += EntityOnOnParticleEffectAdded;
     Unit.OnModifierRemoved       += HeroOnOnModifierRemoved;
 }
Ejemplo n.º 5
0
        static void Main()
        {
            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate  += OnUpdate;
            Menu.AddItem(new MenuItem("hotkey", "HotKey").SetValue(new KeyBind('F', KeyBindType.Press)));
            var dick = new Dictionary <string, bool>
            {
                { "item_ethereal_blade", true },
                { "morphling_adaptive_strike", true },
                { "item_dagon", true },
                { "morphling_waveform", true }
            };

            Menu.AddItem(new MenuItem("Use", "List of Use").SetValue(new AbilityToggler(dick)));
            Menu.AddItem(new MenuItem("replicateAction", "Replicate").SetValue(new StringList(new[] { "Fight", "Go Back", "Do nothing" })));
            Menu.AddItem(new MenuItem("hybridAction", "Hybrid").SetValue(new StringList(new[] { "Fight", "Go Back", "Do nothing" })));

            var autoBalance = new Menu("Auto balance", "Auto balance", false, "morphling_morph_agi", true);

            autoBalance.AddItem(new MenuItem("autoBalance", "Auto balance").SetValue(true));
            autoBalance.AddItem(new MenuItem("minHp", "Minimum HP").SetValue(new Slider(100, 100, 5000)));
            autoBalance.AddItem(new MenuItem("minMp", "Minimum MP percent").SetValue(new Slider(0)));
            Menu.AddSubMenu(autoBalance);

            var safetp = new Menu("Safe Tp", "Safetpout", false, "morphling_morph_replicate", true);

            safetp.AddItem(new MenuItem("safetp", "Use replicate on low hp").SetValue(true));
            safetp.AddItem(new MenuItem("minHpForSafeTp", "Minimum HP").SetValue(new Slider(100, 100, 5000)));
            Menu.AddSubMenu(safetp);
            Menu.AddToMainMenu();
            Orbwalking.Load();
        }
Ejemplo n.º 6
0
        public static void Init()
        {
            var dict = new Dictionary <string, bool>
            {
                { "ursa_enrage", true }, { "ursa_overpower", true }, { "ursa_earthshock", true },
                { "item_sheepstick", true }, { "item_abyssal_blade", true }, { "item_blink", true }
            };

            Menu.AddItem(new MenuItem("enabledAbilities", "Abilities:").SetValue(new AbilityToggler(dict)));
            Menu.AddItem(
                new MenuItem("manaSlider", "Minimum mana for combo:").SetValue(new Slider(0, 0, 500))
                .SetTooltip("Only for abilities that require mana to be casted!"));
            Menu.AddItem(
                new MenuItem("targetSelecting", "Target selection:").SetValue(
                    new StringList(new[] { "FastestKillable", "ClosestToMouse" })));
            Menu.AddItem(
                new MenuItem("lockTarget", "Lock on target when they become not visible:").SetValue(true)
                .SetTooltip(
                    "It will not chase to fog, but it wont change target if current target just ran into fog, you can reset target by stopping holding the key"));
            Menu.AddItem(new MenuItem("comboKey", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press)));
            Menu.AddToMainMenu();
            Game.OnUpdate += Game_OnUpdate;
            loaded         = false;
            me             = null;
            target         = null;
            earthshock     = null;
            overpower      = null;
            enrage         = null;
            abyssalBlade   = null;
            scytheOfVyse   = null;
            blink          = null;
            menuvalueSet   = false;
            Orbwalking.Load();
        }
Ejemplo n.º 7
0
        public static void Init()
        {
            gameLoad    = false;
            isInCombo   = false;
            isAABest    = false;
            lastHitting = false;
            rangesAA    = null;
            rangesW     = null;

            Orbwalking.Load();

            /*pippyFont = new Font(Drawing.Direct3DDevice9,
             *  20,
             *  0,
             *  FontWeight.Bold,
             *  0,
             *  false,
             *  FontCharacterSet.Default,
             *  FontPrecision.Default,
             *  FontQuality.Antialiased,
             *  FontPitchAndFamily.Default,
             *  "Tahoma");
             */

            //Events
            Game.OnUpdate  += DRangerUpdate;
            Game.OnWndProc += DRangerWnd;
            Drawing.OnDraw += DRangerDraw;
        }
Ejemplo n.º 8
0
        public static void Main(string[] args)
        {
            Game.OnUpdate += Game_OnUpdate;
            Orbwalking.Load();
            if (rangeDisplay == null)
            {
                return;
            }
            rangeDisplay = null;

            Urn        = null;
            Abyssal    = null;
            Blademail  = null;
            Mjollnir   = null;
            Orchid     = null;
            Halberd    = null;
            Satanic    = null;
            Hex        = null;
            SolarCrest = null;
            Medallion  = null;
            Blink      = null;
            Armlet     = null;
            loaded     = false;

            spellQ = null;
            spellR = null;
            //Aghs = null;
        }
Ejemplo n.º 9
0
 private static void Load()
 {
     if (ObjectManager.LocalHero.ClassID != ClassID.CDOTA_Unit_Hero_Tinker)
     {
         return;
     }
     if (Members.MyHero == null || !Members.MyHero.IsValid)
     {
         Members.MyHero = ObjectManager.LocalHero;
         Members.MyTeam = ObjectManager.LocalHero.Team;
     }
     _updater = new Sleeper();
     Members.TowerRangEffectHelper  = new ParticleEffectHelper("name 1");
     Members.TowerRangEffectHelper2 = new ParticleEffectHelper("name 2");
     Orbwalking.Load();
     Members.Items = new List <string>();
     Members.Menu.AddToMainMenu();
     //Game.OnUpdate += ComboAction.Game_OnUpdate;
     Game.OnUpdate           += UpdateItems;
     Drawing.OnDraw          += ComboAction.Drawing_OnDraw;
     Unit.OnModifierAdded    += TeleportRangeHelper.Unit_OnModifierAdded;
     Unit.OnModifierRemoved  += TeleportRangeHelper.UnitOnOnModifierRemoved;
     GameDispatcher.OnUpdate += ReamBlink.OnUpdate;
     GameDispatcher.OnUpdate += ComboAction.OnUpdate;
     Player.OnExecuteOrder   += StopDummyRearming.OnExecuteOrder;
 }
Ejemplo n.º 10
0
 public static void Init()
 {
     Game.OnUpdate += Game_OnUpdate;
     Orbwalking.Load();
     if (rangeDisplay == null)
     {
         return;
     }
     rangeDisplay = null;
 }
Ejemplo n.º 11
0
 static void Main(string[] args)
 {
     Game.OnUpdate += Game_OnUpdate;
     Orbwalking.Load();
     if (rangeDisplay == null)
     {
         return;
     }
     rangeDisplay.Dispose();
     rangeDisplay = null;
 }
Ejemplo n.º 12
0
        private static void Load()
        {
            if (ObjectManager.LocalHero.ClassId != ClassId.CDOTA_Unit_Hero_Wisp)
            {
                return;
            }
            if (Members.MyHero == null || !Members.MyHero.IsValid)
            {
                Members.MyHero = ObjectManager.LocalHero;
                Members.MyTeam = ObjectManager.LocalHero.Team;
            }
            _attacker     = new Sleeper();
            _updater      = new Sleeper();
            _multiSleeper = new MultiSleeper();
            Orbwalking.Load();
            Members.Items = new List <string>();
            Members.Menu.AddToMainMenu();
            Game.OnUpdate                += Game_OnUpdate;
            Game.OnUpdate                += AutoSaver;
            Game.OnUpdate                += AutoTeaser;
            Game.OnIngameUpdate          += RelocateTpAbuseAction;
            Drawing.OnDraw               += Drawing_OnDraw;
            Entity.OnParticleEffectAdded += EntityOnOnParticleEffectAdded;

            /*Unit.OnModifierRemoved += HeroOnOnModifierRemoved;
             * Unit.OnModifierAdded += (sender, args) =>
             * {
             *  var mod = args.Modifier;
             *  if (mod.Name == "modifier_teleporting" && mod.TextureName == "wisp_relocate")
             *  {
             *      _tpStartingTime = Game.RawGameTime;
             *      UpdateManager.BeginInvoke(async () =>
             *      {
             *          var remTime = mod.RemainingTime;
             *          var ping = (int) Game.Ping;
             *          var time = 12000 + (int) (remTime * 1000f) - 3000 - ping;
             *          Printer.Print($"Time to w8 -> {time} (remTime -> {remTime}) (ping -> {ping}) (extra -> {GetDelayValue})");
             *          await Task.Delay((int) (time + GetDelayValue));
             *
             *          var tp = Members.MyHero.GetItemById(ItemId.item_tpscroll) ??
             *                   Members.MyHero.GetItemById(ItemId.item_recipe_travel_boots) ??
             *                   Members.MyHero.GetItemById(ItemId.item_recipe_travel_boots_2);
             *          if (tp != null && tp.CanBeCasted())
             *          {
             *              tp.UseAbility(_fountain.Position);
             *          }
             *      });
             *  }
             * };*/
            _fountain = ObjectManager.GetEntities <Unit>()
                        .FirstOrDefault(
                x => x != null && x.Team == ObjectManager.LocalHero.Team && x.ClassId == ClassId.CDOTA_Unit_Fountain);
        }
Ejemplo n.º 13
0
 /// <summary>
 ///     The initialization
 /// </summary>
 public static void Init()
 {
     Menu.AddItem(new MenuItem("chaseKey", "Chase Key").SetValue(new KeyBind(32, KeyBindType.Press)));
     Menu.AddItem(new MenuItem("kiteKey", "Kite Key").SetValue(new KeyBind('V', KeyBindType.Press)));
     Menu.AddItem(new MenuItem("farmKey", "Farm Key").SetValue(new KeyBind('B', KeyBindType.Press)));
     Menu.AddItem(
         new MenuItem("bonusWindup", "Bonus WindUp time on kitting").SetValue(new Slider(500, 100, 2000))
         .SetTooltip("Time between attacks in kitting mode"));
     Menu.AddToMainMenu();
     Game.OnUpdate += Game_OnUpdate;
     Orbwalking.Load();
 }
Ejemplo n.º 14
0
 static void Main(string[] args)
 {
     Menu.AddItem(new MenuItem("Combo Mode", "Combo Mode").SetValue(new KeyBind('T', KeyBindType.Press)));
     Menu.AddItem(new MenuItem("Target Type: ", "Target Type: ").SetValue(new StringList(new[] { "Target Selector", "Closest to mouse" }))).SetTooltip("On target selector you can get a better position while comboing. but closest to mouse is more easier");
     if (Menu.Item("Target Type: ").GetValue <StringList>().SelectedIndex == 0)
     {
         Menu.AddItem(new MenuItem("Target Select", "Target Select").SetValue(new KeyBind('G', KeyBindType.Press)));
     }
     Menu.AddItem(new MenuItem("orbwalk.minDistance", "Orbwalk min distance").SetValue(new Slider(250, 0, 700)).SetTooltip("the min distance to stop orbwalking and just auto attack."));
     Menu.AddToMainMenu();
     Game.OnWndProc += Exploding;
     Drawing.OnDraw += Target_esp;
     Orbwalking.Load();
 }
Ejemplo n.º 15
0
 /// <summary>
 ///     The initialization
 /// </summary>
 public static void Init()
 {
     Menu.AddItem(new MenuItem("chaseKey", "Chase Key").SetValue(new KeyBind(32, KeyBindType.Press)));
     Menu.AddItem(
         new MenuItem("allUnitsChaseKey", "All units Key").SetValue(new KeyBind('N', KeyBindType.Press)));
     Menu.AddItem(new MenuItem("kiteKey", "Kite Key").SetValue(new KeyBind('V', KeyBindType.Press)));
     Menu.AddItem(new MenuItem("farmKey", "Farm Key").SetValue(new KeyBind('B', KeyBindType.Press)));
     Menu.AddItem(
         new MenuItem("bonusWindup", "Bonus WindUp time on kitting").SetValue(new Slider(500, 100, 2000))
         .SetTooltip("Time between attacks in kitting mode"));
     Menu.AddToMainMenu();
     Orbwalking.Load();
     Events.OnLoad  += Events_OnLoad;
     Events.OnClose += Events_OnClose;
 }
Ejemplo n.º 16
0
        public static void OnLoad(object sender, EventArgs e)
        {
            if (Var.Loaded || ObjectManager.LocalHero == null)
            {
                return;
            }
            Var.Me = ObjectManager.LocalHero;
            Var.RadiusHeroParticleEffect = new Dictionary <string, ParticleEffect>();
            //Towers.TowerRange = new Dictionary<Entity, List<ParticleEffect>>();
            Towers.TowerLoad = false;
            Var.Target       = null;
            Var.Loaded       = true;
            Methods.ShowMeMore.RoshIsAlive = true;
            Var.Summons                   = new Dictionary <Unit, List <Unit> >();
            EnemyHeroes.Heroes            = new List <Hero>();
            EnemyHeroes.Illusions         = new List <Hero>();
            AllyHeroes.Heroes             = new List <Hero>();
            EnemyHeroes.UsableHeroes      = new Hero[] { };
            AllyHeroes.UsableHeroes       = new Hero[] { };
            AllyHeroes.AbilityDictionary  = new Dictionary <float, List <Ability> >();
            EnemyHeroes.AbilityDictionary = new Dictionary <float, List <Ability> >();
            AllyHeroes.ItemDictionary     = new Dictionary <float, List <Item> >();
            EnemyHeroes.ItemDictionary    = new Dictionary <float, List <Item> >();

            Methods.ShowMeMore.EffectForSpells = new Dictionary <Ability, ParticleEffect>();
            MainMenu.Load();
            MenuVar.ShowAttackRange = MainMenu.MenuSettings.Item("showatkrange");
            MenuVar.ShowExpRange    = MainMenu.MenuSettings.Item("expRange");

            Game.OnUpdate    += AllinOneMain.Game_OnUpdate;
            Game.OnUpdate    += OnUpdate.Update;
            Game.OnWndProc   += AllinOneMain.Game_OnWndProc;
            Game.OnWndProc   += Zoom.ChangeDistance;
            Game.OnFireEvent += Common.FireEvent;

            Drawing.OnDraw      += Draw.Drawing;
            Drawing.OnEndScene  += Draw.Drawing_OnEndScene;
            Drawing.OnPostReset += Draw.Drawing_OnPostReset;
            Drawing.OnPreReset  += Draw.Drawing_OnPreReset;

            ObjectManager.OnAddEntity += AllDrawing.ShowMeMore.Update;

            Orbwalking.Load();
            Draw.OnLoad();
            Zoom.Load();
            Game.PrintMessage("<font color='#3366cc'>AllinOne Loaded</font>", MessageType.LogMessage);
            Common.PrintEncolored("AllinOne Loaded", ConsoleColor.Yellow);
        }
Ejemplo n.º 17
0
 private static void Load()
 {
     if (ObjectManager.LocalHero.ClassId != Members.MyClassId)
     {
         return;
     }
     if (Members.MyHero == null || !Members.MyHero.IsValid)
     {
         Members.MyHero = ObjectManager.LocalHero;
         Members.MyTeam = ObjectManager.LocalHero.Team;
     }
     _updater = new Sleeper();
     Orbwalking.Load();
     Members.Items = new List <string>();
     Members.Menu.AddToMainMenu();
     Game.OnUpdate  += Action.Game_OnUpdate;
     Drawing.OnDraw += Action.OnDrawing;
     Game.OnUpdate  += UpdateItems;
     if (Members.Menu.Item("Range.Enable").GetValue <bool>())
     {
         Printer.Print("fist drawing!");
         DrawRange();
     }
 }
Ejemplo n.º 18
0
        private static void Main(string[] args)
        {
            Game.OnUpdate += Game_OnUpdate;
            Orbwalking.Load();
            Drawing.OnDraw += Drawing_OnDraw;

            /*Items*/
            Urn          = null;
            Meka         = null;
            Guardian     = null;
            Arcane       = null;
            LotusOrb     = null;
            Medallion    = null;
            SolarCrest   = null;
            GlimmerCape  = null;
            Pipe         = null;
            CrimsonGuard = null;

            loaded                = false;
            supportActive         = true;
            includeSaveSelf       = false;
            shouldCastLotusOrb    = false;
            shouldCastGlimmerCape = false;
        }