コード例 #1
0
ファイル: Amumu.cs プロジェクト: Enochen/AIBot
 public static void InitSpells()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 1090, SkillShotType.Linear, 650, 2000, 70);
     W = new Spell.Active(SpellSlot.W, 295);
     E = new Spell.Active(SpellSlot.E, 340);
     R = new Spell.Active(SpellSlot.R, 540);
 }
コード例 #2
0
ファイル: SpellManager.cs プロジェクト: lolscripts/Ninja
        static SpellManager()
        {
            Q = new Spell.Active(SpellSlot.Q, 125);
            W = new Spell.Skillshot(SpellSlot.W, 585, SkillShotType.Circular, 250, int.MaxValue, 200);
            E = new Spell.Targeted(SpellSlot.E, 540);
            R = new Spell.Targeted(SpellSlot.R, 835);

            if (Utility.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner1).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner1, 570);
            }
            if (Utility.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner2).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner2, 570);
            }
            if (Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner1)
                .Name.Equals("summonerdot", StringComparison.CurrentCultureIgnoreCase))
            {
                Ignite = new Spell.Targeted(SpellSlot.Summoner1, 600);
            }
            if (Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner2)
                .Name.Equals("summonerdot", StringComparison.CurrentCultureIgnoreCase))
            {
                Ignite = new Spell.Targeted(SpellSlot.Summoner2, 600);
            }
        }
コード例 #3
0
ファイル: SpellManager.cs プロジェクト: Fulockster/EB
 static SpellManager()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 1070, SkillShotType.Linear, 250, 2000, 85);
     W = new Spell.Active(SpellSlot.W, 295);
     E = new Spell.Active(SpellSlot.E, 330);
     R = new Spell.Active(SpellSlot.R, 528);
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: Toyota7/EloBuddy
 static DemSpells()
 {
     Q = new Spell.Active(SpellSlot.Q);
     W = new Spell.Active(SpellSlot.W);
     E = new Spell.Targeted(SpellSlot.E, 325);
     R = new Spell.Active(SpellSlot.R, 300);
 }
コード例 #5
0
ファイル: SpellManager.cs プロジェクト: hao1630/KickAss
 static SpellManager()
 {
     Q = new Spell.Active(SpellSlot.Q, (uint)Player.Instance.GetAutoAttackRange());
     W = new Spell.Active(SpellSlot.W, (uint)Player.Instance.GetAutoAttackRange());
     E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear, 250, 1400, 130);
     R = new Spell.Skillshot(SpellSlot.R, int.MaxValue, SkillShotType.Linear, 400, 2000, 160);
 }
コード例 #6
0
 private static void SpellsItems()
 {
     Q = new Spell.Active(SpellSlot.Q, 300);
     Q2 = new Spell.Skillshot(SpellSlot.Q, 300, SkillShotType.Linear);
     W = new Spell.Active(SpellSlot.W);
     E = new Spell.Targeted(SpellSlot.E, 590);
     E2 = new Spell.Skillshot(
         SpellSlot.E,
         (uint)(590 + ObjectManager.Player.BoundingRadius),
         SkillShotType.Linear,
         250,
         1200);
     R = new Spell.Active(SpellSlot.R);
     var slot = Variables._Player.GetSpellSlotFromName("summonerheal");
     if (slot != SpellSlot.Unknown)
     {
         Heal = new Spell.Active(slot, 600);
     }
     totem = new Item((int)ItemId.Warding_Totem_Trinket);
     Qss = new Item((int)ItemId.Quicksilver_Sash);
     Mercurial = new Item((int)ItemId.Mercurial_Scimitar);
     HPPot = new Item(2003);
     Biscuit = new Item(2010);
     zzrot = new Item(ItemId.ZzRot_Portal, 400);
 }
コード例 #7
0
ファイル: Program.cs プロジェクト: Connerthorpe/EloBuddy
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Variables._Player.Hero != Champion.Draven)
            {
                return;
            }

            Q = new Spell.Active(SpellSlot.Q, (uint) Variables._Player.GetAutoAttackRange());
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear);
            R = new Spell.Skillshot(SpellSlot.R, 2000, SkillShotType.Linear);

            var slot = Variables._Player.GetSpellSlotFromName("summonerdot");
            if (slot != SpellSlot.Unknown)
            {
                Ignite = new Spell.Targeted(slot, 600);
            }

            Variables.QReticles = new List<Variables.QRecticle>();

            Qss = new Item((int) ItemId.Quicksilver_Sash);
            Mercurial = new Item((int) ItemId.Mercurial_Scimitar);

            Variables.abilitySequence = new[] { 1, 3, 2, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2 };

            EventManager.load();
            MenuManager.Load();
        }
コード例 #8
0
ファイル: SpellManager.cs プロジェクト: hao1630/KickAss
 static SpellManager()
 {
     Q = new Spell.Targeted(SpellSlot.Q, 700);
     W = new Spell.Active(SpellSlot.W, (uint)Player.Instance.GetAutoAttackRange());
     E = new Spell.Active(SpellSlot.E, 350);
     R = new Spell.Active(SpellSlot.R, 600);
 }
コード例 #9
0
ファイル: SpellManager.cs プロジェクト: xTeKillax/EloBuddy
 static SpellManager()
 {
     Q = new Spell.Targeted(SpellSlot.Q, 600);
     W = new Spell.Skillshot(SpellSlot.W, 700, EloBuddy.SDK.Enumerations.SkillShotType.Circular);
     E = new Spell.Active(SpellSlot.E, 325);
     R = new Spell.Targeted(SpellSlot.R, 700);
 }
コード例 #10
0
ファイル: SpellManager.cs プロジェクト: hao1630/KickAss
 static SpellManager()
 {
     Q = new Spell.Targeted(SpellSlot.Q, 625);
     W = new Spell.Skillshot(SpellSlot.W, 625, SkillShotType.Cone, 250, int.MaxValue, 50);
     E = new Spell.Active(SpellSlot.E, 0);
     R = new Spell.Skillshot(SpellSlot.R, 600, SkillShotType.Circular, 250, int.MaxValue, 290);
 }
コード例 #11
0
ファイル: SpellManager.cs プロジェクト: lolscripts/Ninja
        static SpellManager()
        {
            Q = new Spell.Chargeable(SpellSlot.Q, 250, 875, 1250, 0, 1400, 55);
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Active(SpellSlot.E, 600);
            E2 = new Spell.Skillshot(SpellSlot.E, 600, SkillShotType.Cone);
            R = new Spell.Targeted(SpellSlot.R, 800);
            var FlashSlot = ObjectManager.Player.GetSpellSlotFromName("summonerflash");
            Flash = new Spell.Skillshot(FlashSlot, 450, SkillShotType.Linear, 0, int.MaxValue, 55);
            
            Q.AllowedCollisionCount = int.MaxValue;
            Flash.AllowedCollisionCount = int.MaxValue;

            //VodkaSmite

            if (SmiteDamage.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner1).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner1, 570);
                return;
            }
            if (SmiteDamage.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner2).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner2, 570);
            }
        }
コード例 #12
0
ファイル: MyActivator.cs プロジェクト: FireBuddy/EloBuddy-2
 public static void LoadSpells()
 {
     if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Contains("dot"))
         Ignite = new Spell.Targeted(SpellSlot.Summoner1, 580);
     else if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Contains("dot"))
         Ignite = new Spell.Targeted(SpellSlot.Summoner2, 580);
     if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Contains("barrier"))
         Barrier = new Spell.Active(SpellSlot.Summoner1);
     else if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Contains("barrier"))
         Barrier = new Spell.Active(SpellSlot.Summoner2);
     if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Contains("heal"))
         Heal = new Spell.Active(SpellSlot.Summoner1);
     else if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Contains("heal"))
         Heal = new Spell.Active(SpellSlot.Summoner2);
     Youmus = new Item((int)ItemId.Youmuus_Ghostblade);
     Botrk = new Item((int)ItemId.Blade_of_the_Ruined_King);
     Bilgewater = new Item((int)ItemId.Bilgewater_Cutlass);
     Qss = new Item((int)ItemId.Quicksilver_Sash);
     Mercurial = new Item((int)ItemId.Mercurial_Scimitar);
     HPPot = new Item(2003);
     Biscuit = new Item(2010);
     RefillPot = new Item(2031);
     HuntersPot = new Item(2032);
     CorruptPot = new Item(2033);
     PinkVision = new Item(2043, WardRange);
     GreaterStealthTotem = new Item(3361, WardRange);
     GreaterVisionTotem = new Item(3362, WardRange);
     FarsightAlteration = new Item(3363, WardRange);
     WardingTotem = new Item(3340, WardRange);
     Zhonya = new Item(3157);
 }
コード例 #13
0
ファイル: SpellManager.cs プロジェクト: hao1630/KickAss
 static SpellManager()
 {
     Q = new Spell.Targeted(SpellSlot.Q, 750);
     W = new Spell.Active(SpellSlot.W, 375);
     E = new Spell.Targeted(SpellSlot.E, 625);
     R = new Spell.Active(SpellSlot.R, 375);
 }
コード例 #14
0
ファイル: Spells.cs プロジェクト: Enelx/EloBuddy
        public static void Initialize()
        {
            Q = new Spell.Skillshot(SpellSlot.Q, (uint) Player.Instance.Spellbook.GetSpell(SpellSlot.Q).SData.CastRange,
                SkillShotType.Linear)
            {
                AllowedCollisionCount = int.MaxValue
            };

            W = new Spell.Active(SpellSlot.W,
                70 + (uint) Player.Instance.BoundingRadius +
                (uint) (Player.Instance.HasBuff("RivenFengShuiEngine") ? 195 : 120));

            E = new Spell.Skillshot(SpellSlot.E, 325 + (uint) Player.Instance.AttackRange,
                SkillShotType.Linear)
            {
                AllowedCollisionCount = int.MaxValue
            };

            R1 = new Spell.Active(SpellSlot.R);

            R2 = new Spell.Skillshot(SpellSlot.R, 900, SkillShotType.Cone, 250, 1600, 125)
            {
                AllowedCollisionCount = int.MaxValue
            };

            var slot = Player.Instance.GetSpellSlotFromName("summonerflash");

            if (slot != SpellSlot.Unknown)
            {
                Flash = new Spell.Skillshot(slot, 425, SkillShotType.Linear);
            }
        }
コード例 #15
0
 public static void Initialize()
 {
     #region Ignite
     var ignite = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("summonerdot"));
     if (ignite != null)
     {
         Ignite = new Spell.Targeted(ignite.Slot, 600);
         PlayerHasIgnite = true;
     }
     #endregion
     #region Heal
     var heal = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("summonerheal"));
     if (heal != null)
     {
         Heal = new Spell.Active(heal.Slot, 850);
         PlayerHasHeal = true;
     }
     #endregion
     #region Cleanse
     var cleanse = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("summonerboost"));
     if (cleanse != null)
     {
         Cleanse = new Spell.Active(cleanse.Slot);
         PlayerHasCleanse = true;
     }
     #endregion
     #region Exhaust
     var exhaust = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("summonerexhaust"));
     if (exhaust != null)
     {
         Exhaust = new Spell.Targeted(exhaust.Slot, 650);
         PlayerHasExhaust = true;
     }
     #endregion
     #region Barrier
     var barrier = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("summonerbarrier"));
     if (barrier != null)
     {
         Barrier = new Spell.Active(barrier.Slot);
         PlayerHasBarrier = true;
     }
     #endregion
     #region Snowball
     var snowball = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("summonersnowball"));
     if (snowball != null)
     {
         Snowball = new Spell.Skillshot(snowball.Slot, (uint)snowball.SData.CastRange - 50, SkillShotType.Linear, 250, 1500, (int)snowball.SData.LineWidth);
         PlayerHasSnowball = true;
     }
     #endregion
     #region Smite
     var smite = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("summonersmite"));
     if (smite != null)
     {
         Smite = new Spell.Targeted(smite.Slot, 570);
         PlayerHasSmite = true;
         Core.Spells.Smite.Initialize();
     }
     #endregion
 }
コード例 #16
0
ファイル: MyActivator.cs プロジェクト: iRaxeBackup/EloBuddy
        public static void loadSpells()
        {
            if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Contains("smite"))
                smite = new Spell.Targeted(SpellSlot.Summoner1, 570);
            else if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Contains("smite"))
                smite = new Spell.Targeted(SpellSlot.Summoner2, 570);

            if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Contains("dot"))
                ignite = new Spell.Targeted(SpellSlot.Summoner1, 580);
            else if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Contains("dot"))
                ignite = new Spell.Targeted(SpellSlot.Summoner2, 580);

            if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Contains("heal"))
                heal = new Spell.Active(SpellSlot.Summoner1);
            else if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Contains("heal"))
                heal = new Spell.Active(SpellSlot.Summoner2);
            talisman = new Item((int)ItemId.Talisman_of_Ascension);
            randuin = new Item((int)ItemId.Randuins_Omen);
            glory = new Item((int)ItemId.Righteous_Glory);
            fotmountain = new Item((int)ItemId.Face_of_the_Mountain);
            mikael = new Item((int)ItemId.Mikaels_Crucible);
            ironsolari = new Item((int)ItemId.Locket_of_the_Iron_Solari);
            youmus = new Item((int)ItemId.Youmuus_Ghostblade);
            botrk = new Item((int)ItemId.Blade_of_the_Ruined_King);
            bilgewater = new Item((int)ItemId.Bilgewater_Cutlass);
        }
コード例 #17
0
ファイル: Program.cs プロジェクト: TristeMyth/Triste
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Variables._Player.Hero != Champion.Yasuo)
            {
                return;
            }

            Q = new Spell.Skillshot(SpellSlot.Q, 450, EloBuddy.SDK.Enumerations.SkillShotType.Linear, 250, Variables.GetNewQSpeed(), 1)
            {
                AllowedCollisionCount = int.MaxValue
            };
            Q3 = new Spell.Skillshot(SpellSlot.Q, 900, EloBuddy.SDK.Enumerations.SkillShotType.Linear, 300, 1200, 50)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Skillshot(SpellSlot.W, 400, EloBuddy.SDK.Enumerations.SkillShotType.Cone);
            E = new Spell.Targeted(SpellSlot.E, 475);
            R = new Spell.Active(SpellSlot.R, 1200);

            var slot = Variables._Player.GetSpellSlotFromName("summonerdot");
            if (slot != SpellSlot.Unknown)
            {
                Ignite = new Spell.Targeted(slot, 600);
            }

            Qss = new Item((int) ItemId.Quicksilver_Sash);
            Mercurial = new Item((int) ItemId.Mercurial_Scimitar);

                Variables.abilitySequence = new int[] {1, 3, 2, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2};

            EventManager.load();
            MenuManager.Load();
        }
コード例 #18
0
ファイル: AutoWalker.cs プロジェクト: KoalaHuman/EloBuddy-2
        static AutoWalker()
        {
            myNexus = ObjectManager.Get<Obj_HQ>().First(n => n.IsAlly);
            enemyNexus = ObjectManager.Get<Obj_HQ>().First(n => n.IsEnemy);
            enemyLazer = ObjectManager.Get<Obj_AI_Turret>().FirstOrDefault(tur => tur.IsEnemy && tur.GetLane() == Lane.Spawn);
            p = ObjectManager.Player;

            if (p.Spellbook.GetSpell(SpellSlot.Summoner1).Name == "summonerheal")
            {
                Heal = new Spell.Active(SpellSlot.Summoner1);
            }
            if (p.Spellbook.GetSpell(SpellSlot.Summoner2).Name == "summonerheal")
            {
                Heal = new Spell.Active(SpellSlot.Summoner2);
            }
            if (p.Spellbook.GetSpell(SpellSlot.Summoner1).Name == "summonerhaste")
            {
                Ghost = new Spell.Active(SpellSlot.Summoner1);
            }
            if (p.Spellbook.GetSpell(SpellSlot.Summoner2).Name == "summonerhaste")
            {
                Ghost = new Spell.Active(SpellSlot.Summoner2);
            }

            target = ObjectManager.Player.Position;
            Orbwalker.DisableMovement = true;
            Orbwalker.OnPreAttack += Orbwalker_OnPreAttack;
            Game.OnTick += OnTick;
            if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
                Drawing.OnDraw += Drawing_OnDraw;
        }
コード例 #19
0
ファイル: MyActivator.cs プロジェクト: FireBuddy/Elobuddy-1
 public static void LoadSpells()
 {
     if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Contains("dot"))
         Ignite = new Spell.Targeted(SpellSlot.Summoner1, 580);
     else if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Contains("dot"))
         Ignite = new Spell.Targeted(SpellSlot.Summoner2, 580);
     if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Contains("barrier"))
         Barrier = new Spell.Active(SpellSlot.Summoner1);
     else if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Contains("barrier"))
         Barrier = new Spell.Active(SpellSlot.Summoner2);
     var slot = ObjectManager.Player.GetSpellSlotFromName("summonerheal");
     if (slot != SpellSlot.Unknown)
     {
         Heal = new Spell.Active(slot, 600);
     }
     Youmus = new Item((int) ItemId.Youmuus_Ghostblade);
     Botrk = new Item((int) ItemId.Blade_of_the_Ruined_King);
     Bilgewater = new Item((int) ItemId.Bilgewater_Cutlass);
     Qss = new Item((int) ItemId.Quicksilver_Sash);
     Mercurial = new Item((int) ItemId.Mercurial_Scimitar);
     HpPot = new Item(2003);
     Biscuit = new Item(2010);
     RefillPot = new Item(2031);
     HuntersPot = new Item(2032);
     CorruptPot = new Item(2033);
 }
コード例 #20
0
ファイル: SpellManager.cs プロジェクト: hao1630/KickAss
 static SpellManager()
 {
     Q = new Spell.Active(SpellSlot.Q, 425);
     W = new Spell.Active(SpellSlot.W, 200);
     E = new Spell.Skillshot(SpellSlot.E, 550, SkillShotType.Cone, 250, int.MaxValue, 60);
     R = new Spell.Targeted(SpellSlot.R, 460);
 }
コード例 #21
0
ファイル: SpellManager.cs プロジェクト: hao1630/KickAss
 static SpellManager()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 1100, SkillShotType.Linear, 250, 2000, 50);
     W = new Spell.Active(SpellSlot.W, 300);
     E = new Spell.Active(SpellSlot.E, 350);
     R = new Spell.Active(SpellSlot.R, 550);
 }
コード例 #22
0
ファイル: SpellManager.cs プロジェクト: hao1630/KickAss
 static SpellManager()
 {
     Q = new Spell.Targeted(SpellSlot.Q, 125);
     W = new Spell.Targeted(SpellSlot.W, 700);
     E = new Spell.Targeted(SpellSlot.E, 550);
     R = new Spell.Active(SpellSlot.R, 650);
 }
コード例 #23
0
ファイル: SpellManager.cs プロジェクト: iRaxeBackup/EloBuddy
 static SpellManager()
 {
     Q = new Spell.Active(SpellSlot.Q, 550);
     W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 450, int.MaxValue, 180);
     E = new Spell.Targeted(SpellSlot.E, 550);
     R = new Spell.Targeted(SpellSlot.R, 550);
 }
コード例 #24
0
ファイル: Program.cs プロジェクト: Lottsz/LTTS-Lotts
        public static void Game_OnGameStart(EventArgs args)
        {
            Chat.Print("<font color='#1D84B4'>LTTS-Kassadin: </font> <font color ='#FFFFFF'>Loading...</font> ");
            Chat.Print("<font color='#1D84B4'>LTTS-Kassadin: </font> <font color ='#FFFFFF'>Loading complete.</font> ");

            if(MyPlayer.ChampionName != "Kassadin")
            {
                Chat.Print("<font color='#1D84B4'>LTTS-Kassadin:</font> <font color ='#FFFFFF'> This champion is not supported.</font>");
            }

            Q = new Spell.Targeted(SpellSlot.Q, 650);
            W = new Spell.Active(SpellSlot.W, 200);
            E = new Spell.Skillshot(SpellSlot.E, 700, SkillShotType.Cone, 250, int.MaxValue, 80);
            R = new Spell.Skillshot(SpellSlot.R, 500, SkillShotType.Circular, 250, int.MaxValue, 150);

            Menu = MainMenu.AddMenu("LTTS Kassadin", "MainMenuLTS");
            Menu.AddGroupLabel("LTTS Kassadin - Version " + Version);
            Menu.AddLabel("This is my first addon, any bugs please report for me. Enjoy it.");

            DrawMenu = Menu.AddSubMenu("Draws Menu", "DrawMenuLTS");
            DrawMenu.Add("DrawQ", new CheckBox("Draw Q Range", false));
            DrawMenu.Add("DrawW", new CheckBox("Draw W Range", false));
            DrawMenu.Add("DrawE", new CheckBox("Draw E Range", false));
            DrawMenu.Add("DrawR", new CheckBox("Draw R Range", false));

            FarmMenu = Menu.AddSubMenu("Farm Menu", "FarmMenuLTS");
            FarmMenu.AddGroupLabel("LaneClear");
            FarmMenu.Add("UseQLC", new CheckBox("Use Q", true));
            FarmMenu.Add("UseWLC", new CheckBox("Use W", true));
            FarmMenu.Add("UseELC", new CheckBox("Use E", true));
            FarmMenu.AddGroupLabel("LastHit");
            FarmMenu.Add("UseQLH", new CheckBox("Use Q", true));
            FarmMenu.Add("UseWLH", new CheckBox("Use W", true));
            FarmMenu.Add("UseELH", new CheckBox("Use E", true));
        }
コード例 #25
0
ファイル: SpellManager.cs プロジェクト: satuga/Hu3Series
 public static void Init()
 {
     Q = new Spell.Active(SpellSlot.Q, 550);
     W = new Spell.Skillshot(SpellSlot.W, 825, SkillShotType.Circular, 250, int.MaxValue, 80);
     E = new Spell.Targeted(SpellSlot.E, 550);
     R = new Spell.Targeted(SpellSlot.R, 550);
 }
コード例 #26
0
 static SpellManager()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 980, SkillShotType.Linear, 260, 1850, 70);
     W = new Spell.Active(SpellSlot.W, 260);
     E = new Spell.Active(SpellSlot.E, (uint)Player.Instance.AttackRange + (uint)Player.Instance.BoundingRadius);
     R = new Spell.Active(SpellSlot.R);
 }
コード例 #27
0
ファイル: Blitzcrank.cs プロジェクト: BEEBEEISADOG/EloBuddy-4
 public void InitializeSpells()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 980, SkillShotType.Linear, (int)250f, (int)1800f, (int)70f);
     W = new Spell.Active(SpellSlot.W, 0);
     E = new Spell.Active(SpellSlot.E, 150);
     R = new Spell.Active(SpellSlot.R, 550);
 }
コード例 #28
0
ファイル: Program.cs プロジェクト: Toyota7/EloBuddy
 static DemSpells()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 800, SkillShotType.Linear, 100, 2000, 70);
     WGRAB = new Spell.Active(SpellSlot.W);
     W1 = new Spell.Targeted(SpellSlot.W, 330);
     W2 = new Spell.Skillshot(SpellSlot.W, 650, SkillShotType.Linear, 100, 900, 75);
 }
コード例 #29
0
ファイル: Program.cs プロジェクト: Toyota7/EloBuddy
 static DemSpells()
 {
     Q = new Spell.Skillshot(SpellSlot.Q, 1150, SkillShotType.Linear, 250, 2100, 40);
     W = new Spell.Targeted(SpellSlot.W, 5000);
     E = new Spell.Active(SpellSlot.E, 1000);
     R = new Spell.Active(SpellSlot.R, 1100);
 }
コード例 #30
0
ファイル: SpellManager.cs プロジェクト: drunkenninja/Elobuddy
        static SpellManager()
        {
            // Initialize spells
            Q = new Spell.Targeted(SpellSlot.Q, 400);
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Active(SpellSlot.E, 1500);
            R = new Spell.Targeted(SpellSlot.R, 700);

            Recall = new Spell.Active(SpellSlot.Recall);

            if (Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner1).Name.Equals("summonerdot", StringComparison.CurrentCultureIgnoreCase))
            {
                Ignite = new Spell.Targeted(SpellSlot.Summoner1, 600);
            }
            else if ((Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner2).Name.Equals("summonerdot", StringComparison.CurrentCultureIgnoreCase)))
            {
                Ignite = new Spell.Targeted(SpellSlot.Summoner2, 600);
            }
            if (Util.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner1).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner1, 570);
            }
            else if (Util.SmiteNames.ToList().Contains(Player.Instance.Spellbook.GetSpell(SpellSlot.Summoner2).Name))
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner2, 570);
            }
        }
コード例 #31
0
        static void Game_OnStart(EventArgs args)
        {
            Game.OnUpdate                  += Game_OnUpdate;
            Drawing.OnDraw                 += Game_OnDraw;
            Obj_AI_Base.OnBuffGain         += Common.OnBuffGain;
            Game.OnTick                    += OnTick;
            Orbwalker.OnPreAttack          += Common.QAA;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            SkinBase = Player.Instance.SkinId;
            // Item
            try
            {
                if (ChampionName != PlayerInstance.BaseSkinName)
                {
                    return;
                }

                Q = new Spell.Skillshot(SpellSlot.Q, 1450, SkillShotType.Linear, 0, 1000, 40)
                {
                    AllowedCollisionCount = int.MaxValue
                };
                W = new Spell.Active(SpellSlot.W);
                R = new Spell.Active(SpellSlot.R, 5500);



                Bootstrap.Init(null);
                Chat.Print("GuTenTak Addon Loading Success", Color.Green);


                Menu = MainMenu.AddMenu("GuTenTak TwistedFate", "TwistedFate");
                Menu.AddSeparator();
                Menu.AddLabel("GuTenTak TwistedFate Addon");

                var Enemies = EntityManager.Heroes.Enemies.Where(a => !a.IsMe).OrderBy(a => a.BaseSkinName);
                ModesMenu1 = Menu.AddSubMenu("Menu", "Modes1TwistedFate");
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Combo Configs");
                ModesMenu1.Add("ComboQ", new CheckBox("Use Q on Combo", true));
                ModesMenu1.Add("ComboYellowCard", new CheckBox("Pick A Yello Card on Combo", true));
                ModesMenu1.Add("RYellow", new CheckBox("Use Auto Pick A Yellow Card on R", true));
                ModesMenu1.Add("ComboWRed", new KeyBind("Use Red Card", false, KeyBind.BindTypes.HoldActive, 'T'));
                ModesMenu1.Add("ComboWBlue", new KeyBind("Use Blue Card", false, KeyBind.BindTypes.HoldActive, 'E'));
                ModesMenu1.Add("ComboWYellow", new KeyBind("Use Yellow Card", false, KeyBind.BindTypes.HoldActive, 'S'));
                ModesMenu1.Add("WHumanizer", new CheckBox("Pick A Card Humanizer", true));
                ModesMenu1.Add("WHumanizerms", new Slider("Pick A Card Humanizer (ms)", 250, 0, 250));
                ModesMenu1.Add("WHumanizerrandom", new Slider("Pick A Card Humanizer (Random Min)", 125, 0, 125));
                ModesMenu1.Add("WHumanizerrandom2", new Slider("Pick A Card Humanizer (Random MAX)", 250, 0, 250));

                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Auto Harass Configs");
                ModesMenu1.Add("AutoHarass", new CheckBox("Auto Q immobile target", true));
                ModesMenu1.Add("ManaAuto", new Slider("Use Auto Harass Mana %", 40));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Harass Configs");
                ModesMenu1.Add("HarassQ", new CheckBox("Use Q on Harass", true));
                ModesMenu1.Add("ManaHQ", new Slider("Use Q Harass Mana %", 60));
                ModesMenu1.Add("HarassW", new CheckBox("Use W on Harass", true));
                ModesMenu1.Add("ManaHW", new Slider("Use W Harass Mana %", 60));
                ModesMenu1.Add("HarassPick", new ComboBox("Use Harass Pick A Card", 0, "Blue", "Red", "Yellow"));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Kill Steal Configs");
                ModesMenu1.Add("KS", new CheckBox("Use KillSteal", true));
                ModesMenu1.Add("KQ", new CheckBox("Use Q on KillSteal", true));

                ModesMenu2 = Menu.AddSubMenu("Farm", "Modes2TwistedFate");
                ModesMenu2.AddLabel("Last Hit Config");
                ModesMenu2.AddSeparator();
                ModesMenu2.Add("LastBlue", new CheckBox("Pick A Blue Card", true));
                ModesMenu2.Add("ManaLast", new Slider("Mana Under %", 40));
                ModesMenu2.AddSeparator();/*
                                           * ModesMenu2.AddLabel("Lane Clear Config");
                                           * ModesMenu2.AddSeparator();
                                           * ModesMenu2.Add("FarmQ", new CheckBox("Use Q on LaneClear", true));
                                           * ModesMenu2.Add("ManaLQ", new Slider("Mana %", 40));
                                           * ModesMenu2.Add("MinionLC", new Slider("Use Q Min Minions on LaneClear", 3, 1, 5));
                                           * ModesMenu2.Add("FarmW", new CheckBox("Use W on LaneClear", true));
                                           * ModesMenu2.Add("ManaLW", new Slider("Mana %", 40));
                                           * ModesMenu2.AddSeparator();
                                           * ModesMenu2.AddLabel("Jungle Clear Config");
                                           * ModesMenu2.AddSeparator();
                                           * ModesMenu2.Add("JungleQ", new CheckBox("Use Q on JungleClear", true));
                                           * ModesMenu2.Add("ManaJQ", new Slider("Mana %", 40));
                                           * ModesMenu2.Add("JungleW", new CheckBox("Use W on JungleClear", true));
                                           * ModesMenu2.Add("ManaJW", new Slider("Mana %", 40));
                                           */
                ModesMenu3 = Menu.AddSubMenu("Misc", "Modes3TwistedFate");
                //ModesMenu3.Add("AntiGap", new CheckBox("AntiGap - Pick Golden Card", true));

                ModesMenu3.AddLabel("Item Usage on Combo");
                ModesMenu3.Add("useYoumuu", new CheckBox("Use Youmuu", true));
                ModesMenu3.Add("usehextech", new CheckBox("Use Hextech", true));
                ModesMenu3.Add("useBotrk", new CheckBox("Use Botrk & Cutlass", true));
                ModesMenu3.Add("useQss", new CheckBox("Use QuickSilver", true));
                ModesMenu3.Add("minHPBotrk", new Slider("Min health to use Botrk %", 80));
                ModesMenu3.Add("enemyMinHPBotrk", new Slider("Min enemy health to use Botrk %", 80));

                ModesMenu3.AddLabel("QSS Configs");
                ModesMenu3.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo"));
                ModesMenu3.Add("Stun", new CheckBox("Stun", true));
                ModesMenu3.Add("Blind", new CheckBox("Blind", true));
                ModesMenu3.Add("Charm", new CheckBox("Charm", true));
                ModesMenu3.Add("Suppression", new CheckBox("Suppression", true));
                ModesMenu3.Add("Polymorph", new CheckBox("Polymorph", true));
                ModesMenu3.Add("Fear", new CheckBox("Fear", true));
                ModesMenu3.Add("Taunt", new CheckBox("Taunt", true));
                ModesMenu3.Add("Silence", new CheckBox("Silence", false));
                ModesMenu3.Add("QssDelay", new Slider("Use QSS Delay(ms)", 250, 0, 1000));

                ModesMenu3.AddLabel("QSS Ult Configs");
                ModesMenu3.Add("ZedUlt", new CheckBox("Zed R", true));
                ModesMenu3.Add("VladUlt", new CheckBox("Vladimir R", true));
                ModesMenu3.Add("FizzUlt", new CheckBox("Fizz R", true));
                ModesMenu3.Add("MordUlt", new CheckBox("Mordekaiser R", true));
                ModesMenu3.Add("PoppyUlt", new CheckBox("Poppy R", true));
                ModesMenu3.Add("QssUltDelay", new Slider("Use QSS Delay(ms) for Ult", 250, 0, 1000));

                ModesMenu3.AddLabel("Skin Hack");
                ModesMenu3.Add("skinhack", new CheckBox("Activate Skin hack", false));
                ModesMenu3.Add("skinId", new ComboBox("Skin Mode", 0, "Default", "1", "2", "3", "4", "5", "6", "7", "8", "9"));

                DrawMenu = Menu.AddSubMenu("Draws", "DrawTwistedFate");
                DrawMenu.Add("drawA", new CheckBox(" Draw Real AA", true));
                DrawMenu.Add("drawQ", new CheckBox(" Draw Q", true));
                DrawMenu.Add("drawR", new CheckBox(" Draw R", false));
            }

            catch (Exception e)
            {
            }
        }
コード例 #32
0
        static void Game_OnStart(EventArgs args)
        {
            Game.OnUpdate          += Game_OnUpdate;
            Drawing.OnDraw         += Game_OnDraw;
            Obj_AI_Base.OnBuffGain += Common.OnBuffGain;
            Game.OnTick            += OnTick;
            Gapcloser.OnGapcloser  += Common.Gapcloser_OnGapCloser;
            Game.OnUpdate          += Common.zigzag;
            SkinBase = Player.Instance.SkinId;
            // Item
            try
            {
                if (ChampionName != PlayerInstance.BaseSkinName)
                {
                    return;
                }

                Q = new Spell.Skillshot(SpellSlot.Q, 825, SkillShotType.Circular, 300, 1000, 250);
                Q.AllowedCollisionCount = int.MaxValue;
                W = new Spell.Skillshot(SpellSlot.W, 800, SkillShotType.Linear, 1800, 1500, 200);
                W.AllowedCollisionCount = int.MaxValue;
                E = new Spell.Active(SpellSlot.E, 600);
                R = new Spell.Skillshot(SpellSlot.R, 1300, SkillShotType.Linear, 200, 1950, 40);
                R.AllowedCollisionCount = 0;



                Bootstrap.Init(null);
                Chat.Print("GuTenTak Addon Loading Success", Color.Green);


                Menu = MainMenu.AddMenu("GuTenTak Corki", "Corki");
                Menu.AddSeparator();
                Menu.AddLabel("GuTenTak Corki Addon");

                var Enemies = EntityManager.Heroes.Enemies.Where(a => !a.IsMe).OrderBy(a => a.BaseSkinName);
                ModesMenu1 = Menu.AddSubMenu("Menu", "Modes1Corki");
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Combo Configs");
                ModesMenu1.Add("ComboQ", new CheckBox("Use Q on Combo", true));
                ModesMenu1.Add("ComboA", new CheckBox("Use AA => Q Combo", false));
                ModesMenu1.Add("ComboE", new CheckBox("Use E on Combo", true));
                ModesMenu1.Add("ComboR", new CheckBox("Use R on Combo", true));
                ModesMenu1.Add("ManaCE", new Slider("Use E Mana %", 30));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("AutoHarass Configs");
                ModesMenu1.Add("AutoHarass", new CheckBox("Use R on AutoHarass", false));

                ModesMenu1.Add("ManaAuto", new Slider("Mana %", 80));
                ModesMenu1.AddLabel("Harass Configs");
                ModesMenu1.Add("HarassQ", new CheckBox("Use Q on Harass", true));
                ModesMenu1.Add("ManaHQ", new Slider("Mana %", 40));
                ModesMenu1.Add("HarassR", new CheckBox("Use R on Harass", true));
                ModesMenu1.Add("ManaHR", new Slider("Mana %", 60));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Kill Steal Configs");
                ModesMenu1.Add("KS", new CheckBox("Use KillSteal", true));
                ModesMenu1.Add("KQ", new CheckBox("Use Q on KillSteal", true));
                ModesMenu1.Add("KR", new CheckBox("Use R on KillSteal", true));

                ModesMenu2 = Menu.AddSubMenu("Farm", "Modes2Corki");
                ModesMenu2.AddLabel("Lane Clear Config");
                ModesMenu2.Add("ManaL", new Slider("Mana %", 40));
                ModesMenu2.Add("FarmQ", new CheckBox("Use Q on LaneClear", true));
                ModesMenu2.Add("ManaLR", new Slider("Mana %", 40));
                ModesMenu2.Add("FarmR", new CheckBox("Use R on LaneClear", true));
                ModesMenu2.AddLabel("Jungle Clear Config");
                ModesMenu2.Add("ManaJ", new Slider("Mana %", 40));
                ModesMenu2.Add("JungleQ", new CheckBox("Use Q on JungleClear", true));
                ModesMenu2.Add("ManaJR", new Slider("Mana %", 40));
                ModesMenu2.Add("JungleR", new CheckBox("Use R on JungleClear", true));

                ModesMenu3 = Menu.AddSubMenu("Misc", "Modes3Corki");
                ModesMenu3.AddLabel("Misc Configs");
                ModesMenu3.Add("AntiGap", new CheckBox("Use W for Anti-Gapcloser", true));
                ModesMenu3.AddLabel("Flee Configs");
                ModesMenu3.Add("FleeR", new CheckBox("Use R on Flee", true));
                ModesMenu3.Add("FleeW", new CheckBox("Use W on Flee", true));
                ModesMenu3.Add("ManaFlR", new Slider("R Mana %", 35));

                ModesMenu3.AddLabel("Item Usage on Combo");
                ModesMenu3.Add("useYoumuu", new CheckBox("Use Youmuu", true));
                ModesMenu3.Add("usehextech", new CheckBox("Use Hextech", true));
                ModesMenu3.Add("useBotrk", new CheckBox("Use Botrk & Cutlass", true));
                ModesMenu3.Add("useQss", new CheckBox("Use QuickSilver", true));
                ModesMenu3.Add("minHPBotrk", new Slider("Min health to use Botrk %", 80));
                ModesMenu3.Add("enemyMinHPBotrk", new Slider("Min enemy health to use Botrk %", 80));

                ModesMenu3.AddLabel("QSS Configs");
                ModesMenu3.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo"));
                ModesMenu3.Add("Stun", new CheckBox("Stun", true));
                ModesMenu3.Add("Blind", new CheckBox("Blind", true));
                ModesMenu3.Add("Charm", new CheckBox("Charm", true));
                ModesMenu3.Add("Suppression", new CheckBox("Suppression", true));
                ModesMenu3.Add("Polymorph", new CheckBox("Polymorph", true));
                ModesMenu3.Add("Fear", new CheckBox("Fear", true));
                ModesMenu3.Add("Taunt", new CheckBox("Taunt", true));
                ModesMenu3.Add("Silence", new CheckBox("Silence", false));
                ModesMenu3.Add("QssDelay", new Slider("Use QSS Delay(ms)", 250, 0, 1000));

                ModesMenu3.AddLabel("QSS Ult Configs");
                ModesMenu3.Add("ZedUlt", new CheckBox("Zed R", true));
                ModesMenu3.Add("VladUlt", new CheckBox("Vladimir R", true));
                ModesMenu3.Add("FizzUlt", new CheckBox("Fizz R", true));
                ModesMenu3.Add("MordUlt", new CheckBox("Mordekaiser R", true));
                ModesMenu3.Add("PoppyUlt", new CheckBox("Poppy R", true));
                ModesMenu3.Add("QssUltDelay", new Slider("Use QSS Delay(ms) for Ult", 250, 0, 1000));

                ModesMenu3.AddLabel("Skin Hack");
                ModesMenu3.Add("skinhack", new CheckBox("Activate Skin hack", false));
                ModesMenu3.Add("skinId", new ComboBox("Skin Mode", 0, "Default", "1", "2", "3", "4", "5", "6", "7"));

                DrawMenu = Menu.AddSubMenu("Draws", "DrawCorki");
                DrawMenu.Add("drawQ", new CheckBox(" Draw Q", true));
                DrawMenu.Add("drawW", new CheckBox(" Draw W", true));
                DrawMenu.Add("drawR", new CheckBox(" Draw R", false));
                DrawMenu.Add("drawXR", new CheckBox(" Draw Don't Use R", true));
                DrawMenu.Add("drawXFleeQ", new CheckBox(" Draw Don't Use Flee Q", false));
            }

            catch (Exception e)
            {
            }
        }
コード例 #33
0
ファイル: Program.cs プロジェクト: Bloodimir/Projects
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Tryndamere")
            {
                return;
            }
            Bootstrap.Init(null);
            Q = new Spell.Active(SpellSlot.Q);
            W = new Spell.Active(SpellSlot.W, 400);
            E = new Spell.Skillshot(SpellSlot.E, 660, SkillShotType.Linear, 250, 700, (int)92.5);
            R = new Spell.Active(SpellSlot.R);
            if (HasSpell("summonerdot"))
            {
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            }

            Botrk      = new Item(3153, 550f);
            Bilgewater = new Item(3144, 475f);
            Hydra      = new Item(3074, 250f);
            Tiamat     = new Item(3077, 250f);
            Youmuu     = new Item(3142, 10);

            TrynMenu = MainMenu.AddMenu("BloodimirTryn", "bloodimirtry");
            TrynMenu.AddGroupLabel("Bloodimir Tryndamere");
            TrynMenu.AddSeparator();
            TrynMenu.AddLabel("Bloodimir Tryndamere V1.0.0.0");

            ComboMenu = TrynMenu.AddSubMenu("Combo", "sbtw");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.AddSeparator();
            ComboMenu.Add("usecomboq", new CheckBox("Use Q"));
            ComboMenu.Add("usecombow", new CheckBox("Use W"));
            ComboMenu.Add("usecomboe", new CheckBox("Use E"));
            ComboMenu.Add("usecombor", new CheckBox("Use R"));
            ComboMenu.Add("useignite", new CheckBox("Use Ignite"));
            ComboMenu.AddSeparator();
            ComboMenu.Add("rslider", new Slider("Minimum people for R", 1, 0, 5));
            ComboMenu.AddSeparator();
            ComboMenu.Add("qhp", new Slider("Q % HP", 25, 0, 95));


            DrawMenu = TrynMenu.AddSubMenu("Drawings", "drawings");
            DrawMenu.AddGroupLabel("Drawings");
            DrawMenu.AddSeparator();
            DrawMenu.Add("drawe", new CheckBox("Draw E"));

            LaneJungleClear = TrynMenu.AddSubMenu("Lane Jungle Clear", "lanejungleclear");
            LaneJungleClear.AddGroupLabel("Lane Jungle Clear Settings");
            LaneJungleClear.Add("LCE", new CheckBox("Use E"));

            MiscMenu = TrynMenu.AddSubMenu("Misc Menu", "miscmenu");
            MiscMenu.AddGroupLabel("Misc");
            MiscMenu.AddSeparator();
            MiscMenu.Add("kse", new CheckBox("KS using E"));
            MiscMenu.Add("ksbotrk", new CheckBox("KS using Botrk"));
            MiscMenu.Add("kshydra", new CheckBox("KS using Hydra"));
            MiscMenu.Add("usehydra", new CheckBox("Use Hydra"));
            MiscMenu.Add("usetiamat", new CheckBox("Use Tiamat"));
            MiscMenu.Add("usebotrk", new CheckBox("Use Botrk"));
            MiscMenu.Add("usebilge", new CheckBox("Use Bilgewater"));
            MiscMenu.Add("useyoumuu", new CheckBox("Use Youmuu"));


            SkinMenu = TrynMenu.AddSubMenu("Skin Changer", "skin");
            SkinMenu.AddGroupLabel("Choose the desired skin");

            var skinchange = SkinMenu.Add("skinid", new Slider("Skin", 4, 0, 7));
            var skinid     = new[] { "Default", "Highland", "King", "Viking", "Demon Blade", "Sultan", "Warring Kingdoms", "Nightmare" };

            skinchange.DisplayName    = skinid[skinchange.CurrentValue];
            skinchange.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs changeArgs)
            {
                sender.DisplayName = skinid[changeArgs.NewValue];
                if (MiscMenu["debug"].Cast <CheckBox>().CurrentValue)
                {
                    Chat.Print("skin-changed");
                }
            };
            Game.OnUpdate  += Tick;
            Drawing.OnDraw += OnDraw;
        }
コード例 #34
0
// Menu

        private static void OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("Corki"))
            {
                return;
            }
            Chat.Print("Doctor's Corki Yuklendi.Ceviri TekinTR!", Color.Orange);
            Q = new Spell.Skillshot(SpellSlot.Q, 825, SkillShotType.Circular, 300, 1000, 250);
            Q.AllowedCollisionCount = int.MaxValue;
            W = new Spell.Skillshot(SpellSlot.W, 800, SkillShotType.Linear);
            W.AllowedCollisionCount = int.MaxValue;
            E      = new Spell.Active(SpellSlot.E, 600);
            R      = new Spell.Skillshot(SpellSlot.R, 1200, SkillShotType.Linear, 200, 1950, 40);
            Botrk  = new Item(ItemId.Blade_of_the_Ruined_King);
            Bil    = new Item(3144, 475f);
            Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            Menu   = MainMenu.AddMenu("Doctor's Corki", "Corki");
            Menu.AddGroupLabel("Yapimci Mercedes7");
            SpellMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            SpellMenu.AddGroupLabel("Combo Settings");
            SpellMenu.Add("ComboQ", new CheckBox("Kullan [Q]"));
            SpellMenu.Add("QMode", new ComboBox("Q Mode:", 0, "Hizli [Q]", "[Q] Atakdan Sonra"));
            SpellMenu.Add("ComboR", new CheckBox("Kullan [R]"));
            SpellMenu.Add("RMode", new ComboBox("R Mode:", 0, "Hizli [R]", "[R] Atakdan Sonra"));
            SpellMenu.Add("ComboE", new CheckBox("Kullan [E]"));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("HarassQ", new CheckBox("Kullan [Q] Durtme"));
            HarassMenu.Add("HarassR", new CheckBox("Kullan [R] Durtme"));
            HarassMenu.Add("HarassE", new CheckBox("Kullan [E] Durtme"));
            HarassMenu.Add("manaHarass", new Slider("Durtmek icin enaz mana", 50, 0, 100));
            HarassMenu.Add("RocketHarass", new Slider("Roket sakla [R]", 3, 0, 6));

            ClearMenu = Menu.AddSubMenu("LaneClear Settings", "LaneClear");
            ClearMenu.AddGroupLabel("Laneclear Settings");
            ClearMenu.Add("ClearQ", new CheckBox("Kullan [Q] KoridorTemizleme", false));
            ClearMenu.Add("ClearR", new CheckBox("Kullan [R] KoridorTemizleme", false));
            ClearMenu.Add("ClearE", new CheckBox("Kullan [E] KoridorTemizleme", false));
            ClearMenu.Add("manaClear", new Slider("KoridorTemizleme icin enaz mana", 65, 0, 100));
            ClearMenu.Add("RocketClear", new Slider("Roket sakla [R]", 3, 0, 6));

            JungleMenu = Menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleMenu.AddGroupLabel("JungleClear Settings");
            JungleMenu.Add("JungleQ", new CheckBox("Kullan [Q] Orman"));
            JungleMenu.Add("JungleR", new CheckBox("Kullan [R] Orman"));
            JungleMenu.Add("JungleE", new CheckBox("Kullan [E] Orman"));
            JungleMenu.Add("manaJung", new Slider("Orman icin enaz mana", 30, 0, 100));
            JungleMenu.Add("RocketJung", new Slider("Roket sakla [R]", 3, 0, 6));

            KillstealMenu = Menu.AddSubMenu("KillSteal Settings", "KS");
            KillstealMenu.AddGroupLabel("KillSteal Settings");
            KillstealMenu.Add("RKs", new CheckBox("Kullan [R] Oldururken"));
            KillstealMenu.Add("QKs", new CheckBox("Kullan [Q] Oldururken"));
            KillstealMenu.Add("ign", new CheckBox("Kullan [Tutustur] Oldururken"));

            Misc = Menu.AddSubMenu("Misc Settings", "Misc");
            Misc.AddGroupLabel("Drawings Settings");
            Misc.Add("Draw_Disabled", new CheckBox("Cizimleri Kapat", false));
            Misc.Add("drawQ", new CheckBox("Goster [Q] Menzili"));
            Misc.Add("drawW", new CheckBox("Goster [W] Menzili", false));
            Misc.Add("drawE", new CheckBox("Goster [E] Menzili"));
            Misc.Add("drawR", new CheckBox("Goster [R] Menzili"));

            items = Menu.AddSubMenu("Items Settings", "Items");
            items.AddGroupLabel("Items Settings");
            items.Add("BOTRK", new CheckBox("Kullan [Mahvolmus]"));
            items.Add("ihp", new Slider("Benim HP Kullan Mahvolmus <=", 50));
            items.Add("ihpp", new Slider("Dusman HP Kullan Mahvolmus <=", 50));

            Game.OnUpdate          += Game_OnUpdate;
            Drawing.OnDraw         += Drawing_OnDraw;
            Orbwalker.OnPostAttack += ResetAttack;
        }
コード例 #35
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Varus)
            {
                return;
            }

            _q = new Spell.Chargeable(SpellSlot.Q, 925, 1600, 1250, 0, 1500, 70)
            {
                AllowedCollisionCount = int.MaxValue
            };
            _w = new Spell.Active(SpellSlot.W);
            _e = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1750, 250)
            {
                AllowedCollisionCount = int.MaxValue
            };
            _r = new Spell.Skillshot(SpellSlot.R, 1200, SkillShotType.Linear, 250, 1200, 120)
            {
                AllowedCollisionCount = int.MaxValue
            };

            var slot = _Player.GetSpellSlotFromName("summonerheal");

            if (slot != SpellSlot.Unknown)
            {
                Heal = new Spell.Active(slot, 600);
            }
            Ignite = ObjectManager.Player.GetSpellSlotFromName("summonerdot");

            HealthPotion     = new Item(2003, 0);
            TotalBiscuit     = new Item(2010, 0);
            CorruptingPotion = new Item(2033, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion    = new Item(2032, 0);

            Chat.Print(
                "<font color=\"#580dd9\" >MeLoDag Presents </font><font color=\"#ffffff\" > VarusTheTroll </font><font color=\"#580dd9\" >Kappa Kippo</font>");


            Menu = MainMenu.AddMenu("VarusTheTroll", "VarusTheTroll");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.Add("useQComboAlways", new CheckBox("Use Q[Always]"));
            ComboMenu.Add("useQCombo", new CheckBox("Use Q[StackCount]"));
            ComboMenu.Add("StackCount", new Slider("Q when stacks >= ", 3, 1, 3));
            ComboMenu.Add("useECombo", new CheckBox("Use E"));
            ComboMenu.Add("useWComboFocus", new CheckBox("Focus Target W"));
            ComboMenu.Add("useRCombo", new CheckBox("Use R"));
            ComboMenu.Add("Rcount", new Slider("R when enemies >= ", 1, 1, 5));
            ComboMenu.AddSeparator();
            ComboMenu.Add("useRComboFinisher", new CheckBox("Use R [FinisherMode]"));
            ComboMenu.Add("ForceR",
                          new KeyBind("Force R On Target Selector", false, KeyBind.BindTypes.HoldActive, "T".ToCharArray()[0]));
            ComboMenu.Add("combo.ignite", new CheckBox("Use Ignite If Combo Killable"));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.Add("useQHarass", new CheckBox("Use Q"));
            HarassMenu.Add("useEHarass", new CheckBox("Use E"));
            HarassMenu.Add("useEHarassMana", new Slider("E Mana > %", 70, 0, 100));
            HarassMenu.Add("useQHarassMana", new Slider("Q Mana > %", 70, 0, 100));

            JungleLaneMenu = Menu.AddSubMenu("Lane Clear Settings", "FarmSettings");
            JungleLaneMenu.AddLabel("Lane Clear");
            JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q"));
            JungleLaneMenu.Add("useEFarm", new CheckBox("Use E"));
            JungleLaneMenu.AddSeparator();
            //     JungleLaneMenu.AddLabel("Jungle Clear");
            //     JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q"));
            //    JungleLaneMenu.Add("useEJungle", new CheckBox("Use E"));
            //    JungleLaneMenu.Add("useWMana", new Slider("E Mana > %", 70, 0, 100));

            MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings");
            MiscMenu.Add("gapcloser", new CheckBox("Auto E for Gapcloser"));
            MiscMenu.Add("interrupter", new CheckBox("Auto R for Interrupter"));
            MiscMenu.Add("CCQ", new CheckBox("Auto Q on Enemy CC"));
            //     MiscMenu.Add("UseQks", new CheckBox("Use Q ks"));

            AutoPotHealMenu = Menu.AddSubMenu("Potion & Heal", "Potion & Heal");
            AutoPotHealMenu.AddGroupLabel("Auto pot usage");
            AutoPotHealMenu.Add("potion", new CheckBox("Use potions"));
            AutoPotHealMenu.Add("potionminHP", new Slider("Minimum Health % to use potion", 40));
            AutoPotHealMenu.Add("potionMinMP", new Slider("Minimum Mana % to use potion", 20));
            AutoPotHealMenu.AddGroupLabel("AUto Heal Usage");
            AutoPotHealMenu.Add("UseHeal", new CheckBox("Use Heal"));
            AutoPotHealMenu.Add("useHealHP", new Slider("Minimum Health % to use Heal", 20));

            ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings");
            ItemMenu.Add("useBOTRK", new CheckBox("Use BOTRK"));
            ItemMenu.Add("useBotrkMyHP", new Slider("My Health < ", 60, 1, 100));
            ItemMenu.Add("useBotrkEnemyHP", new Slider("Enemy Health < ", 60, 1, 100));
            ItemMenu.Add("useYoumu", new CheckBox("Use Youmu"));
            ItemMenu.AddSeparator();
            ItemMenu.Add("useQSS", new CheckBox("Use QSS"));
            ItemMenu.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo"));
            ItemMenu.Add("Stun", new CheckBox("Stun", true));
            ItemMenu.Add("Blind", new CheckBox("Blind", true));
            ItemMenu.Add("Charm", new CheckBox("Charm", true));
            ItemMenu.Add("Suppression", new CheckBox("Suppression", true));
            ItemMenu.Add("Polymorph", new CheckBox("Polymorph", true));
            ItemMenu.Add("Fear", new CheckBox("Fear", true));
            ItemMenu.Add("Taunt", new CheckBox("Taunt", true));
            ItemMenu.Add("Silence", new CheckBox("Silence", false));
            ItemMenu.Add("QssDelay", new Slider("Use QSS Delay(ms)", 250, 0, 1000));
            ItemMenu.AddGroupLabel("Qqs Utly");
            ItemMenu.Add("ZedUlt", new CheckBox("Zed R", true));
            ItemMenu.Add("VladUlt", new CheckBox("Vladimir R", true));
            ItemMenu.Add("FizzUlt", new CheckBox("Fizz R", true));
            ItemMenu.Add("MordUlt", new CheckBox("Mordekaiser R", true));
            ItemMenu.Add("PoppyUlt", new CheckBox("Poppy R", true));
            ItemMenu.Add("QssUltDelay", new Slider("Use QSS Delay(ms) for Ult", 250, 0, 1000));

            SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger");
            SkinMenu.Add("checkSkin", new CheckBox("Use Skin Changer"));
            SkinMenu.Add("skin.Id", new Slider("Skin", 1, 0, 5));

            PrediMenu = Menu.AddSubMenu("Prediction Settings", "_PrediMenuettings");
            var style = PrediMenu.Add("style", new Slider("Min Prediction", 1, 0, 2));

            style.OnValueChange +=
                delegate
            {
                style.DisplayName = "Min Prediction: " + new[] { "Low", "Medium", "High" }[style.CurrentValue];
            };
            style.DisplayName = "Min Prediction: " + new[] { "Low", "Medium", "High" }[style.CurrentValue];

            DrawMenu = Menu.AddSubMenu("Drawing Settings");
            DrawMenu.Add("drawRange", new CheckBox("Draw Q Range"));
            DrawMenu.Add("drawE", new CheckBox("Draw E Range"));
            DrawMenu.Add("drawR", new CheckBox("Draw R Range"));

            Game.OnTick                      += Game_OnTick;
            Game.OnUpdate                    += OnGameUpdate;
            Obj_AI_Base.OnBuffGain           += OnBuffGain;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapCloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Drawing.OnDraw                   += Drawing_OnDraw;
        }
コード例 #36
0
        public override void Init()
        {
            try
            {
                //spells
                _q = new Spell.Active(SpellSlot.Q, 600);
                _w = new Spell.Skillshot(SpellSlot.W, 1280, SkillShotType.Linear, 250, 2000, 20);
                _e = new Spell.Skillshot(SpellSlot.E, 25000, SkillShotType.Linear, 250, 1400, 300);
                _r = new Spell.Skillshot(SpellSlot.R, 3000, SkillShotType.Linear, 250, 1600, 130);
                _w.AllowedCollisionCount = 0;
                _e.AllowedCollisionCount = int.MaxValue;
                _r.AllowedCollisionCount = int.MaxValue;


                //menu
                MainMenu.ComboKeys(useE: false);
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Combo Preferences", "combo.grouplabel.addonmenu", true);
                MainMenu._combo.Add("combo.rbind",
                                    new KeyBind("Semi-Auto R (No Lock)", false, KeyBind.BindTypes.HoldActive, 'T'))
                .OnValueChange += OnUltButton;
                MainMenu._combo.AddCheckBox("combo.r.aoe", "Use R for AOE", true, true);
                MainMenu._combo.AddSlider("combo.r.slider", "{0} Enemies hit with R explosion", 3, 0, 5, true);
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Prediction", "combo.grouplabel1.addonmenu", true);
                MainMenu._combo.AddSlider("combo.wr.prediction", "Hitchance Percentage for W/R", 80, 0, 100, true);

                //flee
                MainMenu.FleeKeys(false, useE: false, useR: false);
                MainMenu._flee.AddSeparator();
                MainMenu._flee.AddGroupLabel("Mana Manager:", "flee.grouplabel.addonmenu", true);
                MainMenu.FleeManaManager(false, true, false, false, 0, 20, 0, 0);

                //lasthit
                MainMenu.LastHitKeys(false, useE: false, useR: false);
                MainMenu._lasthit.AddSeparator();
                MainMenu._lasthit.AddGroupLabel("Mana Manager:", "lasthit.grouplabel.addonmenu", true);
                MainMenu.LasthitManaManager(false, true, false, false, 0, 80, 0, 0);


                //laneclear
                MainMenu.LaneKeys(useE: false, useR: false);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddSlider("lane.w.min", "Min. {0} minions for W", 3, 1, 7, true);
                MainMenu._lane.AddGroupLabel("Mana Manager:", "lane.grouplabel.addonmenu", true);
                MainMenu.LaneManaManager(true, true, false, false, 60, 70, 0, 0);

                //jungleclear
                MainMenu.JungleKeys(useE: false, useR: false);
                MainMenu._jungle.AddSeparator();
                MainMenu._jungle.AddGroupLabel("Mana Manager:", "jungle.grouplabel.addonmenu", true);
                MainMenu.JungleManaManager(true, true, false, false, 60, 30, 0, 0);

                //harass
                MainMenu.HarassKeys(useE: false, useR: false);
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddGroupLabel("Mana Manager:", "harass.grouplabel.addonmenu", true);
                MainMenu.HarassManaManager(true, true, false, false, 20, 20, 0, 0);

                //ks
                MainMenu.KsKeys(false, useE: false);
                MainMenu._ks.AddSeparator();
                MainMenu._ks.AddGroupLabel("Mana Manager:", "killsteal.grouplabel.addonmenu", true);
                MainMenu.KsManaManager(false, true, false, true, 20, 30, 10, 5);

                //misc
                MainMenu.MiscMenu();
                MainMenu._misc.AddCheckBox("misc.e", "Use Auto E");
                MainMenu._misc.AddCheckBox("misc.r.interrupter", "Use R for Interrupt");
                MainMenu._misc.AddCheckBox("misc.w.gapcloser", "Use W for Anti-Gapcloser");
                MainMenu._misc.AddCheckBox("misc.r.auto", "Anti Rengar + Khazix");
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddGroupLabel("Auto W Settings", "misc.grouplabel1.addonmenu", true);
                MainMenu._misc.AddCheckBox("misc.w.charm", "Use W on Charmed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.stun", "Use W on Stunned Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.knockup", "Use W on Knocked Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.snare", "Use W on Snared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.suppression", "Use W on Suppressed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.taunt", "Use W on Taunted Enemy", true, true);

                //draw
                MainMenu.DrawKeys(false, useE: false, useR: false);
                MainMenu._draw.AddSeparator();
                MainMenu._draw.AddCheckBox("draw.hp.bar", "Draw Combo Damage", true, true);
            }

            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>");
            }

            try
            {
                Value.Init();
                if (MainMenu._menu["useonupdate"].Cast <CheckBox>().CurrentValue)
                {
                    Game.OnUpdate += GameOnUpdate;
                }
                else
                {
                    Game.OnTick += GameOnUpdate;
                }
                Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
                Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
                GameObject.OnCreate            += GameObject_OnCreate;
                Orbwalker.OnPreAttack          += Orbwalker_OnPreAttack;
                Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
                Drawing.OnDraw     += GameOnDraw;
                Drawing.OnEndScene += Drawing_OnEndScene;
            }

            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code INIT)</font>");
            }
        }
コード例 #37
0
ファイル: Program.cs プロジェクト: iRaxe/OKTRAIO-Reborn
 public override void InitializeSpells()
 {
     Q = new Spell.Active(SpellSlot.Q);
     E = new Spell.Targeted(SpellSlot.E, 555); //440
     R = new Spell.Active(SpellSlot.R, (uint)Player.Instance.GetAutoAttackRange());
 }
コード例 #38
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("Tristana"))
            {
                return;
            }
            Chat.Print("Bristana Loaded!", Color.Orange);
            Bootstrap.Init(null);
            Q     = new Spell.Active(SpellSlot.Q);
            W     = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 450, int.MaxValue, 180);
            E     = new Spell.Targeted(SpellSlot.E, (uint)Player.Instance.GetAutoAttackRange());
            R     = new Spell.Targeted(SpellSlot.R, (uint)Player.Instance.GetAutoAttackRange());
            Botrk = new Item(ItemId.Blade_of_the_Ruined_King);
            Bil   = new Item(3144, 475f);
            Thm   = new Font(Drawing.Direct3DDevice, new FontDescription {
                FaceName = "Tahoma", Height = 32, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType
            });
            Menu = MainMenu.AddMenu("Bristana", "Bristana");
            Menu.AddGroupLabel("Bristana");
            Menu.AddLabel(" Good Luck! ");
            SpellMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            SpellMenu.AddGroupLabel("Combo Settings");
            SpellMenu.Add("ComboQ", new CheckBox("Combo [Q]"));
            SpellMenu.Add("ComboER", new CheckBox("Combo [ER]"));
            SpellMenu.AddSeparator();
            SpellMenu.Add("RKs", new CheckBox("Combo [R]"));
            SpellMenu.Add("RKb", new KeyBind(" Semi [R] KillSteal", false, KeyBind.BindTypes.HoldActive, 'R'));
            SpellMenu.AddSeparator();
            SpellMenu.AddGroupLabel("Combo [E] On");
            foreach (var target in EntityManager.Heroes.Enemies)
            {
                SpellMenu.Add("useECombo" + target.ChampionName, new CheckBox("" + target.ChampionName));
            }

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("HarassQ", new CheckBox("Harass [Q]", false));
            HarassMenu.AddGroupLabel("Harass [E] on");
            foreach (var target in EntityManager.Heroes.Enemies)
            {
                HarassMenu.Add("HarassE" + target.ChampionName, new CheckBox("" + target.ChampionName));
            }
            HarassMenu.Add("manaHarass", new Slider("Min Mana For Harass", 50, 0, 100));

            LaneMenu = Menu.AddSubMenu("Laneclear Settings", "Clear");
            LaneMenu.AddGroupLabel("Laneclear Settings");
            LaneMenu.Add("ClearQ", new CheckBox("Laneclear [Q]", false));
            LaneMenu.Add("ClearE", new CheckBox("Laneclear [E]", false));
            LaneMenu.Add("ClearTower", new CheckBox("Laneclear [E] Turret", false));
            LaneMenu.Add("manaFarm", new Slider("Min Mana For LaneClear", 50, 0, 100));

            JungleMenu = Menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleMenu.AddGroupLabel("JungleClear Settings");
            JungleMenu.Add("jungleQ", new CheckBox("JungleClear [Q]"));
            JungleMenu.Add("jungleE", new CheckBox("JungleClear [E]"));
            JungleMenu.Add("jungleW", new CheckBox("JungleClear [W]", false));
            JungleMenu.Add("manaJung", new Slider("Min Mana For JungleClear", 50, 0, 100));

            Items = Menu.AddSubMenu("Items Settings", "Items");
            Items.AddGroupLabel("Items Settings");
            Items.Add("BOTRK", new CheckBox("Use [Botrk]"));
            Items.Add("ihp", new Slider("My HP Use BOTRK <=", 50));
            Items.Add("ihpp", new Slider("Enemy HP Use BOTRK <=", 50));
            Items.AddGroupLabel("Qss Settings");
            Items.Add("Qss", new CheckBox("Use Qss"));
            Items.AddGroupLabel("Qss On CC");
            Items.Add("stun", new CheckBox("Stuns"));
            Items.Add("rot", new CheckBox("Root"));
            Items.Add("tunt", new CheckBox("Taunt"));
            Items.Add("snare", new CheckBox("Snare"));
            Items.Add("charm", new CheckBox("Charm", false));
            Items.Add("slow", new CheckBox("Slows", false));
            Items.Add("blind", new CheckBox("Blinds", false));
            Items.Add("fear", new CheckBox("Fear", false));
            Items.Add("silence", new CheckBox("Silence", false));
            Items.Add("supperss", new CheckBox("Supperss", false));
            Items.Add("poly", new CheckBox("Polymorph", false));
            Items.Add("delay", new Slider("Humanizer Qss Delay", 0, 0, 1500));

            Misc = Menu.AddSubMenu("Misc Settings", "Draw");
            Misc.AddGroupLabel("Anti Gapcloser");
            Misc.Add("antiGap", new CheckBox("Anti Gapcloser"));
            Misc.Add("antiRengar", new CheckBox("Anti Rengar"));
            Misc.Add("antiKZ", new CheckBox("Anti Kha'Zix"));
            Misc.Add("inter", new CheckBox("Use [R] Interupt"));
            Misc.AddGroupLabel("Drawings Settings");
            Misc.Add("DrawE", new CheckBox("Draw E"));
            Misc.Add("DrawW", new CheckBox("Draw W", false));
            Misc.Add("Notifications", new CheckBox("Notifications Can Kill R"));

            Skin = Menu.AddSubMenu("Skin Changer", "SkinChanger");
            Skin.Add("checkSkin", new CheckBox("Use Skin Changer"));
            Skin.Add("skin.Id", new ComboBox("Skin Mode", 0, "Classic", "Riot Tristana", "Earnest Elf Tristana", "Firefighter Tristana", "Guerilla Tristana", "Rocket Tristana", "Color Tristana", "Color Tristana", "Color Tristana", "Color Tristana", "Dragon Trainer Tristana"));

            Game.OnTick                      += Game_OnTick;
            Drawing.OnDraw                   += Drawing_OnDraw;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapCloser;
            Interrupter.OnInterruptableSpell += Interupt;
            GameObject.OnCreate              += GameObject_OnCreate;
        }
コード例 #39
0
ファイル: Program.cs プロジェクト: panicguy/Balles
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("Ryze"))
            {
                return;
            }
            Chat.Print("Ball Ryze7 Loaded!", Color.GreenYellow);
            Chat.Print("Doctor7 Good Luck!", Color.Yellow);
            Bootstrap.Init(null);

            Q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 1500, 50);
            Q.AllowedCollisionCount = 0;
            W      = new Spell.Targeted(SpellSlot.W, 600);
            E      = new Spell.Targeted(SpellSlot.E, 600);
            R      = new Spell.Active(SpellSlot.R);
            Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            Seraph = new Item(3040);
            menu   = MainMenu.AddMenu("Ryze7", "Ryze");
            menu.AddLabel(" FEATURES ");
            menu.AddLabel(" Combo Mode ");
            menu.AddLabel(" Auto Stacks ");
            menu.AddLabel(" Block AA In Combo ");
            menu.AddLabel(" Leave Feedback For Any Bugs ");

            ComboMenu = menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.Add("ComboQ", new CheckBox("Spell [Q]"));
            ComboMenu.Add("ComboW", new CheckBox("Spell [W]"));
            ComboMenu.Add("ComboE", new CheckBox("Spell [E]"));
            ComboMenu.Add("ComboR", new CheckBox("Spell [R]"));
            ComboMenu.Add("Human", new Slider("Humanizer Delay", 200, 0, 1000));

            HarassMenu = menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.Add("HQ", new CheckBox("Spell [Q]"));
            HarassMenu.Add("HW", new CheckBox("Spell [W]"));
            HarassMenu.Add("HE", new CheckBox("Spell [E]"));
            HarassMenu.Add("HarassMana", new Slider("Min Mana For Harass", 50, 0, 100));

            LastHitMenu = menu.AddSubMenu("LastHit Settings", "LastHit");
            LastHitMenu.Add("LHQ", new CheckBox("Spell [Q]"));
            LastHitMenu.Add("LHW", new CheckBox("Spell [W]", false));
            LastHitMenu.Add("LHE", new CheckBox("Spell [E]", false));
            LastHitMenu.Add("LastHitMana", new Slider("Min Mana For LastHit", 50, 0, 100));

            ClearMenu = menu.AddSubMenu("LaneClear Settings", "LaneClear");
            ClearMenu.Add("LCQ", new CheckBox("Spell [Q]"));
            ClearMenu.Add("LCW", new CheckBox("Spell [W]"));
            ClearMenu.Add("LCE", new CheckBox("Spell [E]"));
            ClearMenu.Add("LCR", new CheckBox("Spell [R]"));
            ClearMenu.Add("LaneClearMana", new Slider("Min Mana For LaneClear", 50, 0, 100));

            JungleMenu = menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleMenu.Add("JQ", new CheckBox("Spell [Q]"));
            JungleMenu.Add("JW", new CheckBox("Spell [W]"));
            JungleMenu.Add("JE", new CheckBox("Spell [E]"));
            JungleMenu.Add("JR", new CheckBox("Spell [R]"));
            JungleMenu.Add("JungleClearMana", new Slider("Min Mana For JungleClear", 30, 0, 100));

            KsMenu = menu.AddSubMenu("KillSteal Settings", "KillSteal");
            KsMenu.AddSeparator(10);
            KsMenu.AddGroupLabel("KillSteal Setting");
            KsMenu.Add("KsQ", new CheckBox("Spell [Q]"));
            KsMenu.Add("KsW", new CheckBox("Spell [W]"));
            KsMenu.Add("KsE", new CheckBox("Spell [E]"));
            KsMenu.Add("KsIgnite", new CheckBox("Use [Ignite] KillSteal"));

            Misc = menu.AddSubMenu("Misc Settings", "Misc");
            Misc.AddGroupLabel("AntiGap Setting");
            Misc.Add("gapw", new CheckBox("AntiGap [W]"));
            Misc.AddGroupLabel("Seraph Settings");
            Misc.Add("dts", new CheckBox("Use Seraph"));
            Misc.Add("Hp", new Slider("HP For Seraph", 30, 0, 100));
            Misc.AddGroupLabel("Skin Changer");
            Misc.Add("checkSkin", new CheckBox("Use Skin Changer"));
            Misc.Add("skin.Id", new ComboBox("Skin Mode", 3, "Default", "1", "2", "3", "4", "5", "6", "7", "8"));


            Autos = menu.AddSubMenu("Stacks Settings", "Stacks");
            Autos.Add("AutoStack", new KeyBind("Auto Stack", true, KeyBind.BindTypes.PressToggle, 'T'));
            Autos.Add("MaxStack", new Slider("Keep Max Stacks", 2, 1, 5));
            Autos.Add("StackMana", new Slider("Min Mana AutoStack", 70, 0, 100));

            Draws = menu.AddSubMenu("Drawings Settings", "Draw");
            Draws.AddSeparator(10);
            Draws.AddGroupLabel("Drawings Setting");
            Draws.Add("DrawQ", new CheckBox("Q Range"));
            Draws.Add("DrawW", new CheckBox("W / E Range"));

            Drawing.OnDraw        += Drawing_OnDraw;
            Game.OnTick           += Game_OnTick;
            Gapcloser.OnGapcloser += AntiGapCloser;
        }
コード例 #40
0
ファイル: Program.cs プロジェクト: unrealirc/EloBuddy
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Shen")
            {
                return;
            }
            Bootstrap.Init(null);
            Tiamat = new Item((int)ItemId.Tiamat_Melee_Only, Player.Instance.GetAutoAttackRange());
            Hydra  = new Item((int)ItemId.Ravenous_Hydra_Melee_Only, Player.Instance.GetAutoAttackRange());
            Titan  = new Item((int)ItemId.Titanic_Hydra, Player.Instance.GetAutoAttackRange());
            Q      = new Spell.Skillshot(SpellSlot.Q, 2000, SkillShotType.Linear, 500, 2500, 150);
            W      = new Spell.Active(SpellSlot.W);
            E      = new Spell.Skillshot(SpellSlot.E, 610, SkillShotType.Linear, 500, 1600, 50);
            R      = new Spell.Targeted(SpellSlot.R, 31000);

            if (HasSpell("summonerdot"))
            {
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            }
            Exhaust = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerexhaust"), 650);
            var flashSlot = Shen.GetSpellSlotFromName("summonerflash");

            Flash            = new Spell.Skillshot(flashSlot, 32767, SkillShotType.Linear);
            _randuin         = new Item((int)ItemId.Randuins_Omen);
            _abilitySequence = new[] { 1, 3, 2, 1, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2 };

            ShenMenu = MainMenu.AddMenu("BloodimirShen", "bloodimirshen");
            ShenMenu.AddGroupLabel("Bloodimir Shen");
            ShenMenu.AddSeparator();
            ShenMenu.AddLabel("Bloodimir Shen Reworked v2.0.1.1");

            _comboMenu = ShenMenu.AddSubMenu("Combo", "sbtw");
            _comboMenu.AddGroupLabel("Combo Settings");
            _comboMenu.AddSeparator();
            _comboMenu.Add("usecomboq", new CheckBox("Use Q"));
            _comboMenu.Add("autow", new CheckBox("Auto W"));
            _comboMenu.Add("usecomboe", new CheckBox("Use E"));
            _comboMenu.Add("useignite", new CheckBox("Use Ignite"));

            _skinMenu = ShenMenu.AddSubMenu("Skin Changer", "skin");
            _skinMenu.AddGroupLabel("Choose the desired skin");

            var skinchange = _skinMenu.Add("sID", new Slider("Skin", 5, 0, 6));
            var sid        = new[]
            {
                "Default", "Frozen", "Yellow Jacket", "Surgeon", "Blood Moon", "Warlord", "TPA"
            };

            skinchange.DisplayName    = sid[skinchange.CurrentValue];
            skinchange.OnValueChange +=
                delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs changeArgs)
            {
                sender.DisplayName = sid[changeArgs.NewValue];
            };

            _eMenu = ShenMenu.AddSubMenu("Taunt", "etaunt");
            _eMenu.AddGroupLabel("E Settings");
            _eMenu.Add("eslider", new Slider("Minimum Enemy to Taunt", 1, 0, 5));
            _eMenu.Add("fleee", new CheckBox("Use E Flee"));
            _eMenu.AddSeparator();
            foreach (var obj in ObjectManager.Get <AIHeroClient>().Where(obj => obj.Team != Shen.Team))
            {
                _eMenu.Add("taunt" + obj.ChampionName.ToLower(), new CheckBox("Taunt " + obj.ChampionName));
            }
            _eMenu.Add("flashe", new KeyBind("Flash E", false, KeyBind.BindTypes.HoldActive, 'Y'));
            _eMenu.Add("e", new KeyBind("E", false, KeyBind.BindTypes.HoldActive, 'E'));

            _ultMenu = ShenMenu.AddSubMenu("ULT", "ultmenu");
            _ultMenu.AddGroupLabel("ULT");
            _ultMenu.AddSeparator();
            _ultMenu.Add("autoult", new CheckBox("Auto Ult on Key Press"));
            _ultMenu.Add("rslider", new Slider("Health Percent for Ult", 20));
            _ultMenu.AddSeparator();
            _ultMenu.Add("ult", new KeyBind("ULT", false, KeyBind.BindTypes.HoldActive, 'R'));
            _ultMenu.AddSeparator();
            foreach (var obj in ObjectManager.Get <AIHeroClient>().Where(obj => obj.Team == Shen.Team))
            {
                _ultMenu.Add("ult" + obj.ChampionName.ToLower(), new CheckBox("Ult" + obj.ChampionName));
            }

            MiscMenu = ShenMenu.AddSubMenu("Misc", "misc");
            MiscMenu.AddGroupLabel("Misc");
            MiscMenu.AddSeparator();
            MiscMenu.Add("LCQ", new CheckBox("Smart LaneClear"));
            MiscMenu.Add("inte", new CheckBox("Interrupt Spells"));
            MiscMenu.Add("TUT", new CheckBox("Auto Taunt Under Turret"));
            MiscMenu.AddSeparator();
            MiscMenu.Add("support", new CheckBox("Support Mode", false));
            MiscMenu.Add("useexhaust", new CheckBox("Use Exhaust"));
            MiscMenu.Add("randuin", new CheckBox("Use Randuin"));
            MiscMenu.Add("lvlup", new CheckBox("Auto Level Up Spells", false));
            MiscMenu.AddSeparator();
            foreach (var source in ObjectManager.Get <AIHeroClient>().Where(a => a.IsEnemy))
            {
                MiscMenu.Add(source.ChampionName + "exhaust",
                             new CheckBox("Exhaust " + source.ChampionName, false));
            }


            DrawMenu = ShenMenu.AddSubMenu("Drawings", "drawings");
            DrawMenu.AddGroupLabel("Drawings");
            DrawMenu.AddSeparator();
            DrawMenu.Add("drawb", new CheckBox("Draw Blade"));
            DrawMenu.Add("drawe", new CheckBox("Draw E"));
            DrawMenu.Add("drawfe", new CheckBox("Draw FlashE"));


            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Game.OnUpdate                  += OnUpdate;
            Drawing.OnDraw                 += OnDraw;
            AttackableUnit.OnDamage        += OnDamage;
            Orbwalker.OnPreAttack          += Orbwalker_OnPreAttack;
            Orbwalker.OnPostAttack         += Orbwalker_OnPostAttack;
            Obj_AI_Base.OnProcessSpellCast += Game_ProcessSpell;
            Core.DelayAction(FlashE, 1);
        }
コード例 #41
0
ファイル: Program.cs プロジェクト: minhhieu0701/EloBuddy
        private static void Loading_OnLoadingComplete(EventArgs eventArgs)
        {
            if (Player.Instance.Hero != Champion.Blitzcrank)
            {
                return;
            }

            Chat.Print("aiRTako Blitzcrank: Welcome to use my Addon!", System.Drawing.Color.Orange);

            var slot = Player.Instance.Spellbook.Spells.FirstOrDefault(x => x.Name.ToLower().Contains("smite"));

            if (slot != null)
            {
                Smite = slot.Slot;
            }

            Q = new Spell.Skillshot(SpellSlot.Q, 950, SkillShotType.Linear, 250, 1800, 80, DamageType.Magical);
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Active(SpellSlot.E);
            R = new Spell.Skillshot(SpellSlot.R, 545, SkillShotType.Circular);

            Menu = MainMenu.AddMenu("aiRTako Biltzcrank", "aiRTako Biltzcrank");

            ComboMenu = Menu.AddSubMenu("Combo", "Combo");
            {
                ComboMenu.AddLabel("Q Target Settings");
                foreach (var target in EntityManager.Heroes.Enemies)
                {
                    ComboMenu.Add("ComboQ" + target.ChampionName, new CheckBox(target.ChampionName));
                }

                ComboMenu.AddSeparator();

                ComboMenu.AddLabel("Q Settings");
                ComboMenu.Add("ComboQ", new CheckBox("Use Q"));

                ComboMenu.AddSeparator();

                ComboMenu.AddLabel("W Settings");
                ComboMenu.Add("ComboW", new CheckBox("Use W", false));

                ComboMenu.AddSeparator();

                ComboMenu.AddLabel("E Settings");
                ComboMenu.Add("ComboE", new CheckBox("Use E"));

                ComboMenu.AddSeparator();

                ComboMenu.AddLabel("R Settings");
                ComboMenu.Add("ComboR", new CheckBox("Use R"));
            }

            HarassMenu = Menu.AddSubMenu("Harass", "Harass");
            {
                HarassMenu.AddLabel("Q Target Settings");
                foreach (var target in EntityManager.Heroes.Enemies)
                {
                    HarassMenu.Add("HarassQ" + target.ChampionName, new CheckBox(target.ChampionName));
                }

                HarassMenu.AddSeparator();

                HarassMenu.AddLabel("Q Settings");
                HarassMenu.Add("HarassQ", new CheckBox("Use Q"));

                HarassMenu.AddSeparator();

                HarassMenu.AddLabel("E Settings");
                HarassMenu.Add("HarassE", new CheckBox("Use E"));

                HarassMenu.AddSeparator();

                HarassMenu.AddLabel("Mana Settings");
                HarassMenu.Add("HarassMana", new Slider("Min Mana %", 60));
            }

            AutoMenu = Menu.AddSubMenu("Auto", "Auto");
            {
                AutoMenu.AddLabel("Q Target Settings");
                foreach (var target in EntityManager.Heroes.Enemies)
                {
                    AutoMenu.Add("AutoQ" + target.ChampionName, new CheckBox(target.ChampionName));
                }

                AutoMenu.AddSeparator();

                AutoMenu.AddLabel("Q Settings");
                AutoMenu.Add("AutoQ", new KeyBind("Use Q", false, KeyBind.BindTypes.PressToggle, 'T'));

                AutoMenu.AddSeparator();

                AutoMenu.AddLabel("Mana Settings");
                AutoMenu.Add("AutoMana", new Slider("Min Mana %", 60));
            }

            JungleStealMenu = Menu.AddSubMenu("JungleSteal", "JungleSteal");
            {
                JungleStealMenu.AddLabel("Global Settings");
                JungleStealMenu.Add("JungleEnabled", new CheckBox("Enbaled Jungle Steal"));

                JungleStealMenu.AddSeparator();

                JungleStealMenu.AddLabel("Q Settings");
                JungleStealMenu.Add("JungleQ", new CheckBox("Use Q"));

                JungleStealMenu.AddSeparator();

                JungleStealMenu.AddLabel("R Settings");
                JungleStealMenu.Add("JungleR", new CheckBox("Use R"));

                JungleStealMenu.AddSeparator();

                JungleStealMenu.AddLabel("Other Settings");
                JungleStealMenu.Add("JungleAlly", new CheckBox("If Have Ally In Range Dont Steal"));
                JungleStealMenu.Add("JungleAllyRange", new Slider("Search Ally Range", 500, 200, 920));

                JungleStealMenu.AddSeparator();

                JungleStealMenu.AddLabel("Steal Settings");
                foreach (var item in SmiteObjects)
                {
                    JungleStealMenu.Add($"{item.Value}", new CheckBox($"{item.Key}"));
                }
            }

            MiscMenu = Menu.AddSubMenu("Misc", "Misc");
            {
                MiscMenu.AddLabel("Q Settings");
                MiscMenu.Add("SmiteQ", new CheckBox("Smite Q"));
                MiscMenu.Add("InterruptQ", new CheckBox("Interrupt Spell"));
                MiscMenu.Add("MinQRange", new Slider("Min Cast Q Range", 250, 100, 920));

                MiscMenu.AddSeparator();

                MiscMenu.AddLabel("E Settings");
                MiscMenu.Add("AntiGapE", new CheckBox("Anti Gaplcoser"));

                MiscMenu.AddSeparator();

                MiscMenu.AddLabel("R Settings");
                MiscMenu.Add("InterruptR", new CheckBox("Interrupt Spell"));
            }

            DrawMenu = Menu.AddSubMenu("Drawings", "Drawings");
            {
                DrawMenu.AddLabel("Spell Range");
                DrawMenu.Add("DrawQ", new CheckBox("Draw Q Range", false));
                DrawMenu.Add("DrawR", new CheckBox("Draw R Range", false));
                DrawMenu.AddLabel("Auto Q Status");
                DrawMenu.Add("DrawAutoQ", new CheckBox("Draw Auto Q Status"));
                DamageIndicator.AddToMenu(DrawMenu);
            }

            Game.OnUpdate                    += Game_OnUpdate;
            Orbwalker.OnPostAttack           += Orbwalker_OnPostAttack;
            Obj_AI_Base.OnBuffGain           += Obj_AI_Base_OnBuffGain;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Drawing.OnDraw                   += Drawing_OnDraw;
        }
コード例 #42
0
        static void Game_OnStart(EventArgs args)
        {
            try
            {
                if (ChampionName != PlayerInstance.BaseSkinName)
                {
                    return;
                }

                Bootstrap.Init(null);
                Chat.Print("KTrundle Başarıyla yüklendi", Color.Green);

                Q = new Spell.Active(SpellSlot.Q, 125);
                W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 1, 2000, 900);
                W.AllowedCollisionCount = int.MaxValue;
                E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Circular, 1, 1600, 188);
                E.AllowedCollisionCount = int.MaxValue;
                R = new Spell.Targeted(SpellSlot.R, 700);

                Menu = MainMenu.AddMenu("KTrundle", "Trundle");
                Menu.AddSeparator();
                Menu.AddLabel("Bruno105 Tarafından");
                Menu.AddLabel("Çeviri TRAdana");


                //------------//
                //-Mode Menu-//
                //-----------//

                var Enemies = EntityManager.Heroes.Enemies.Where(a => !a.IsMe).OrderBy(a => a.BaseSkinName);
                ModesMenu1 = Menu.AddSubMenu("Combo/Harass/KS", "Modes1Trundle");
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Combo Ayarları");
                ModesMenu1.Add("ComboQ", new CheckBox("Q kullan", true));
                ModesMenu1.Add("ComboW", new CheckBox("W kullan", true));
                ModesMenu1.Add("ComboE", new CheckBox("E kullan", true));
                ModesMenu1.Add("ComboR", new CheckBox("R kullan", true));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("R kullan şurda:");
                foreach (var a in Enemies)
                {
                    ModesMenu1.Add("Ult_" + a.BaseSkinName, new CheckBox(a.BaseSkinName));
                }
                ModesMenu1.Add("useI", new CheckBox("Komboda itemler kullan", true));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Dürtme Ayarları");
                ModesMenu1.Add("ManaH", new Slider("Manam şundan azsa kullanma <=", 40));
                ModesMenu1.Add("HarassQ", new CheckBox("Q kullan", true));
                ModesMenu1.Add("HarassW", new CheckBox("W kullan", true));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Kill çakma Ayarları");
                ModesMenu1.Add("KQ", new CheckBox("Q kullan", true));

                ModesMenu2 = Menu.AddSubMenu("Lane/Jungle/Last", "Modes2Trundle");
                ModesMenu2.AddLabel("Sonvuruş Ayarları");
                ModesMenu2.Add("ManaL", new Slider("Mana şundan azsa büyü kullanma <= ", 40));
                ModesMenu2.Add("LastQ", new CheckBox("Q kullan", true));
                ModesMenu2.AddLabel("Lanetemizleme Ayarları");
                ModesMenu2.Add("ManaF", new Slider("Mana şundan azsa büyü kullanma <=", 40));
                ModesMenu2.Add("FarmQ", new CheckBox("Q kullan", true));
                ModesMenu2.Add("FarmW", new CheckBox("W kullan", true));
                ModesMenu2.Add("MinionW", new Slider("W için şu kadar minyon :", 3, 1, 5));
                ModesMenu2.AddLabel("Orman Temizleme Ayarları");
                ModesMenu2.Add("ManaJ", new Slider("Mana şundan azsa büyü kullanma <=", 40));
                ModesMenu2.Add("JungQ", new CheckBox("Q kullan", true));
                ModesMenu2.Add("JungW", new CheckBox("W kullan", true));



                //------------//
                //-Draw Menu-//
                //----------//
                DrawMenu = Menu.AddSubMenu("Draws", "DrawTrundle");
                DrawMenu.Add("drawAA", new CheckBox("Göster  AA", true));
                DrawMenu.Add("drawQ", new CheckBox(" Göster  Q", true));
                DrawMenu.Add("drawE", new CheckBox(" Göster  E", true));
                DrawMenu.Add("drawR", new CheckBox(" Göster  R", true));
                //------------//
                //-Misc Menu-//
                //----------//
                Misc = Menu.AddSubMenu("MiscMenu", "Misc");
                Misc.Add("useEGapCloser", new CheckBox("GapCloser için E", true));
                Misc.Add("useEInterrupter", new CheckBox("Interrupt için E", true));
                Misc.Add("resetAA", new CheckBox("AA sıfırla"));
            }

            catch (Exception e)
            {
                Chat.Print("KTrundle: Exception occured while Initializing Addon. Error: " + e.Message);
            }
        }
コード例 #43
0
ファイル: Extensions.cs プロジェクト: tekintr/Elobuddy
        public static bool CanCast(this Obj_AI_Base target, Spell.Active spell, Menu m)
        {
            var asBase = spell as Spell.SpellBase;

            return(target.CanCast(asBase, m));
        }
コード例 #44
0
        static TwistedFate()
        {
            Q = new Spell.Skillshot(SpellSlot.Q, DamageType.Magical)
            {
                AllowedCollisionCount = int.MaxValue,
            };

            W = new Spell.Active(SpellSlot.W, (uint)player.AttackRange + 250);

            R = new Spell.Skillshot(SpellSlot.R, 5500, SkillShotType.Circular, 1500, int.MaxValue, (int)player.BoundingRadius + 30, DamageType.Mixed);

            DamageIndicator.DamageDelegate = HandleDamageIndicator;

            Game.OnUpdate += delegate(EventArgs args)
            {
                //Get W name
                var wName  = player.Spellbook.GetSpell(SpellSlot.W).Name;
                var wState = player.Spellbook.CanUseSpell(SpellSlot.W);

                //It's Ready
                if ((wState.Equals(SpellState.Ready) && wName.Equals("PickACard") &&
                     (!Status.Equals(SelectStatus.Selecting) || Core.GameTickCount - LastWTick > 500)) || player.IsDead)
                {
                    Status = SelectStatus.Ready;
                }
                //It's cooldown
                else if ((wState.Equals(SpellState.Cooldown) || wState.Equals(SpellState.NoMana) || wState.Equals(SpellState.NotLearned)) && wName.Equals("PickACard"))
                {
                    CardSeclecting = CardType.None;
                    Status         = SelectStatus.CannotUse;
                }
                //As E teemo
                else if (wState.Equals(SpellState.Surpressed) && !player.IsDead)
                {
                    Status = SelectStatus.Selected;
                }
                if (CardSeclecting.Equals(CardType.Blue) && wName.Equals("BlueCardLock") && Core.GameTickCount > LastWTick + 120)
                {
                    player.Spellbook.CastSpell(SpellSlot.W, false);
                }
                else if (CardSeclecting.Equals(CardType.Red) && wName.Equals("RedCardLock") && Core.GameTickCount > LastWTick + 120)
                {
                    player.Spellbook.CastSpell(SpellSlot.W, false);
                }
                else if (CardSeclecting.Equals(CardType.Yellow) && wName.Equals("GoldCardLock") && Core.GameTickCount > LastWTick + 120)
                {
                    player.Spellbook.CastSpell(SpellSlot.W, false);
                }
            };
            AIHeroClient.OnProcessSpellCast += delegate(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
            {
                if (!sender.IsMe)
                {
                    return;
                }
                if (args.SData.Name.Equals("PickACard"))
                {
                    Status = SelectStatus.Selecting;
                }
                if (args.SData.Name.Equals("BlueCardLock") || args.SData.Name.Equals("RedCardLock") || args.SData.Name.Equals("GoldCardLock"))
                {
                    Status         = SelectStatus.Selected;
                    CardSeclecting = CardType.None;
                }
                //if (args.SData.Name.Equals("Destiny") && MenuValue.General.RW)
                //{
                //   Core.DelayAction(() => Pick(CardType.Yellow), 1300);
                //}
                if (args.SData.Name.Equals("Gate") && MenuValue.General.RW)
                {
                    Pick(CardType.Yellow);
                }
            };
        }
コード例 #45
0
ファイル: Malphite.cs プロジェクト: MBalack/Balles
        static void OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("Malphite"))
            {
                return;
            }
            Chat.Print("Doctor's Malphite Loaded!", Color.Orange);
            Bootstrap.Init(null);
            Q   = new Spell.Targeted(SpellSlot.Q, 625);
            W   = new Spell.Active(SpellSlot.W, 250);
            E   = new Spell.Active(SpellSlot.E, 400);
            R   = new Spell.Skillshot(SpellSlot.R, 1000, SkillShotType.Circular, 250, 700, 270);
            Thm = new Font(Drawing.Direct3DDevice, new FontDescription {
                FaceName = "Tahoma", Height = 32, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType
            });
            Thn = new Font(Drawing.Direct3DDevice, new FontDescription {
                FaceName = "Tahoma", Height = 20, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType
            });
            Ignite = new Spell.Targeted(_Player.GetSpellSlotFromName("summonerdot"), 600);
            Menu   = MainMenu.AddMenu("Malphite", "Malphite");
            Menu.AddGroupLabel("Doctor7");
            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("ComboQ", new CheckBox("Use [Q] Combo"));
            ComboMenu.Add("ComboW", new CheckBox("Use [W] Combo"));
            ComboMenu.Add("ComboE", new CheckBox("Use [E] Combo"));
            ComboMenu.Add("DisQ", new Slider("Use [Q] If Enemy Distance >", 10, 0, 650));
            ComboMenu.AddLabel("[Q] Distance < 125 = Always [Q]");
            ComboMenu.AddGroupLabel("Ultimate Settings");
            ComboMenu.Add("ComboFQ", new KeyBind("Use [R] Selected Target", false, KeyBind.BindTypes.HoldActive, 'T'));
            ComboMenu.Add("ComboR", new CheckBox("Use [R] Aoe"));
            ComboMenu.Add("MinR", new Slider("Min Hit Enemies Use [R] Aoe", 3, 1, 5));
            ComboMenu.AddGroupLabel("Interrupt Settings");
            ComboMenu.Add("inter", new CheckBox("Use [R] Interrupt", false));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("HarassQ", new CheckBox("Use [Q] Harass"));
            HarassMenu.Add("HarassW", new CheckBox("Use [W] Harass"));
            HarassMenu.Add("HarassE", new CheckBox("Use [E] Harass"));
            HarassMenu.Add("DisQ2", new Slider("Use [Q] If Enemy Distance >", 350, 0, 650));
            HarassMenu.AddLabel("[Q] Distance < 125 = Always [Q]");
            HarassMenu.Add("ManaQ", new Slider("Mana Harass", 40));

            JungleClearMenu = Menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleClearMenu.AddGroupLabel("JungleClear Settings");
            JungleClearMenu.Add("QJungle", new CheckBox("Use [Q] JungleClear"));
            JungleClearMenu.Add("WJungle", new CheckBox("Use [W] JungleClear"));
            JungleClearMenu.Add("EJungle", new CheckBox("Use [E] JungleClear"));
            JungleClearMenu.Add("JungleMana", new Slider("Mana JungleClear", 20));

            LaneClearMenu = Menu.AddSubMenu("LaneClear Settings", "LaneClear");
            LaneClearMenu.AddGroupLabel("Lane Clear Settings");
            LaneClearMenu.Add("LaneClearQ", new CheckBox("Use [Q] LaneClear"));
            LaneClearMenu.Add("LaneClearW", new CheckBox("Use [W] LaneClear"));
            LaneClearMenu.Add("LaneClearE", new CheckBox("Use [E] LaneClear"));
            LaneClearMenu.Add("ManaLC", new Slider("Mana LaneClear", 50));
            LaneClearMenu.AddGroupLabel("LastHit Settings");
            LaneClearMenu.Add("LastHitQ", new CheckBox("Use [Q] LastHit"));
            LaneClearMenu.Add("ManaLH", new Slider("Mana LastHit", 50));

            KillStealMenu = Menu.AddSubMenu("KillSteal Settings", "KillSteal");
            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("KsQ", new CheckBox("Use [Q] KillSteal"));
            KillStealMenu.Add("KsE", new CheckBox("Use [E] KillSteal"));
            KillStealMenu.Add("ign", new CheckBox("Use [Ignite] KillSteal"));
            KillStealMenu.AddSeparator();
            KillStealMenu.AddGroupLabel("Ultimate Settings");
            KillStealMenu.Add("KsR", new CheckBox("Use [R] KillSteal"));
            KillStealMenu.Add("minKsR", new Slider("Min [R] Distance KillSteal", 100, 1, 1000));
            KillStealMenu.Add("RKb", new KeyBind("[R] Semi Manual Key", false, KeyBind.BindTypes.HoldActive, 'Y'));
            KillStealMenu.AddGroupLabel("Recommended Distance 600");

            Drawings = Menu.AddSubMenu("Draw Settings", "Draw");
            Drawings.AddGroupLabel("Drawing Settings");
            Drawings.Add("DrawQ", new CheckBox("[Q] Range"));
            Drawings.Add("DrawE", new CheckBox("[E] Range"));
            Drawings.Add("DrawR", new CheckBox("[R] Range"));
            Drawings.Add("DrawRhit", new CheckBox("[R] Draw Hit"));
            Drawings.Add("Notifications", new CheckBox("Alerter Can Killable [R]"));
            Drawings.Add("Draw_Disabled", new CheckBox("Disabled Drawings"));

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate  += Game_OnUpdate;
            Interrupter.OnInterruptableSpell += Interupt;
        }
コード例 #46
0
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Evelynn")
            {
                return;
            }
            Bootstrap.Init(null);
            Q  = new Spell.Active(SpellSlot.Q, 475);
            W  = new Spell.Active(SpellSlot.W);
            E  = new Spell.Targeted(SpellSlot.E, 225);
            _r = new Spell.Skillshot(SpellSlot.R, 900, SkillShotType.Circular, 250, 1200, 150);

            _eveMenu = MainMenu.AddMenu("CH汉化-寡妇", "bloodimireve");
            _eveMenu.AddGroupLabel("Bloodimir.Evelynn");
            _eveMenu.AddSeparator();
            _eveMenu.AddLabel("CH汉化-寡妇 V1.0.1.0");

            ComboMenu = _eveMenu.AddSubMenu("连招", "sbtw");
            ComboMenu.AddGroupLabel("连招设置");
            ComboMenu.AddSeparator();
            ComboMenu.Add("usecomboq", new CheckBox("使用 Q"));
            ComboMenu.Add("usecombow", new CheckBox("使用 W"));
            ComboMenu.Add("usecomboe", new CheckBox("使用 E"));
            ComboMenu.Add("usecombor", new CheckBox("使用 R"));
            ComboMenu.Add("useignite", new CheckBox("使用 点燃"));
            ComboMenu.AddSeparator();
            ComboMenu.Add("rslider", new Slider("最低敌人数量使用 R", 1, 0, 5));

            _drawMenu = _eveMenu.AddSubMenu("线圈", "drawings");
            _drawMenu.AddGroupLabel("线圈设置");
            _drawMenu.AddSeparator();
            _drawMenu.Add("drawq", new CheckBox("显示 Q"));
            _drawMenu.Add("drawr", new CheckBox("显示 R"));
            _drawMenu.Add("drawe", new CheckBox("显示 R"));

            LaneJungleClear = _eveMenu.AddSubMenu("清野/清线", "lanejungleclear");
            LaneJungleClear.AddGroupLabel("清野/清线设置");
            LaneJungleClear.Add("LCE", new CheckBox("使用 E"));
            LaneJungleClear.Add("LCQ", new CheckBox("使用 Q"));

            LastHitMenu = _eveMenu.AddSubMenu("尾兵", "lasthit");
            LastHitMenu.AddGroupLabel("尾兵设置");
            LastHitMenu.Add("LHQ", new CheckBox("使用 Q"));

            _miscMenu = _eveMenu.AddSubMenu("杂项", "miscmenu");
            _miscMenu.AddGroupLabel("抢头");
            _miscMenu.AddSeparator();
            _miscMenu.Add("kse", new CheckBox("抢头 E"));
            _miscMenu.AddSeparator();
            _miscMenu.Add("ksq", new CheckBox("抢头 Q"));
            _miscMenu.Add("asw", new CheckBox("自动/智能 W"));

            _skinMenu = _eveMenu.AddSubMenu("换肤", "skin");
            _skinMenu.AddGroupLabel("选择想要使用的皮肤");

            var skinchange = _skinMenu.Add("sID", new Slider("皮肤", 2, 0, 4));
            var sid        = new[] { "Default", "Shadow", "Masquerade", "Tango", "Safecracker" };

            skinchange.DisplayName    = sid[skinchange.CurrentValue];
            skinchange.OnValueChange +=
                delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs changeArgs)
            {
                sender.DisplayName = sid[changeArgs.NewValue];
            };

            Game.OnUpdate  += Tick;
            Drawing.OnDraw += OnDraw;
        }
コード例 #47
0
        static void Game_OnStart(EventArgs args)
        {
            try
            {
                if (ChampionName != PlayerInstance.BaseSkinName)
                {
                    return;
                }

                Bootstrap.Init(null);
                Chat.Print("KSejuani Addon Loading Success", Color.Green);

                Q = new Spell.Skillshot(SpellSlot.Q, 650, SkillShotType.Linear, 0, 1600, 70);
                W = new Spell.Active(SpellSlot.W, 350);
                E = new Spell.Active(SpellSlot.E, 1000);
                R = new Spell.Skillshot(SpellSlot.R, 1175, SkillShotType.Linear, 250, 1600, 110);



                Menu = MainMenu.AddMenu("KSejuani", "sejuani");
                Menu.AddLabel("Criado por Bruno105");
                Menu.AddLabel("Çeviri TRAdana-");


                //------------//
                //-Mode Menu-//
                //-----------//


                ModesMenu1 = Menu.AddSubMenu("Kombo/Dürtme", "Modes1Sejuani");
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Kombo Ayarları");
                ModesMenu1.Add("ComboQ", new CheckBox("Komboda Q Kullan", true));
                ModesMenu1.Add("ComboW", new CheckBox("Komboda W Kullan", true));
                ModesMenu1.Add("ComboE", new CheckBox("Komboda E Kullan", true));
                ModesMenu1.Add("ComboR", new CheckBox("Komboda R Kullan", true));
                ModesMenu1.Add("MinR", new Slider("R için gerekli şampiyon:", 2, 1, 5));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Dürtme Ayarları");
                ModesMenu1.Add("ManaH", new Slider("Manam şundan azsa büyü kullanma <=", 40));
                ModesMenu1.Add("HarassQ", new CheckBox("Dürtmede Q Kullan", true));
                ModesMenu1.Add("HarassW", new CheckBox("Dürtmede W Kullan", true));
                ModesMenu1.Add("HarassE", new CheckBox("Dürtmede E Kullan", true));
                ModesMenu2 = Menu.AddSubMenu("Lane/Sonvuruş", "Modes2Sejuani");
                ModesMenu2.AddLabel("Sonvuruş Ayarları");
                ModesMenu2.Add("ManaL", new Slider("Manam şundan azsa büyü kullanma <=", 40));
                ModesMenu2.Add("LastQ", new CheckBox("Son vuruşta Q Kullan", true));
                ModesMenu2.Add("LastW", new CheckBox("Son vuruşta W Kullan", true));
                ModesMenu2.Add("LastE", new CheckBox("Son vuruşta E Kullan", true));
                ModesMenu2.AddLabel("Lane/Orman Temizleme Ayarları");
                ModesMenu2.Add("ManaF", new Slider("Manam şundan azsa büyü kullanma <=", 40));
                ModesMenu2.Add("FarmQ", new CheckBox("LaneTemizlemede Q Kullan", true));
                ModesMenu2.Add("FarmW", new CheckBox("LaneTemizlemede W Kullan", true));
                ModesMenu2.Add("FarmE", new CheckBox("LaneTemizlemede E KUllan", true));
                ModesMenu2.Add("MinionE", new Slider("E için gereken minyon sayısı :", 3, 1, 5));
                //------------//
                //-Draw Menu-//
                //----------//
                DrawMenu = Menu.AddSubMenu("Göstergeler", "DrawKassadin");
                DrawMenu.Add("drawAA", new CheckBox("AA Menzilini Göster", true));
                DrawMenu.Add("drawQ", new CheckBox(" Q Menzilini Göster", true));
                DrawMenu.Add("drawW", new CheckBox(" W menzilini göster", true));
                DrawMenu.Add("drawE", new CheckBox(" E menzilini göster", true));
                DrawMenu.Add("drawR", new CheckBox(" R menzilini göster", true));
                //------------//
                //-Misc Menu-//
                //----------//

                Misc = Menu.AddSubMenu("MiscMenu", "Misc");
                Misc.Add("aarest", new CheckBox("W ile AA sıfırla"));
                //Misc.Add("useQGapCloser", new CheckBox("Q on GapCloser", true));
                Misc.Add("eInterrupt", new CheckBox("Interrupt için E Kullan", true));
            }

            catch (Exception e)
            {
                Chat.Print("KSejuani: Exception occured while Initializing Addon. Error: " + e.Message);
            }
        }
コード例 #48
0
        static void Game_OnStart(EventArgs args)
        {
            Game.OnUpdate          += Game_OnUpdate;
            Game.OnTick            += OnTick;
            Obj_AI_Base.OnBuffGain += Common.OnBuffGain;
            GameObject.OnCreate    += OnCreate;
            Gapcloser.OnGapcloser  += Common.Gapcloser_OnGapCloser;
            Orbwalker.OnPreAttack  += OnPreAttack;
            Drawing.OnDraw         += Game_OnDraw;
            SkinBase = Player.Instance.SkinId;
            try
            {
                if (ChampionName != PlayerInstance.BaseSkinName)
                {
                    return;
                }

                Q = new Spell.Active(SpellSlot.Q, (uint)_Player.AttackRange + 50);
                W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, (int)0.5, 1400, 250);
                E = new Spell.Targeted(SpellSlot.E, (uint)_Player.AttackRange + 50);
                R = new Spell.Targeted(SpellSlot.R, (uint)_Player.AttackRange + 50);



                Bootstrap.Init(null);
                Chat.Print("GuTenTak Addon basariyla yuklendi", Color.Green);


                Menu = MainMenu.AddMenu("GuTenTak Tristana", "Tristana");
                Menu.AddSeparator();
                Menu.AddLabel("GuTenTak Tristana Addon");

                var Enemies = EntityManager.Heroes.Enemies.Where(a => !a.IsMe).OrderBy(a => a.BaseSkinName);
                ModesMenu1 = Menu.AddSubMenu("Menu", "Modes1Tristana");
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Combo Ayarları");
                ModesMenu1.Add("ComboQ", new CheckBox("Q Kullan", true));
                ModesMenu1.Add("ComboE", new CheckBox("E Kullan", true));
                ModesMenu1.Add("ComboEF", new CheckBox("Kombo modunda E ile düşmanı zorla", true));
                ModesMenu1.Add("ManualR", new KeyBind("Yarı otomatik R", false, KeyBind.BindTypes.HoldActive, 'T'));

                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("E List");
                foreach (var Enemy in EntityManager.Heroes.Enemies)
                {
                    ModesMenu1.Add(Enemy.ChampionName, new CheckBox("E Kullan " + Enemy.ChampionName, true));
                }
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Dürtme Ayarları");
                ModesMenu1.Add("HarassEF", new CheckBox("Dürtme modunda E ile zorla", true));
                ModesMenu1.Add("HarassQ", new CheckBox("Q Kullan", true));
                ModesMenu1.Add("HarassE", new CheckBox("E Kullan", true));
                ModesMenu1.Add("ManaHE", new Slider("Gereken Mana %", 60));
                ModesMenu1.AddSeparator();
                ModesMenu1.AddLabel("Kill Çalma Ayarları");
                ModesMenu1.Add("KS", new CheckBox("Kill Çalma Kullan", true));
                ModesMenu1.Add("KR", new CheckBox("R Kullan", true));
                ModesMenu1.Add("KER", new CheckBox("E + R Kullan", true));

                ModesMenu2 = Menu.AddSubMenu("Farm", "Modes2Tristana");
                ModesMenu2.AddLabel("Lane Clear Ayarları");
                ModesMenu2.AddSeparator();
                ModesMenu2.Add("FarmEF", new CheckBox("Laneclear modunda E ile zorlama", true));
                ModesMenu2.Add("FarmQ", new CheckBox("Q Kullan", true));
                ModesMenu2.Add("FarmE", new CheckBox("E Kullan", true));
                ModesMenu2.Add("ManaLE", new Slider("Mana %", 40));
                ModesMenu2.AddSeparator();
                ModesMenu2.AddLabel("Jungle Clear Ayarları");
                ModesMenu2.Add("JungleEF", new CheckBox("JungleClear E Forced Target", true));
                ModesMenu2.Add("JungleQ", new CheckBox("Use Q on JungleClear", true));
                ModesMenu2.Add("JungleE", new CheckBox("Use E on JungleClear", true));
                ModesMenu2.Add("ManaJE", new Slider("Mana %", 40));

                ModesMenu3 = Menu.AddSubMenu("Misc", "Modes3Tristana");
                ModesMenu3.Add("AntiGapW", new CheckBox("W Kullan şunun içni Anti-Gapcloser", true));
                ModesMenu3.Add("AntiGapR", new CheckBox("R Kullan şunun içni Anti-Gapcloser", false));
                ModesMenu3.Add("AntiGapKR", new CheckBox("R Kullan şunun içni Anti-Gapcloser (Khazix & Rengar)", true));
                ModesMenu3.Add("FleeW", new CheckBox("Kaçma modunda W", false));

                ModesMenu3.AddSeparator();
                ModesMenu3.AddLabel("Skin Hack");
                ModesMenu3.Add("skinhack", new CheckBox("Kostüm Hilesi Aktif", false));
                ModesMenu3.Add("skinId", new ComboBox("Skin Mode", 0, "Default", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"));

                ModesMenu3.AddSeparator();
                ModesMenu3.AddLabel("İtemleri Kullanma");
                ModesMenu3.Add("useYoumuu", new CheckBox("Kullan Youmuu", true));
                ModesMenu3.Add("usehextech", new CheckBox("Kullan Hextech", true));
                ModesMenu3.Add("useBotrk", new CheckBox("Kullan Botrk & Cutlass", true));
                ModesMenu3.Add("useQss", new CheckBox("Kullan QuickSilver", true));
                ModesMenu3.Add("minHPBotrk", new Slider("Mahvolmuş için can %", 80));
                ModesMenu3.Add("enemyMinHPBotrk", new Slider("Mahvolmuş için düşman canı %", 80));

                ModesMenu3.AddLabel("QSS Ayarları");
                ModesMenu3.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo"));
                ModesMenu3.Add("Stun", new CheckBox("Sabitleme", true));
                ModesMenu3.Add("Blind", new CheckBox("Kör", true));
                ModesMenu3.Add("Charm", new CheckBox("Çekicilik(Ahri)", true));
                ModesMenu3.Add("Suppression", new CheckBox("Önleme,Durdurma", true));
                ModesMenu3.Add("Polymorph", new CheckBox("Polymorph", true));
                ModesMenu3.Add("Fear", new CheckBox("Korku", true));
                ModesMenu3.Add("Taunt", new CheckBox("Tuzak", true));
                ModesMenu3.Add("Silence", new CheckBox("Sessiz", false));
                ModesMenu3.Add("QssDelay", new Slider("QSS Gecikmesi", 250, 0, 1000));

                ModesMenu3.AddLabel("QSS Ult Ayarları");
                ModesMenu3.Add("ZedUlt", new CheckBox("Zed R", true));
                ModesMenu3.Add("VladUlt", new CheckBox("Vladimir R", true));
                ModesMenu3.Add("FizzUlt", new CheckBox("Fizz R", true));
                ModesMenu3.Add("MordUlt", new CheckBox("Mordekaiser R", true));
                ModesMenu3.Add("PoppyUlt", new CheckBox("Poppy R", true));
                ModesMenu3.Add("QssUltDelay", new Slider("Ulti için QSS gecikmesi", 250, 0, 1000));

                DrawMenu = Menu.AddSubMenu("Draws", "DrawTristana");
                DrawMenu.Add("drawA", new CheckBox(" Göster AA menzili", true));
                DrawMenu.Add("drawW", new CheckBox(" Göster W", true));
                DrawMenu.Add("drawE", new CheckBox(" Göster E Yükü", true));
            }

            catch (Exception e)
            {
            }
        }
コード例 #49
0
        //GameLoad

        private static void GameLoad(EventArgs args)
        {
            InitEvents();

            //Damage Calculator (soon)



            //Spells

            Q = new Spell.Skillshot(SpellSlot.Q, 1050, SkillShotType.Linear, 250, 1650, 50)
            {
                AllowedCollisionCount = 1
            };

            W = new Spell.Active(SpellSlot.W, 750, DamageType.Magical);

            E = new Spell.Active(SpellSlot.E, uint.MaxValue, DamageType.Magical);

            R = new Spell.Active(SpellSlot.R, 550, DamageType.Magical);



            //Drawing Exection

            EloBuddy.Drawing.OnDraw += Drawing;

            //Game Tick Counter

            Game.OnTick += OnTick;

            //Chat Print

            {
                if (me.ChampionName != "Kennen")
                {
                    return;
                }
                Chat.Print("Welcome to CoKennen, Go Break The Game.");
            }

            //Main Menu

            FirstMenu = MainMenu.AddMenu("CoKennen", "coocle");
            FirstMenu.AddGroupLabel("CoKennen");
            FirstMenu.AddLabel(
                "this is my first addon, if there are any bugs please report to me on elobuddy or discord" +
                "Discord: Coocle#0510" +
                "Elobuddy: coocle");

            // Combo Menu (Finished)

            ComboMenu = FirstMenu.AddSubMenu("Combo", "combomenuid8913");

            ComboMenu.AddGroupLabel("Combo Menu");

            ComboMenu.Add("Q", new CheckBox("Use Q", true));

            ComboMenu.Add("proitize", new CheckBox("Proitize Enemy Champion that has the " +
                                                   "Passive Buff"));

            ComboMenu.Add("W", new CheckBox("Use W", true));

            ComboMenu.Add("SliderWCombo", new Slider("How Many Enemy's in Range to Hit??", 2, 1, 5));

            ComboMenu.Add("E", new CheckBox("Use E", true));

            ComboMenu.Add("R", new CheckBox("Use R", false));

            ComboMenu.Add("UseFlashInCombo", new Slider("Use Flash", 3, 1, 5));

            //Harass Menu (Finished)

            HarassMenu = FirstMenu.AddSubMenu("Harass", "HarassmenuId7941");

            HarassMenu.AddGroupLabel("Harass Menu");

            HarassMenu.Add("harassQ", new CheckBox("Use Q", true));

            HarassMenu.Add("harassW", new CheckBox("Use W", false));

            HarassMenu.Add("WEnemyCount", new Slider("Use W if there are {0}", 1, 1, 5));

            HarassMenu.Add("HarassEnergyManager", new Slider("Stop using harass if energy below {0}", 100, 0, 200));

            //Laneclear Menu (finished)

            LaneClearMenu = FirstMenu.AddSubMenu("Lane Clear", "LaneClear");

            LaneClearMenu.AddGroupLabel("Lane Clear Menu");

            LaneClearMenu.Add("LaneClearQ", new CheckBox("Use Q", true));

            LaneClearMenu.Add("LaneClearW", new CheckBox("Use W", true));

            LaneClearMenu.Add("EnergyManger", new Slider("Stop using skills at {0}", 100, 0, 200));

            LaneClearMenu.Add("LaneClearE", new CheckBox("Use E", false));

            LaneClearMenu.Add("LaneClearR", new CheckBox("Use R", false));

            LaneClearMenu.Add("LaneClearCountManager", new Slider("Use R if minions Exceed or Equal {0}", 15, 0, 40));

            //JungleClear Menu

            JungleClearMenu = FirstMenu.AddSubMenu("Jungle Clear", "JungleClear");

            JungleClearMenu.AddGroupLabel("Jungle Clear Menu");

            JungleClearMenu.Add("JungleClearQ", new CheckBox("Use Q", true));

            JungleClearMenu.Add("JungleClearW", new CheckBox("Use W", true));

            JungleClearMenu.Add("JungleClearE", new CheckBox("Use E", true));

            LaneClearMenu.Add("EnergyManger", new Slider("Stop using skills at {0}", 100, 0, 200));

            //Killsteal Menu

            KillStealMenu = FirstMenu.AddSubMenu("Kill Steal", "KillSteal");

            KillStealMenu.AddGroupLabel("Kill Steal Menu");

            KillStealMenu.Add("KillStealQ", new CheckBox("Use Q to killsteal?", true));

            KillStealMenu.Add("KillStealW", new CheckBox("Use W to killsteal?", true));

            //Draw Menu (Finished)

            DrawMenu = FirstMenu.AddSubMenu("Drawings", "drawmenuid412341");

            DrawMenu.AddGroupLabel("Ranges");

            DrawMenu.Add("drawQrange", new CheckBox("Draw Q", true));

            DrawMenu.Add("drawWrange", new CheckBox("Draw W", false));

            DrawMenu.Add("drawRrange", new CheckBox("Draw R", true));

            //Misc (Finished)

            MiscMenu = FirstMenu.AddSubMenu("Misc", "Miscmenuid9834");

            MiscMenu.AddGroupLabel("Misc Menu");

            MiscMenu.Add("MiscGapcloser", new CheckBox("Use E as gapclose?", true));

            MiscMenu.Add("LasthitMisc", new CheckBox(" Use Q to last hit?", true));

            MiscMenu.Add("LashitMiscW", new CheckBox("Use W to last hit?", false));

            MiscMenu.Add("DamageIndicator", new CheckBox("Show Killable? (placeholder)", false));
        }
コード例 #50
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.TahmKench)
            {
                return;
            }

            QSpell        = new Spell.Skillshot(SpellSlot.Q, 800, SkillShotType.Linear, 100, 2000, 75);
            WSpellSwallow = new Spell.Targeted(SpellSlot.W, 250);
            WSpellSpit    = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Linear, 100, 900, 75);
            ESpell        = new Spell.Active(SpellSlot.E);

            Menu = MainMenu.AddMenu("Kench Unbenched", "kbswag");
            Menu.AddGroupLabel("Kench Unbenched");

            ComboMenu = Menu.AddSubMenu("Combo Menu", "combomenuKench");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("Combo.Q", new CheckBox("Use Q"));
            ComboMenu.Add("Combo.QOnlyStun", new CheckBox("Use Q Only Stun / Out of AA"));
            ComboMenu.Add("Combo.W.Enemy", new CheckBox("Use W on Enemy"));
            ComboMenu.Add("Combo.W.Minion", new CheckBox("Use W on Minions to Spit"));
            ComboMenu.Add("Combo.E", new CheckBox("Use E"));

            HarassMenu = Menu.AddSubMenu("Harass Menu", "harassmenuKench");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("Harass.Q", new CheckBox("Use Q"));
            HarassMenu.Add("Harass.W.Enemy", new CheckBox("Use W on Enemy"));
            HarassMenu.Add("Harass.W.Minion", new CheckBox("Use W on Minions to Spit"));
            HarassMenu.Add("Harass.E", new CheckBox("Use E"));

            FarmingMenu = Menu.AddSubMenu("Farm Menu", "farmmenuKench");
            FarmingMenu.AddGroupLabel("Farm Settings");
            FarmingMenu.AddLabel("LastHit Settings");
            FarmingMenu.Add("LastHit.Q", new CheckBox("Use Q"));
            FarmingMenu.AddLabel("WaveClear Settings");
            FarmingMenu.Add("WaveClear.Q", new CheckBox("Use Q"));
            FarmingMenu.AddLabel("Jungle Settings");
            FarmingMenu.Add("Jungle.Q", new CheckBox("Use Q"));

            KenchSaver.Initialize();

            KillStealMenu = Menu.AddSubMenu("KillSteal Menu");
            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("KillSteal.Q", new CheckBox("Use Q"));
            KillStealMenu.Add("KillSteal.W.Swallow", new CheckBox("Use W Swallow"));
            KillStealMenu.Add("KillSteal.W.Spit", new CheckBox("Use W Swallow/Spit"));


            DrawMenu = Menu.AddSubMenu("Draw Menu", "drawMenuKench");
            DrawMenu.AddGroupLabel("Draw Settings");
            DrawMenu.Add("Draw.Q", new CheckBox("Draw Q"));
            DrawMenu.AddColourItem("Draw.Q.Colour");
            DrawMenu.AddSeparator();
            DrawMenu.Add("Draw.W", new CheckBox("Draw W"));
            DrawMenu.AddColourItem("Draw.W.Colour");
            DrawMenu.AddSeparator();
            DrawMenu.Add("Draw.E", new CheckBox("Draw E"));
            DrawMenu.AddColourItem("Draw.E.Colour");
            DrawMenu.AddSeparator();
            DrawMenu.AddLabel("Off CD Colour");
            DrawMenu.AddColourItem("Draw.OFF");

            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += KenchCheckManager.Obj_AI_Base_OnProcessSpellCast;
            Game.OnTick += Game_OnTick;
        }
コード例 #51
0
        public static void Load()
        {
            Q = new Spell.Skillshot(SpellSlot.Q, 275, SkillShotType.Circular, 250, 2200, 100);
            W = new Spell.Active(SpellSlot.W, 250);
            E = new Spell.Active(SpellSlot.E, 310);
            R = new Spell.Targeted(SpellSlot.R, 625);
            Q.MinimumHitChance = HitChance.High;

            Hydra = new Item((int)ItemId.Ravenous_Hydra, 300);
            Tiamat = new Item((int)ItemId.Tiamat, 300);
            Youmu = new Item((int)ItemId.Youmuus_Ghostblade, 0);
            Qss = new Item((int)ItemId.Quicksilver_Sash, 0);
            Mercurial = new Item((int)ItemId.Mercurial_Scimitar, 0);

            Evade.Evading += Evading;
            Evade.TryEvading += TryEvading;
            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += OnDraw;
            Obj_AI_Base.OnProcessSpellCast += (sender, args) =>
            {
                if (!sender.IsMe)
                {
                    return;
                }
                if (args.Slot == SpellSlot.W && args.SData.Name == "ZedW")
                {
                    rCasted = false;
                }
                else if (args.Slot == SpellSlot.R && args.SData.Name == "ZedR")
                {
                    wCasted = false;
                    rCasted = true;
                }
            };
            GameObject.OnCreate += (sender, args) =>
            {
                if (sender.IsEnemy)
                {
                    return;
                }
                var shadow = sender as Obj_AI_Minion;
                if (shadow == null || !shadow.IsAlly || shadow.CharData.BaseSkinName != "ZedUltMissile" || shadow.CharData.BaseSkinName != "ZedShadowDashMissile" || shadow.CharData.BaseSkinName != "zedshadow")
                {
                    return;
                }
                if (wCasted)   
                {
                    wShadowT = Core.GameTickCount;
                    wShadow = shadow;
                    wCasted = rCasted = false;
                }
                else if (rCasted)
                {
                    rShadowT = Core.GameTickCount;
                    rShadow = shadow;
                    wCasted = rCasted = false;
                }
            };
            Obj_AI_Base.OnBuffGain += (sender, args) =>
            {
                if (sender.IsEnemy || !args.Buff.Caster.IsMe)
                {
                    return;
                }
                var shadow = sender as Obj_AI_Base;
                if (shadow != null && shadow.IsAlly && shadow.BaseSkinName == "ZedShadow" && args.Buff.Caster.IsMe)
                {
                    switch (args.Buff.Name)
                    {
                        case "zedwshadowbuff":
                            if (!wShadow.com(shadow))
                            {
                                wShadowT = Core.GameTickCount;
                                wShadow = shadow;
                            }
                            break;
                        case "zedrshadowbuff":
                            if (!rShadow.Compare(shadow))
                            {
                                rShadowT = Core.GameTickCount;
                                rShadow = shadow;
                            }
                            break;
                    }
                }
            };
            Obj_AI_Base.OnPlayAnimation += (sender, args) =>
            {
                if (sender.IsMe || sender.IsEnemy || args.Animation != "Death")
                {
                    return;
                }
                if (sender.Compare(wShadow))
                {
                    wShadow = null;
                }
                else if (sender.Compare(rShadow))
                {
                    rShadow = null;
                }
            };
            GameObject.OnCreate += (sender, args) =>
            {
                var missile = sender as MissileClient;
                if (missile != null)
                {
                    if (missile.SpellCaster.IsMe && missile.SData.Name == "ZedWMissile")
                    {
                        wMissile = missile;
                    }
                    return;
                }
                if (sender.Name != "Zed_Base_R_buf_tell.troy")
                {
                    return;
                }
                var target = EntityManager.Heroes.Enemies.FirstOrDefault(i => i.IsValidTarget() && HaveR(i));
                if (target != null && target.Distance(sender) < 150)
                {
                    deathMark = sender;
                }
            };
            GameObject.OnCreate += (sender, args) =>
            {
                if (sender.Compare(wMissile))
                {
                    wMissile = null;
                }
                else if (sender.Compare(deathMark))
                {
                    deathMark = null;
                }
            };

        }
コード例 #52
0
ファイル: SpellManager.cs プロジェクト: Random007/Elobuddy-1
        static SpellManager()
        {
            foreach (var spell in Player.Instance.Spellbook.Spells.Where(s => s.Slot == SpellSlot.Q || s.Slot == SpellSlot.W || s.Slot == SpellSlot.E ||
                                                                         s.Slot == SpellSlot.R))
            {
                var spelltype = GetSpellType(spell.Slot);

                switch (spell.Slot)
                {
                case SpellSlot.Q:
                    switch (spelltype)
                    {
                    case Spells.Active:
                        Q = new Spell.Active(spell.Slot, GetSpellRange(SpellSlot.Q));
                        break;

                    case Spells.Targeted:
                        Q = new Spell.Targeted(spell.Slot, GetSpellRange(SpellSlot.Q));
                        break;

                    case Spells.SkillShotCircular:
                        Q = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.Q), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.CastRadius);
                        break;

                    case Spells.SkillShotLinear:
                        Q = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.Q), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.LineWidth);
                        break;

                    case Spells.SkillShotCone:
                        Q = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.Q), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.CastConeAngle);
                        break;

                    case Spells.Null:
                        Chat.Print("Error please restart the game");
                        break;
                    }
                    break;

                case SpellSlot.W:
                    switch (spelltype)
                    {
                    case Spells.Active:
                        W = new Spell.Active(spell.Slot, GetSpellRange(SpellSlot.W));
                        break;

                    case Spells.Targeted:
                        W = new Spell.Targeted(spell.Slot, GetSpellRange(SpellSlot.W));
                        break;

                    case Spells.SkillShotCircular:
                        W = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.W), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.CastRadius);
                        break;

                    case Spells.SkillShotLinear:
                        W = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.W), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.LineWidth);
                        break;

                    case Spells.SkillShotCone:
                        W = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.W), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.CastConeAngle);
                        break;

                    case Spells.Null:
                        Chat.Print("Error please restart the game");
                        break;
                    }
                    break;

                case SpellSlot.E:
                    switch (spelltype)
                    {
                    case Spells.Active:
                        E = new Spell.Active(spell.Slot, GetSpellRange(SpellSlot.E));
                        break;

                    case Spells.Targeted:
                        E = new Spell.Targeted(spell.Slot, GetSpellRange(SpellSlot.E));
                        break;

                    case Spells.SkillShotCircular:
                        E = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.E), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.CastRadius);
                        break;

                    case Spells.SkillShotLinear:
                        E = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.E), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.LineWidth);
                        break;

                    case Spells.SkillShotCone:
                        E = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.E), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.CastConeAngle);
                        break;

                    case Spells.Null:
                        Chat.Print("Error please restart the game");
                        break;
                    }
                    break;

                case SpellSlot.R:
                    switch (spelltype)
                    {
                    case Spells.Active:
                        R = new Spell.Active(spell.Slot, GetSpellRange(SpellSlot.R));
                        break;

                    case Spells.Targeted:
                        R = new Spell.Targeted(spell.Slot, GetSpellRange(SpellSlot.R));
                        break;

                    case Spells.SkillShotCircular:
                        R = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.R), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.CastRadius);
                        break;

                    case Spells.SkillShotLinear:
                        R = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.R), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.LineWidth);
                        break;

                    case Spells.SkillShotCone:
                        R = new Spell.Skillshot(spell.Slot, GetSpellRange(SpellSlot.R), SkillShotType.Linear, (int)spell.SData.CastTime * 1000, (int)spell.SData.MissileSpeed, (int)spell.SData.CastConeAngle);
                        break;

                    case Spells.Null:
                        Chat.Print("Error please restart the game");
                        break;
                    }
                    break;
                }
            }
        }
コード例 #53
0
 static void SetSpells()
 {
     W = new Spell.Skillshot(SpellSlot.W, 950, SkillShotType.Circular, 250, 1400, 120);
     E = new Spell.Active(SpellSlot.E);
 }
コード例 #54
0
ファイル: Program.cs プロジェクト: unrealirc/EloBuddy
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Vladimir")
            {
                return;
            }
            Bootstrap.Init(null);
            Q = new Spell.Targeted(SpellSlot.Q, 600);
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Active(SpellSlot.E, 610);
            R = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Circular, 250, 1200, 150);
            if (HasSpell("summonerdot"))
            {
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            }
            Zhonia = new Item((int)ItemId.Zhonyas_Hourglass);
            var flashSlot = Vlad.GetSpellSlotFromName("summonerflash");

            Flash = new Spell.Skillshot(flashSlot, 32767, SkillShotType.Linear);

            VladMenu = MainMenu.AddMenu("Bloodimir", "bloodimir");
            VladMenu.AddGroupLabel("Bloodimir.Bloodimir");
            VladMenu.AddSeparator();
            VladMenu.AddLabel("Bloodimir c what i did there? version 1.0.5.2");

            ComboMenu = VladMenu.AddSubMenu("Combo", "sbtw");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.AddSeparator();
            ComboMenu.Add("usecomboq", new CheckBox("Use Q"));
            ComboMenu.Add("usecomboe", new CheckBox("Use E"));
            ComboMenu.Add("usecombor", new CheckBox("Use R"));
            ComboMenu.Add("useignite", new CheckBox("Use Ignite"));
            ComboMenu.AddSeparator();
            ComboMenu.Add("rslider", new Slider("Minimum people for Combo R", 2, 0, 5));
            DrawMenu = VladMenu.AddSubMenu("Drawings", "drawings");
            DrawMenu.AddGroupLabel("Drawings");
            DrawMenu.AddSeparator();
            DrawMenu.Add("drawq", new CheckBox("Draw Q Range"));
            DrawMenu.Add("drawe", new CheckBox("Draw E Range"));
            DrawMenu.Add("drawr", new CheckBox("Draw R Range"));
            DrawMenu.Add("drawaa", new CheckBox("Draw AA Range"));

            LaneClear = VladMenu.AddSubMenu("Lane Clear", "laneclear");
            LaneClear.AddGroupLabel("Lane Clear Settings");
            LaneClear.Add("LCE", new CheckBox("Use E"));
            LaneClear.Add("LCQ", new CheckBox("Use Q"));

            LastHit = VladMenu.AddSubMenu("Last Hit", "lasthit");
            LastHit.AddGroupLabel("Last Hit Settings");
            LastHit.Add("LHQ", new CheckBox("Use Q"));

            HarassMenu = VladMenu.AddSubMenu("Harass Menu", "harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("hq", new CheckBox("Harass Q"));
            HarassMenu.Add("he", new CheckBox("Harass E"));
            HarassMenu.Add("autoh", new CheckBox("Auto Harass"));
            HarassMenu.Add("autohq", new CheckBox("Use Q on Auto Harass"));
            HarassMenu.Add("autohe", new CheckBox("Use E on Auto Harass"));


            MiscMenu = VladMenu.AddSubMenu("Misc Menu", "miscmenu");
            MiscMenu.AddGroupLabel("Misc");
            MiscMenu.AddSeparator();
            MiscMenu.Add("ksq", new CheckBox("KS with Q"));
            MiscMenu.Add("kse", new CheckBox("KS with E"));
            MiscMenu.Add("zhonias", new CheckBox("Use Zhonia"));
            MiscMenu.Add("zhealth", new Slider("Auto Zhonia Health %", 8));
            MiscMenu.AddSeparator();
            MiscMenu.Add("gapcloserw", new CheckBox("Anti Gapcloser W"));
            MiscMenu.Add("gapcloserhp", new Slider("Gapcloser W Health %", 25));
            MiscMenu.AddSeparator();

            SkinMenu = VladMenu.AddSubMenu("Skin Changer", "skin");
            SkinMenu.AddGroupLabel("Choose the desired skin");

            var skinchange = SkinMenu.Add("sID", new Slider("Skin", 5, 0, 7));
            var sid        = new[]
            { "Default", "Count", "Marquius", "Nosferatu", "Vandal", "Blood Lord", "Soulstealer", "Academy" };

            skinchange.DisplayName    = sid[skinchange.CurrentValue];
            skinchange.OnValueChange +=
                delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs changeArgs)
            {
                sender.DisplayName = sid[changeArgs.NewValue];
            };

            Game.OnUpdate         += Tick;
            Drawing.OnDraw        += OnDraw;
            Gapcloser.OnGapcloser += Gapcloser_OnGapCloser;
        }
コード例 #55
0
ファイル: Program.cs プロジェクト: Bloodimir/Projects
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != Hero)
            {
                return;
            }
            Bootstrap.Init(null);
            Q = new Spell.Skillshot(SpellSlot.Q, 1200, SkillShotType.Linear, 250, 1200, 80);
            E = new Spell.Skillshot(SpellSlot.E, 750, SkillShotType.Linear);
            R = new Spell.Active(SpellSlot.R, 620);

            AbilitySequence = new[] { 1, 3, 2, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3 };

            ThreshMenu = MainMenu.AddMenu("Bloodimir Thresh", "bthresh");
            ThreshMenu.AddGroupLabel("Bloodimir Morgana");
            ThreshMenu.AddSeparator();
            ThreshMenu.AddLabel("Bloodimir Morgana v2.1.0.0");

            ComboMenu = ThreshMenu.AddSubMenu("Combo", "sbtw");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.AddSeparator();
            ComboMenu.Add("usecomboq", new CheckBox("Use Q"));

            AutoCastMenu = ThreshMenu.AddSubMenu("Auto Cast", "ac");
            AutoCastMenu.AddGroupLabel("Auto Cast");
            AutoCastMenu.AddSeparator();
            AutoCastMenu.Add("qd", new CheckBox("Auto Q Dashing"));
            AutoCastMenu.Add("qi", new CheckBox("Auto Q Immobile"));
            AutoCastMenu.Add("ar", new CheckBox("Auto R"));
            AutoCastMenu.Add("rslider", new Slider("Minimum people for Auto R", 2, 0, 5));

            QMenu = ThreshMenu.AddSubMenu("Q Settings", "qsettings");
            QMenu.AddGroupLabel("Q Settings");
            QMenu.AddSeparator();
            QMenu.Add("qmin", new Slider("Min Range", 150, 0, (int)Q.Range));
            QMenu.Add("qmax", new Slider("Max Range", (int)Q.Range, 0, (int)Q.Range));
            QMenu.AddSeparator();
            foreach (var obj in ObjectManager.Get <AIHeroClient>().Where(obj => obj.Team != Me.Team))
            {
                QMenu.Add("hook" + obj.ChampionName.ToLower(), new CheckBox("Hook " + obj.ChampionName));
            }
            QMenu.AddSeparator();
            QMenu.Add("mediumpred", new CheckBox("MEDIUM Bind Hitchance Prediction", false));
            QMenu.AddSeparator();
            QMenu.Add("intq", new CheckBox("Q to Interrupt"));

            SkinMenu = ThreshMenu.AddSubMenu("Skin Changer", "skin");
            SkinMenu.AddGroupLabel("Choose the desired skin");

            var skinchange = SkinMenu.Add("sID", new Slider("Skin", 3, 0, 5));
            var sid        = new[] { "Default", "Exiled", "Sinful Succulence", "Blade Mistress", "Blackthorn", "dasd" };

            skinchange.DisplayName    = sid[skinchange.CurrentValue];
            skinchange.OnValueChange +=
                delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs changeArgs)
            {
                sender.DisplayName = sid[changeArgs.NewValue];
            };

            MiscMenu = ThreshMenu.AddSubMenu("Misc", "misc");
            MiscMenu.AddGroupLabel("Misc");
            MiscMenu.AddSeparator();
            MiscMenu.Add("antigapcloser", new CheckBox("Anti Gapcloser"));
            MiscMenu.Add("lvlup", new CheckBox("Auto Level Up Spells", false));
            MiscMenu.AddSeparator();
            MiscMenu.Add("support", new CheckBox("Support Mode", false));

            DrawMenu = ThreshMenu.AddSubMenu("Drawings", "drawings");
            DrawMenu.AddGroupLabel("Drawings");
            DrawMenu.AddSeparator();
            DrawMenu.Add("drawq", new CheckBox("Draw Q"));
            DrawMenu.Add("drawe", new CheckBox("Draw E"));
            DrawMenu.Add("drawr", new CheckBox("Draw R"));
            DrawMenu.Add("drawaa", new CheckBox("Draw AA"));
            DrawMenu.Add("predictions", new CheckBox("Visualize Q Prediction"));

            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Game.OnUpdate         += OnUpdate;
            Orbwalker.OnPreAttack += Orbwalker_OnPreAttack;
            Gapcloser.OnGapcloser += Gapcloser_OnGapcloser;
            Drawing.OnDraw        += delegate
            {
                if (!Me.IsDead)
                {
                    if (DrawMenu["drawr"].Cast <CheckBox>().CurrentValue&& R.IsLearned)
                    {
                        Circle.Draw(SharpDX.Color.Red, R.Range, Player.Instance.Position);
                    }
                    if (DrawMenu["drawe"].Cast <CheckBox>().CurrentValue&& E.IsLearned)
                    {
                        Circle.Draw(SharpDX.Color.Green, E.Range, Player.Instance.Position);
                    }
                    if (DrawMenu["drawaa"].Cast <CheckBox>().CurrentValue)
                    {
                        Circle.Draw(SharpDX.Color.Blue, Q.Range, Player.Instance.Position);
                    }
                    var predictedPositions = new Dictionary <int, Tuple <int, PredictionResult> >();
                    var predictions        = DrawMenu["predictions"].Cast <CheckBox>().CurrentValue;
                    var qRange             = DrawMenu["drawq"].Cast <CheckBox>().CurrentValue;

                    foreach (
                        var enemy in
                        EntityManager.Heroes.Enemies.Where(
                            enemy => QMenu["hook" + enemy.ChampionName].Cast <CheckBox>().CurrentValue&&
                            enemy.IsValidTarget(Q.Range + 150) &&
                            !enemy.HasBuffOfType(BuffType.SpellShield)))
                    {
                        var predictionsq = Q.GetPrediction(enemy);
                        predictedPositions[enemy.NetworkId] = new Tuple <int, PredictionResult>(Environment.TickCount,
                                                                                                predictionsq);
                        if (qRange && Q.IsLearned)
                        {
                            Circle.Draw(Q.IsReady() ? SharpDX.Color.Blue : SharpDX.Color.Red, Q.Range,
                                        Player.Instance.Position);
                        }

                        if (!predictions)
                        {
                            return;
                        }

                        foreach (var prediction in predictedPositions.ToArray())
                        {
                            if (Environment.TickCount - prediction.Value.Item1 > 2000)
                            {
                                predictedPositions.Remove(prediction.Key);
                                continue;
                            }

                            Circle.Draw(SharpDX.Color.Red, 75, prediction.Value.Item2.CastPosition);
                            Line.DrawLine(Color.GreenYellow, Player.Instance.Position,
                                          prediction.Value.Item2.CastPosition);
                            Line.DrawLine(Color.CornflowerBlue,
                                          EntityManager.Heroes.Enemies.Find(o => o.NetworkId == prediction.Key).Position,
                                          prediction.Value.Item2.CastPosition);
                            Drawing.DrawText(prediction.Value.Item2.CastPosition.WorldToScreen() + new Vector2(0, -20),
                                             System.Drawing.Color.LimeGreen,
                                             string.Format("Hitchance: {0}%", Math.Ceiling(prediction.Value.Item2.HitChancePercent)),
                                             10);
                        }
                    }
                    ;
                }
                ;
            };
        }
コード例 #56
0
        public static void Execute()
        {
            if (ObjectManager.Player.BaseSkinName != "Lissandra")
            {
                return;
            }

            menuIni = MainMenu.AddMenu("KappaLissandra", "KappaLissandra");
            menuIni.AddGroupLabel("Worstun lissandra addonuna hoşgeldiniz!");
            menuIni.AddGroupLabel("Genel Ayarlar");
            menuIni.Add("Combo", new CheckBox("Kullan Kombo?"));
            menuIni.Add("Harass", new CheckBox("Kullan Dürtme?"));
            menuIni.Add("LaneClear", new CheckBox("Kullan LaneTemizleme?"));
            menuIni.Add("JungleClear", new CheckBox("Kullan OrmanTemizleme?"));
            menuIni.Add("Flee", new CheckBox("Kullan Flee?"));
            menuIni.Add("Misc", new CheckBox("Kullan Ek?"));
            menuIni.Add("Drawings", new CheckBox("Kullan Göstergeler?"));

            UltMenu = menuIni.AddSubMenu("Ultimate");
            UltMenu.AddGroupLabel("Ulti Ayarları");
            UltMenu.Add("aoeR", new CheckBox("AoE R Mantığı"));
            UltMenu.Add("RF", new CheckBox("R ile bitir"));
            UltMenu.Add("RS", new CheckBox("R ile korun"));
            UltMenu.Add("RE", new CheckBox("Ryi düşmanda kullan"));
            UltMenu.Add("hitR", new Slider("R etkileyeceği düşman sayısı >=", 2, 1, 5));
            UltMenu.Add("shp", new Slider("Canım şundan azsa kendime R kullan", 15, 0, 100));
            UltMenu.AddGroupLabel("Düşmana ulti kullanma");
            foreach (var enemy in ObjectManager.Get <AIHeroClient>())
            {
                CheckBox cb = new CheckBox(enemy.BaseSkinName)
                {
                    CurrentValue = false
                };
                if (enemy.Team != ObjectManager.Player.Team)
                {
                    UltMenu.Add("DontUltenemy" + enemy.BaseSkinName, cb);
                }
            }

            ComboMenu = menuIni.AddSubMenu("Combo");
            ComboMenu.AddGroupLabel("Kombo Ayarları");
            ComboMenu.Add("Q", new CheckBox("Kullan Q"));
            ComboMenu.Add("W", new CheckBox("Kullan W"));
            ComboMenu.Add("E", new CheckBox("Kullan E"));
            ComboMenu.Add("ET", new CheckBox("Eğer hedefe vuracaksa E2 kullan"));
            ComboMenu.Add("E2", new CheckBox("E2 Her zaman enf azla kullan", false));
            ComboMenu.Add("ES", new CheckBox("E2 korun", false));
            ComboMenu.Add("EHP", new Slider("E2 korunma için can  <= %", 30, 0, 100));
            ComboMenu.Add("ESE", new Slider("E2 korunma için düşman sayısı <=", 2, 1, 5));

            HarassMenu = menuIni.AddSubMenu("Harass");
            HarassMenu.AddGroupLabel("Dürtme Ayarları");
            HarassMenu.Add("Q", new CheckBox("Kullan Q"));
            HarassMenu.Add("W", new CheckBox("Kullan W"));
            HarassMenu.Add("E", new CheckBox("Kullan E", false));
            HarassMenu.Add("Mana", new Slider("mana şundan azsa kullanma %", 30, 0, 100));

            LaneMenu = menuIni.AddSubMenu("Farm");
            LaneMenu.AddGroupLabel("LaneTemizleme Ayarları");
            LaneMenu.Add("Q", new CheckBox("Kullan Q"));
            LaneMenu.Add("W", new CheckBox("Kullan W"));
            LaneMenu.Add("E", new CheckBox("Kullan E", false));
            LaneMenu.Add("Mana", new Slider("mana şundan azsa kullanma %", 30, 0, 100));
            LaneMenu.AddGroupLabel("OrmanTemizleme Ayarları");
            LaneMenu.Add("jQ", new CheckBox("Kullan Q"));
            LaneMenu.Add("jW", new CheckBox("Kullan W"));
            LaneMenu.Add("jE", new CheckBox("Kullan E", false));

            MiscMenu = menuIni.AddSubMenu("Misc");
            MiscMenu.AddGroupLabel("Ek Ayarları");
            MiscMenu.Add("gapcloserW", new CheckBox("Anti-GapCloser W"));
            MiscMenu.Add("gapcloserR", new CheckBox("Anti-GapCloser R"));
            MiscMenu.Add("Interruptr", new CheckBox("Interrupt R"));
            MiscMenu.Add("WTower", new CheckBox("Kule altında otomatik W"));
            MiscMenu.Add("AutoW", new Slider("W şu kadara vuracaksa >=", 2, 1, 5));

            FleeMenu = menuIni.AddSubMenu("Flee");
            FleeMenu.AddGroupLabel("Flee Ayarları");
            FleeMenu.Add("Q", new CheckBox("Kullan Q"));
            FleeMenu.Add("W", new CheckBox("Kullan W"));
            FleeMenu.Add("E", new CheckBox("Kullan E"));

            DrawMenu = menuIni.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Gösterge Ayarları");
            DrawMenu.Add("Q", new CheckBox("Göster Q"));
            DrawMenu.Add("W", new CheckBox("Göster W"));
            DrawMenu.Add("E", new CheckBox("Göster E"));
            DrawMenu.Add("R", new CheckBox("Göster R"));
            DrawMenu.Add("debug", new CheckBox("debug", false));

            Q     = new Spell.Skillshot(SpellSlot.Q, 715, SkillShotType.Linear, 250, 2200, 75);
            Q2    = new Spell.Skillshot(SpellSlot.Q, 825, SkillShotType.Linear, 250, 2200, 90);
            Qtest = new Spell.Skillshot(SpellSlot.Q, 715, SkillShotType.Linear, 250, 2200, 75)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Active(SpellSlot.W, 425);
            E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Linear, 250, 850, 125);
            R = new Spell.Targeted(SpellSlot.R, 400);

            Game.OnUpdate                    += OnUpdate;
            GameObject.OnCreate              += OnCreate;
            GameObject.OnDelete              += OnDelete;
            Drawing.OnDraw                   += OnDraw;
            Obj_AI_Base.OnProcessSpellCast   += OnProcessSpellCast;
            Obj_AI_Base.OnBasicAttack        += OnBasicAttack;
            Interrupter.OnInterruptableSpell += OnInterruptableSpell;
            Gapcloser.OnGapcloser            += OnGapcloser;
        }
コード例 #57
0
 /// <summary>
 /// It will only cast the spell if it can
 /// </summary>
 /// <param name="spell">Active Spell</param>
 /// <param name="target">Target to cast the spell</param>
 public static bool TryCast(this Spell.Active spell, Obj_AI_Base target)
 {
     return(TryCast(spell as Spell.SpellBase, target));
 }
コード例 #58
0
ファイル: Program.cs プロジェクト: NeTeLead/olaf
        static void OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("XinZhao"))
            {
                return;
            }
            Chat.Print("Xinzhao7 Loaded!", Color.Orange);
            Bootstrap.Init(null);
            Q       = new Spell.Active(SpellSlot.Q);
            W       = new Spell.Active(SpellSlot.W);
            E       = new Spell.Targeted(SpellSlot.E, 600);
            R       = new Spell.Active(SpellSlot.R, 500);
            Ignite  = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            Tiamat  = new Item(ItemId.Tiamat_Melee_Only, 400);
            Hydra   = new Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
            Titanic = new Item(ItemId.Titanic_Hydra, Player.Instance.GetAutoAttackRange());
            Botrk   = new Item(ItemId.Blade_of_the_Ruined_King);
            Bil     = new Item(3144, 475f);
            Menu    = MainMenu.AddMenu("Xinzhao7", "Xinzhao");
            Menu.AddSeparator();
            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("ComboQ", new CheckBox("Use [Q] Combo"));
            ComboMenu.Add("ComboW", new CheckBox("Use [W] Combo"));
            ComboMenu.Add("ComboE", new CheckBox("Use [E] Combo"));
            ComboMenu.Add("DisE", new Slider("Distance Use [E]", 300, 0, 600));
            ComboMenu.AddGroupLabel("Items Settings");
            ComboMenu.Add("hydra", new CheckBox("Use [Hydra] Reset AA"));
            ComboMenu.Add("BOTRK", new CheckBox("Use [Botrk]"));
            ComboMenu.Add("ihp", new Slider("My HP Use BOTRK", 50));
            ComboMenu.Add("ihpp", new Slider("Enemy HP Use BOTRK", 50));

            Ulti = Menu.AddSubMenu("Ultimate Settings", "Ulti");
            Ulti.AddGroupLabel("Ultimate Enemies In Count");
            Ulti.Add("ultiR", new CheckBox("Use [R] Enemies In Range"));
            Ulti.Add("MinR", new Slider("Min Enemies Use [R]", 2, 1, 5));
            Ulti.AddGroupLabel("Ultimate My HP");
            Ulti.Add("ultiR2", new CheckBox("Use [R] If My HP"));
            Ulti.Add("MauR", new Slider("My HP Use [R]", 40));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("HarassQ", new CheckBox("Use [Q] Harass"));
            HarassMenu.Add("HarassW", new CheckBox("Use [W] Harass", false));
            HarassMenu.Add("ManaHR", new Slider("Mana For Harass", 40));

            LaneClearMenu = Menu.AddSubMenu("LaneClear Settings", "LaneClear");
            LaneClearMenu.AddGroupLabel("Lane Clear Settings");
            LaneClearMenu.Add("QLC", new CheckBox("Use [Q] LaneClear", false));
            LaneClearMenu.Add("WLC", new CheckBox("Use [W] LaneClear", false));
            LaneClearMenu.Add("ManaLC", new Slider("Mana For LaneClear", 50));

            JungleClearMenu = Menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleClearMenu.AddGroupLabel("JungleClear Settings");
            JungleClearMenu.Add("QJungle", new CheckBox("Use [Q] JungleClear"));
            JungleClearMenu.Add("WJungle", new CheckBox("Use [W] JungleClear"));
            JungleClearMenu.Add("EJungle", new CheckBox("Use [E] JungleClear"));
            JungleClearMenu.Add("ManaJC", new Slider("Mana For JungleClear", 30));

            KillStealMenu = Menu.AddSubMenu("KillSteal Settings", "KillSteal");
            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("KsR", new CheckBox("Use [R] KillSteal"));
            KillStealMenu.Add("KsE", new CheckBox("Use [E] KillSteal", false));
            KillStealMenu.Add("ign", new CheckBox("Use [Ignite] KillSteal"));

            Misc = Menu.AddSubMenu("Misc Settings", "Misc");
            Misc.AddGroupLabel("Skin Settings");
            Misc.Add("checkSkin", new CheckBox("Use Skin Changer", false));
            Misc.Add("skin.Id", new ComboBox("Skin Mode", 0, "Default", "1", "2", "3", "4", "5", "6"));
            Misc.AddGroupLabel("Drawing Settings");
            Misc.Add("DrawR", new CheckBox("R Range"));
            Misc.Add("DrawE", new CheckBox("E Range"));
            Misc.Add("Damage", new CheckBox("Damage Indicator [R]"));
            Misc.AddGroupLabel("Interrupt Settings");
            Misc.Add("inter", new CheckBox("Use [R] Interupt"));

            Drawing.OnDraw                   += Drawing_OnDraw;
            Game.OnTick                      += Game_OnTick;
            Orbwalker.OnPostAttack           += ResetAttack;
            Interrupter.OnInterruptableSpell += Interupt;
            Drawing.OnEndScene               += Damage;
        }
コード例 #59
0
        private static void OnLoaded(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Evelynn")
            {
                return;
            }
            Bootstrap.Init(null);
            Q = new Spell.Active(SpellSlot.Q, 500);
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Targeted(SpellSlot.E, 225);
            R = new Spell.Skillshot(SpellSlot.R, 900, SkillShotType.Circular, (int)250f, (int)1200f, (int)150f);
            var summoner1 = _Player.Spellbook.GetSpell(SpellSlot.Summoner1);
            var summoner2 = _Player.Spellbook.GetSpell(SpellSlot.Summoner2);

            if (summoner1.Name == "summonerdot")
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner1, 500);
            }
            else if (summoner2.Name == "summonerdot")
            {
                Smite = new Spell.Targeted(SpellSlot.Summoner2, 500);
            }

            EveMenu = MainMenu.AddMenu("BloodimirEve", "bloodimireve");
            EveMenu.AddGroupLabel("Bloodimir.Evelynn");
            EveMenu.AddSeparator();
            EveMenu.AddLabel("Bloodimir Evelynn V1.0.0.0");

            ComboMenu = EveMenu.AddSubMenu("Combo", "sbtw");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.AddSeparator();
            ComboMenu.Add("usecomboq", new CheckBox("Use Q"));
            ComboMenu.Add("usecombow", new CheckBox("Use W"));
            ComboMenu.Add("usecomboe", new CheckBox("Use E"));
            ComboMenu.Add("usecombor", new CheckBox("Use R"));
            ComboMenu.AddSeparator();
            ComboMenu.Add("rslider", new Slider("Minimum people for R", 1, 0, 5));

            DrawMenu = EveMenu.AddSubMenu("Drawings", "drawings");
            DrawMenu.AddGroupLabel("Drawings");
            DrawMenu.AddSeparator();
            DrawMenu.Add("drawq", new CheckBox("Draw Q"));
            DrawMenu.Add("drawr", new CheckBox("Draw R"));

            LaneJungleClear = EveMenu.AddSubMenu("Lane Jungle Clear", "lanejungleclear");
            LaneJungleClear.AddGroupLabel("Lane Jungle Clear Settings");
            LaneJungleClear.Add("LCE", new CheckBox("Use E"));
            LaneJungleClear.Add("LCQ", new CheckBox("Use Q"));

            LastHit = EveMenu.AddSubMenu("Last Hit", "lasthit");
            LastHit.AddGroupLabel("Last Hit Settings");
            LastHit.Add("LHQ", new CheckBox("Use Q"));

            MiscMenu = EveMenu.AddSubMenu("Misc Menu", "miscmenu");
            MiscMenu.AddGroupLabel("KS");
            MiscMenu.AddSeparator();
            MiscMenu.Add("kse", new CheckBox("KS using E"));
            MiscMenu.AddSeparator();
            MiscMenu.Add("ksq", new CheckBox("KS using Q"));

            SkinMenu = EveMenu.AddSubMenu("Skin Changer", "skin");
            SkinMenu.AddGroupLabel("Choose the desired skin");

            var skinchange = SkinMenu.Add("skinid", new Slider("Skin", 0, 0, 4));
            var skinid     = new[]
            { "Default", "Shadow", "Masquerade", "Tango", "Safecracker" };

            skinchange.DisplayName    = skinid[skinchange.CurrentValue];
            skinchange.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs changeArgs)
            {
                sender.DisplayName = skinid[changeArgs.NewValue];
                if (MiscMenu["debug"].Cast <CheckBox>().CurrentValue)
                {
                    Chat.Print("skin-changed");
                }
            };

            Game.OnTick    += Tick;
            Drawing.OnDraw += OnDraw;
        }
コード例 #60
0
 /// <summary>
 /// Check if can cast the spell on the target
 /// </summary>
 /// <param name="target">Target to check</param>
 /// <param name="spell">Any spell</param>
 /// <returns></returns>
 public static bool CanCast(this Obj_AI_Base target, Spell.Active spell)
 {
     return(CanCast(target, spell as Spell.SpellBase));
 }