Exemple #1
0
        private void Game_OnUpdate(EventArgs args)
        {
            if (!Program.LagFree(0) || Player.IsRecalling() || Player.IsDead)
            {
                return;
            }

            foreach (var obj in HiddenObjList)
            {
                if (obj.endTime < Game.Time)
                {
                    HiddenObjList.Remove(obj);
                    return;
                }
            }

            if (Config.Item("autoBuy").GetValue <bool>() && Player.InFountainLS() && !ScryingOrb.IsOwned() && Player.Level >= 9 && Shop.IsOpen)
            {
                var itm = new EloBuddy.SDK.Item(ItemId.Farsight_Alteration);
                itm.Buy();
            }

            if (rengar && Player.HasBuff("rengarralertsound"))
            {
                CastVisionWards(Player.ServerPosition);
            }

            if (Vayne != null && Vayne.IsValidTargetLS(1000) && Vayne.HasBuff("vaynetumblefade"))
            {
                CastVisionWards(Vayne.ServerPosition);
            }

            AutoWardLogic();
        }
Exemple #2
0
        private static void ScanForItems()
        {
            _lastScanTick = (int)Game.Time * 1000;

            foreach (var item in Enum.GetValues(typeof(ItemIds)).Cast <int>())
            {
                var myItem = new EloBuddy.SDK.Item(item);

                if (myItem.IsOwned())
                {
                    LoadItem(item);
                }
                else
                {
                    UnLoadItem(item);
                }
            }
        }
Exemple #3
0
        private static void ScanForItems()
        {
            _lastScanTick = Core.GameTickCount;

            if (Summoners.Any(x => (x.Value != null) && x.Value.Item1.HasFlag(Summoner.Smite)))
            {
                LoadSummoners();
            }

            foreach (var item in Enum.GetValues(typeof(ItemIds)).Cast <int>())
            {
                var myItem = new EloBuddy.SDK.Item(item);

                if (myItem.IsOwned())
                {
                    LoadItem(item);
                }
                else
                {
                    UnLoadItem(item);
                }
            }
        }
Exemple #4
0
        static ItemHandler()
        {
            botrk      = new EloBuddy.SDK.Item(3153, 450);
            tiamat     = new EloBuddy.SDK.Item(3077, 400);
            hydra      = new EloBuddy.SDK.Item(3074, 400);
            randuins   = new EloBuddy.SDK.Item(3143, 500);
            odins      = new EloBuddy.SDK.Item(3180, 520);
            bilgewater = new EloBuddy.SDK.Item(3144, 450);
            hexgun     = new EloBuddy.SDK.Item(3146, 700);
            Dfg        = new EloBuddy.SDK.Item(3128, 750);
            Bft        = new EloBuddy.SDK.Item(3188, 750);
            sheen      = new EloBuddy.SDK.Item(3057, player.AttackRange);
            gaunlet    = new EloBuddy.SDK.Item(3025, player.AttackRange);
            trinity    = new EloBuddy.SDK.Item(3078, player.AttackRange);
            lich       = new EloBuddy.SDK.Item(3100, player.AttackRange);
            youmuu     = new EloBuddy.SDK.Item(3142, player.AttackRange);
            Qss        = new EloBuddy.SDK.Item(3140, 0);
            Mercurial  = new EloBuddy.SDK.Item(3139, 0);
            Dervish    = new EloBuddy.SDK.Item(3137, 0);
            Zhonya     = new EloBuddy.SDK.Item(3157, 0);
            Wooglet    = new EloBuddy.SDK.Item(3090, 0);

            locket = new EloBuddy.SDK.Item((int)ItemId.Locket_of_the_Iron_Solari, 0);
        }
Exemple #5
0
        public static void Load()
        {
            Totem      = new EloBuddy.SDK.Item((int)ItemId.Warding_Totem_Trinket);
            Botrk      = new EloBuddy.SDK.Item((int)ItemId.Blade_of_the_Ruined_King);
            Bilge      = new EloBuddy.SDK.Item((int)ItemId.Bilgewater_Cutlass);
            Hydra      = new EloBuddy.SDK.Item((int)ItemId.Ravenous_Hydra_Melee_Only);
            Titanic    = new EloBuddy.SDK.Item((int)ItemId.Titanic_Hydra);
            Tiamat     = new EloBuddy.SDK.Item((int)ItemId.Tiamat_Melee_Only);
            Queens     = new EloBuddy.SDK.Item((int)ItemId.Frost_Queens_Claim);
            Hextech    = new EloBuddy.SDK.Item((int)ItemId.Hextech_Gunblade);
            HextechGLP = new EloBuddy.SDK.Item((int)3030);
            HextechPro = new EloBuddy.SDK.Item((int)3152);
            You        = new EloBuddy.SDK.Item((int)ItemId.Youmuus_Ghostblade);
            Glory      = new EloBuddy.SDK.Item((int)ItemId.Righteous_Glory);
            Talis      = new EloBuddy.SDK.Item((int)ItemId.Talisman_of_Ascension);
            Rot        = new EloBuddy.SDK.Item((int)ItemId.ZzRot_Portal);
            Mountain   = new EloBuddy.SDK.Item((int)ItemId.Face_of_the_Mountain);
            Omen       = new EloBuddy.SDK.Item((int)ItemId.Randuins_Omen);
            Serpah     = new EloBuddy.SDK.Item((int)ItemId.Seraphs_Embrace);
            Solari     = new EloBuddy.SDK.Item((int)ItemId.Locket_of_the_Iron_Solari);
            Zhonyas    = new EloBuddy.SDK.Item((int)ItemId.Zhonyas_Hourglass);
            Mercurial  = new EloBuddy.SDK.Item((int)ItemId.Mercurial_Scimitar);
            Qss        = new EloBuddy.SDK.Item((int)ItemId.Quicksilver_Sash);
            HpPot      = new EloBuddy.SDK.Item((int)ItemId.Health_Potion);
            CorruptPot = new EloBuddy.SDK.Item((int)ItemId.Corrupting_Potion);
            HunterPot  = new EloBuddy.SDK.Item((int)ItemId.Hunters_Potion);
            RefillPot  = new EloBuddy.SDK.Item((int)ItemId.Refillable_Potion);
            Biscuit    = new EloBuddy.SDK.Item((int)ItemId.Total_Biscuit_of_Rejuvenation);

            //summoners
            var slot1 = ObjectManager.Player.GetSpellSlotFromName("summonerheal");

            if (slot1 != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot1, 600);
            }
            var slot2 = ObjectManager.Player.GetSpellSlotFromName("summonerbarrier");

            if (slot2 != SpellSlot.Unknown)
            {
                Barrier = new Spell.Active(slot2);
            }
            var slot3 = ObjectManager.Player.GetSpellSlotFromName("summonerdot");

            if (slot3 != SpellSlot.Unknown)
            {
                Ignite = new Spell.Targeted(slot3, 600);
            }
            var slot4 = ObjectManager.Player.GetSpellSlotFromName("summonerboost");

            if (slot4 != SpellSlot.Unknown)
            {
                Cleanse = new Spell.Active(slot4);
            }
            var slot5 = ObjectManager.Player.GetSpellSlotFromName("summonerexhaust");

            if (slot5 != SpellSlot.Unknown)
            {
                Exhaust = new Spell.Targeted(slot5, 650);
            }
            var slot6 = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(x => x.Name.ToLower().Contains("smite"));

            if (slot6 != null)
            {
                Smite = new Spell.Targeted(slot6.Slot, 570);
            }
            var slot7 = ObjectManager.Player.GetSpellSlotFromName("summonerflash");

            if (slot7 != SpellSlot.Unknown)
            {
                Flash = new Spell.Skillshot(slot7, 425, SkillShotType.Circular);
            }
        }
        public static void Init()
        {
            _qss = new EloBuddy.SDK.Item(ItemId.Quicksilver_Sash);
            _merc = new EloBuddy.SDK.Item(ItemId.Mercurial_Scimitar);
            _dervish = new EloBuddy.SDK.Item(ItemId.Dervish_Blade);
            _zhonya = new EloBuddy.SDK.Item(ItemId.Zhonyas_Hourglass);
            _wooglets = new EloBuddy.SDK.Item(ItemId.Wooglets_Witchcap);
            _mikael = new EloBuddy.SDK.Item(ItemId.Mikaels_Crucible);
            _fotm = new EloBuddy.SDK.Item(ItemId.Face_of_the_Mountain);
            _lotis = new EloBuddy.SDK.Item(ItemId.Locket_of_the_Iron_Solari);
            _seraphs = new EloBuddy.SDK.Item((ItemId)3040);
            _seraph2 = new EloBuddy.SDK.Item((ItemId)3048);

            var menu = MainActivator.Menu;

            OffensiveMenu = menu.AddSubMenu("Offensive Items", "offItems");
            OffensiveMenu.AddGroupLabel("Offensive Items");
            OffensiveMenu.AddLabel("(Activates With Combo)");
            OffensiveMenu.AddLabel("Blade Of The Ruined King");
            OffensiveMenu.Add("botrkManager", new CheckBox("Blade Of The Ruined King"));
            OffensiveMenu.Add("botrkManagerMinMeHP", new Slider("Self HP %", 70, 1));
            OffensiveMenu.Add("botrkManagerMinEnemyHP", new Slider("Enemy HP %", 99, 1));
            OffensiveMenu.AddLabel("Cutlass");
            OffensiveMenu.Add("cutlassManager", new CheckBox("Cutlass"));
            OffensiveMenu.Add("cutlassManagerMinMeHP", new Slider("Self HP %", 70,1));
            OffensiveMenu.Add("cutlassManagerMinEnemyHP", new Slider("Enemy HP %", 99,1));

            if (Player.Instance.IsMelee)
            {
                OffensiveMenu.AddLabel("Tiamat");
                OffensiveMenu.Add("tiamatManager", new CheckBox("Use Tiamat"));
                OffensiveMenu.Add("tiamatManagerMinMeHP", new Slider("Self HP %", 99 ,1));
                OffensiveMenu.Add("tiamatManagerMinEnemyHP", new Slider("Enemy HP %", 99, 1));
                OffensiveMenu.AddLabel("Hydra");
                OffensiveMenu.Add("ravenhydraManager", new CheckBox("Use Ravenous Hydra"));
                OffensiveMenu.Add("ravenhydraManagerMinMeHP", new Slider("Self HP %", 99, 1));
                OffensiveMenu.Add("ravenhydraManagerMinEnemyHP", new Slider("Enemy HP %", 99, 1));
                OffensiveMenu.Add("titanichydraManager", new CheckBox("Use Titanic Hydra"));
                OffensiveMenu.Add("titanichydraManagerMinMeHP", new Slider("Self HP %", 99, 1));
                OffensiveMenu.Add("titanichydraManagerMinEnemyHP", new Slider("Enemy HP %", 99, 1));
            }

            OffensiveMenu.AddLabel("Gunblade");
            OffensiveMenu.Add("gunbladeManager", new CheckBox("Use Gunblade"));
            OffensiveMenu.Add("gunbladeManagerMinMeHP", new Slider("Self HP %", 99, 1));
            OffensiveMenu.Add("gunbladeManagerMinEnemyHP", new Slider("Enemy HP %", 99, 1));
            OffensiveMenu.AddLabel("GhostBlade");
            OffensiveMenu.Add("ghostbladeManager", new CheckBox("Use GhostBlade"));
            OffensiveMenu.Add("ghostbladeManagerMinMeHP", new Slider("Self HP %", 70, 1));
            OffensiveMenu.Add("ghostbladeManagerMinEnemyHP", new Slider("Enemy HP %", 99, 1));

            PotionsMenu = menu.AddSubMenu("Potions", "potions");
            PotionsMenu.AddGroupLabel("Potion Items");
            PotionsMenu.Add("healthPotionManager", new CheckBox("Health Potion"));
            PotionsMenu.Add("healthPotionManagerMinMeHP", new Slider("HP %", 65));
            PotionsMenu.Add("biscuitPotionManager", new CheckBox("Biscuit"));
            PotionsMenu.Add("biscuitPotionManagerMinMeHP", new Slider("HP %", 65));
            PotionsMenu.Add("refillpotManager", new CheckBox("Refillable Potion"));
            PotionsMenu.Add("refillpotManagerMinMeHP", new Slider("HP %", 65));
            PotionsMenu.Add("corruptpotManager", new CheckBox("Corrupt Potion"));
            PotionsMenu.Add("corruptpotManagerMinMeHP", new Slider("HP %", 60));
            /*if (Player.Instance.ChampionName == champsnomana.FirstOrDefault())*/ PotionsMenu.Add("corruptpotManagerMinMeMana", new Slider("Mana %", 30));
            PotionsMenu.Add("huntersPotManager", new CheckBox("Hunter's Potion"));
            PotionsMenu.Add("huntersPotManagerMinMeHP", new Slider("HP %", 60));
            /*if (Player.Instance.ChampionName == champsnomana.FirstOrDefault())*/ PotionsMenu.Add("huntersPotManagerMinMeMana", new Slider("Mana %", 30));

            Cleansers = menu.AddSubMenu("Cleansers", "cleansers");
            Cleansers.Add("useCleansers", new CheckBox("Use Cleansers"));
            Cleansers.AddGroupLabel("Cleansers Settings");
            Cleansers.Add("polymorphActivator", new CheckBox("PolyMorph"));
            Cleansers.Add("stunActivator", new CheckBox("Stun"));
            Cleansers.Add("tauntActivator", new CheckBox("Taunt"));
            Cleansers.Add("knockupActivator", new CheckBox("Knock-up"));
            Cleansers.Add("fearActivator", new CheckBox("Fear"));
            Cleansers.Add("fleeActivator", new CheckBox("Flee"));
            Cleansers.Add("rootActivator", new CheckBox("Root"));
            Cleansers.Add("suppressionActivator", new CheckBox("Suppression"));
            Cleansers.Add("charmActivator", new CheckBox("Charm"));
            Cleansers.Add("poisonActivator", new CheckBox("Poison",false));
            Cleansers.Add("blindActivator", new CheckBox("Blind",false));
            Cleansers.Add("silenceActivator", new CheckBox("Silence", false));
            Cleansers.Add("slowActivator", new CheckBox("Slow",false));
            Cleansers.AddSeparator();
            Cleansers.AddLabel("Cleanse Items / Summoner Spell");
            Cleansers.Add("cleanserscombo", new CheckBox("Combo Only", false));
            Cleansers.Add("mikaelsCleanser", new CheckBox("Mikael's Cruicble"));
            Cleansers.Add("mercurialScimitarCleanser", new CheckBox("Mercurial Scimitar"));
            Cleansers.Add("quicksilverSashCleanser", new CheckBox("Quicksilver Sash"));
            if (Game.MapId == GameMapId.HowlingAbyss || Game.MapId == GameMapId.CrystalScar)
                Cleansers.Add("dervishCleanser", new CheckBox("Dervish Blade"));
            Cleansers.Add("summonerSpellCleanse", new CheckBox("Summoner Cleanse"));
            Cleansers.AddSeparator();
            Cleansers.AddLabel("Humanizer");
            Cleansers.Add("qsshuman", new Slider("Delay QSS (Miliseconds)", 400, 0, 2000));
            Cleanse = SummonerSpells.HasSpell("summonerboost") ? new Spell.Active(Player.Instance.GetSpellSlotFromName("summonerboost"), int.MaxValue) : null;

            DefenceMenu = MainActivator.Menu.AddSubMenu("Defensive Items", "defmenuactiv");

            DefenceMenu.AddGroupLabel("Shield/Heal Items (self)");
            DefenceMenu.Add("Seraphs_Embrace", new CheckBox("Serahph's Embrace"));

            DefenceMenu.AddGroupLabel("Shield/Heal Items (ally/self)");
            DefenceMenu.Add("Mikaels_Crucible_Heal", new CheckBox("Mikaels Crucible"));
            DefenceMenu.AddLabel("Locket of the Iron Solari");
            DefenceMenu.Add("Locket_of_the_Iron_Solari", new CheckBox("Locket of the Iron Solari"));
            DefenceMenu.AddSeparator(0);
            DefenceMenu.Add("Locket_of_the_Iron_Solari_ally", new CheckBox("Ally"));
            DefenceMenu.Add("Locket_of_the_Iron_Solari_self", new CheckBox("Self"));
            DefenceMenu.AddLabel("Face of the Mountain");
            DefenceMenu.Add("Face_of_the_Mountain", new CheckBox("Face of the Mountain"));
            DefenceMenu.AddSeparator(0);
            DefenceMenu.Add("Face_of_the_Mountain_ally", new CheckBox("Ally"));
            DefenceMenu.Add("Face_of_the_Mountain_self", new CheckBox("Self"));

            DefenceMenu.AddGroupLabel("Cleanse Items (Dangerous Spells)");
            DefenceMenu.Add("Quicksilver_Sash", new CheckBox("Quicksilver Sash",false));
            DefenceMenu.Add("Dervish_Blade", new CheckBox("Dervish Blade",false));
            DefenceMenu.Add("Mercurial_Scimitar", new CheckBox("Mercurial Scimitar",false));
            DefenceMenu.Add("Mikaels_Crucible_Cleanse", new CheckBox("Mikaels Crucible"));

            DefenceMenu.AddGroupLabel("Zhonyas Items");
            DefenceMenu.Add("Zhonyas_Hourglass", new CheckBox("Zhonyas Hourglass"));
            DefenceMenu.Add("Wooglets_Witchcap", new CheckBox("Wooglets Witchcap"));

            DefenceMenu.AddGroupLabel("Dangerous Spells");
            foreach (var dangerousSpell in DangerousSpells.Spells.Where(a => EntityManager.Heroes.Enemies.Any(b => b.Hero == a.Champion)))
            {
                DefenceMenu.Add(dangerousSpell.Champion.ToString() + dangerousSpell.Slot,
                    new CheckBox(dangerousSpell.Champion + ": " + dangerousSpell.Slot + (dangerousSpell.IsCleanseable ? " (Cleanseable)" : ""), dangerousSpell.Stats));
            }

            Game.OnTick += Game_OnTick;
            Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnSpellCast;

            if(Player.Instance.Hero == Champion.Riven) Chat.Print("Tiamat/Hydra Disabled For Riven", Color.LimeGreen);
        }
Exemple #7
0
        public static void Load()
        {
            Totem = new EloBuddy.SDK.Item((int)ItemId.Warding_Totem_Trinket);
            Botrk = new EloBuddy.SDK.Item((int)ItemId.Blade_of_the_Ruined_King);
            Bilge = new EloBuddy.SDK.Item((int)ItemId.Bilgewater_Cutlass);
            Hydra = new EloBuddy.SDK.Item((int)ItemId.Ravenous_Hydra_Melee_Only);
            Titanic = new EloBuddy.SDK.Item((int)ItemId.Titanic_Hydra);
            Tiamat = new EloBuddy.SDK.Item((int)ItemId.Tiamat_Melee_Only);
            Queens = new EloBuddy.SDK.Item((int)ItemId.Frost_Queens_Claim);
            Hextech = new EloBuddy.SDK.Item((int)ItemId.Hextech_Gunblade);
            HextechGLP = new EloBuddy.SDK.Item((int)3030);
            HextechPro = new EloBuddy.SDK.Item((int)3152);
            You = new EloBuddy.SDK.Item((int)ItemId.Youmuus_Ghostblade);
            Glory = new EloBuddy.SDK.Item((int)ItemId.Righteous_Glory);
            Talis = new EloBuddy.SDK.Item((int)ItemId.Talisman_of_Ascension);
            Rot = new EloBuddy.SDK.Item((int)ItemId.ZzRot_Portal);
            Mountain = new EloBuddy.SDK.Item((int)ItemId.Face_of_the_Mountain);
            Omen = new EloBuddy.SDK.Item((int)ItemId.Randuins_Omen);
            Serpah = new EloBuddy.SDK.Item((int)ItemId.Seraphs_Embrace);
            Solari = new EloBuddy.SDK.Item((int)ItemId.Locket_of_the_Iron_Solari);
            Zhonyas = new EloBuddy.SDK.Item((int)ItemId.Zhonyas_Hourglass);
            Mercurial = new EloBuddy.SDK.Item((int)ItemId.Mercurial_Scimitar);
            Qss = new EloBuddy.SDK.Item((int)ItemId.Quicksilver_Sash);
            HpPot = new EloBuddy.SDK.Item((int)ItemId.Health_Potion);
            CorruptPot = new EloBuddy.SDK.Item((int)ItemId.Corrupting_Potion);
            HunterPot = new EloBuddy.SDK.Item((int)ItemId.Hunters_Potion);
            RefillPot = new EloBuddy.SDK.Item((int)ItemId.Refillable_Potion);
            Biscuit = new EloBuddy.SDK.Item((int)ItemId.Total_Biscuit_of_Rejuvenation);

            //summoners
            var slot1 = ObjectManager.Player.GetSpellSlotFromName("summonerheal");
            if (slot1 != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot1, 600);
            }
            var slot2 = ObjectManager.Player.GetSpellSlotFromName("summonerbarrier");
            if (slot2 != SpellSlot.Unknown)
            {
                Barrier = new Spell.Active(slot2);
            }
            var slot3 = ObjectManager.Player.GetSpellSlotFromName("summonerdot");
            if (slot3 != SpellSlot.Unknown)
            {
                Ignite = new Spell.Targeted(slot3, 600);
            }
            var slot4 = ObjectManager.Player.GetSpellSlotFromName("summonerboost");
            if (slot4 != SpellSlot.Unknown)
            {
                Cleanse = new Spell.Active(slot4);
            }
            var slot5 = ObjectManager.Player.GetSpellSlotFromName("summonerexhaust");
            if (slot5 != SpellSlot.Unknown)
            {
                Exhaust = new Spell.Targeted(slot5, 650);
            }
            var slot6 = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(x => x.Name.ToLower().Contains("smite"));
            if (slot6 != null)
            {
                Smite = new Spell.Targeted(slot6.Slot, 570);
            }
            var slot7 = ObjectManager.Player.GetSpellSlotFromName("summonerflash");
            if (slot7 != SpellSlot.Unknown)
            {
                Flash = new Spell.Skillshot(slot7, 425, SkillShotType.Circular);
            }
        }