static Kalista() { if (!Directory.Exists(appdata)) { Directory.CreateDirectory(appdata); } if (!File.Exists(appdata + Game.GameId + ".dat")) { File.Create(appdata + Game.GameId + ".dat"); Created = true; } MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } AutoMenu.CreateCheckBox("SoulBound", "R Save Soul Bound"); AutoMenu.CreateCheckBox("AutoR", "Auto R"); AutoMenu.CreateCheckBox("EDeath", "E Before Death"); AutoMenu.CreateCheckBox("AutoEBig", "Auto Use E Big Minions"); AutoMenu.CreateCheckBox("AutoEUnKillable", "Auto Use E On UnKillable Minions", false); var balistahero = Ballistaheros.FirstOrDefault(a => EntityManager.Heroes.Allies.Any(b => a.Hero == b.Hero)); if (balistahero != null) { AutoMenu.CreateCheckBox(balistahero.Hero.ToString(), "Use Ballista With " + balistahero.Hero); AutoMenu.CreateSlider(balistahero.Hero + "dis", "Min Distance To Use Ballista", 600, 0, 1100); } ComboMenu.CreateCheckBox("Gapclose", "Auto Attack Minions To GapClose"); ComboMenu.CreateSlider("EKillCount", "Use E To Kill {0}+ Enemies Only", 1, 1, 6); HarassMenu.CreateCheckBox("Emin", "E Kill Minion For Harass"); HarassMenu.CreateSlider("Estacks", "{0} Stacks to Use E", 5, 1, 25); LaneClearMenu.CreateSlider("Qhits", "Q Hit Count {0}", 3, 1, 15); LaneClearMenu.CreateSlider("Ekills", "E Kill Count {0}", 2, 1, 10); KillStealMenu.CreateCheckBox("ETransfer", "Stacks Transfer Killsteal (Q > E)"); Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Events.OnIncomingDamage += Events_OnIncomingDamage; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; Obj_AI_Base.OnBuffGain += Obj_AI_Base_OnBuffGain; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Events.OnGameEnd += Events_OnGameEnd; }
static Kalista() { Edmg = new Text(string.Empty, new Font("Tahoma", 9, FontStyle.Bold)) { Color = System.Drawing.Color.White }; Q = new Spell.Skillshot(SpellSlot.Q, 1150, SkillShotType.Linear, 250, 2100, 60) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Skillshot(SpellSlot.W, 5000, SkillShotType.Circular, 250, 2100, 80); E = new Spell.Active(SpellSlot.E, 1000); R = new Spell.Active(SpellSlot.R, 1100); SpellList.Add(Q); SpellList.Add(E); MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); JungleClearMenu = MenuIni.AddSubMenu("JungleClear"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); DrawMenu = MenuIni.AddSubMenu("Drawings"); SpellList.ForEach( i => { ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); HarassMenu.AddSeparator(0); LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); LaneClearMenu.AddSeparator(0); JungleClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); JungleClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); JungleClearMenu.AddSeparator(0); KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal"); DrawMenu.CreateCheckBox(i.Slot, "Draw " + i.Slot); }); //AutoMenu.CreateCheckBox("exploit", "Enable Kalista Exploit (WILL BAN YOU)", false); AutoMenu.CreateCheckBox("AutoR", "Auto R"); AutoMenu.CreateCheckBox("EDeath", "E Before Death"); AutoMenu.CreateCheckBox("AutoEJungle", "Auto Steal Jungle Camps (E)"); AutoMenu.CreateCheckBox("AutoEBig", "Auto Use E Big Minions"); AutoMenu.CreateCheckBox("AutoEUnKillable", "Auto Use E On UnKillable Minions"); AutoMenu.CreateCheckBox("AutoE", "Auto Use E if no modes active"); AutoMenu.CreateSlider("AutoEcount", "{0} Min Stacks to Auto E", 5, 1, 25); ComboMenu.CreateSlider("EKillCount", "Use E To Kill {0}+ Enemies Only", 1, 1, 6); HarassMenu.CreateCheckBox("Emin", "E Kill Minion For Harass"); HarassMenu.CreateSlider("Estacks", "{0} Stacks to Use E", 5, 1, 25); LaneClearMenu.CreateSlider("Qhits", "Q Hit Count {0}", 3, 1, 15); LaneClearMenu.CreateSlider("Ekills", "E Kill Count {0}", 2, 1, 10); JungleClearMenu.CreateCheckBox("Esmall", "E Kill Small Mobs"); KillStealMenu.CreateCheckBox("ETransfer", "Stacks Transfer Killsteal (Q > E)"); DrawMenu.CreateCheckBox("EDMG", "Draw E Damage"); Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Events.OnIncomingDamage += Events_OnIncomingDamage; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; //Obj_AI_Base.OnBuffGain += Obj_AI_Base_OnBuffGain; }
static Viktor() { Q = new Spell.Targeted(SpellSlot.Q, 670); W = new Spell.Skillshot(SpellSlot.W, 700, SkillShotType.Circular, 500, int.MaxValue, 250) { AllowedCollisionCount = int.MaxValue }; E = new Spell.Skillshot(SpellSlot.E, 1225, SkillShotType.Linear, 250, int.MaxValue, 100) { AllowedCollisionCount = int.MaxValue }; R = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Circular, 250, int.MaxValue, 450) { AllowedCollisionCount = int.MaxValue }; SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); JungleClearMenu = MenuIni.AddSubMenu("JungleClear"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); DrawMenu = MenuIni.AddSubMenu("Drawings"); SpellList.ForEach( i => { ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); if (i != R && i != W) { HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); HarassMenu.AddSeparator(0); LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); LaneClearMenu.AddSeparator(0); JungleClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); JungleClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); JungleClearMenu.AddSeparator(0); } KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal"); DrawMenu.CreateCheckBox(i.Slot, "Draw " + i.Slot); }); AutoMenu.Add("Wmode", new ComboBox("GapCloser W Mode", 1, "Place On Self", "Place On Enemy")); AutoMenu.CreateCheckBox("GapW", "Auto W Anti-GapCloser"); AutoMenu.CreateCheckBox("IntW", "Auto W Interrupter"); AutoMenu.CreateCheckBox("IntR", "Auto R Interrupter"); AutoMenu.CreateCheckBox("Qunk", "Auto Q UnKillable Minions"); ComboMenu.CreateSlider("RAOE", "R AoE Hit Count {0}", 2, 1, 6); ComboMenu.CreateSlider("RMulti", "Mutilply R Damage By X{0} Times", 3, 1, 10); LaneClearMenu.CreateSlider("Ehits", "E Hit Count {0}", 3, 1, 20); Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; }
public override void Initialize() { FirstMenu = MainMenu.AddMenu("OKTR " + GetAttribute().Name, "id" + GetAttribute().Name.ToLower()); FirstMenu.AddGroupLabel("Introduction:"); FirstMenu.AddSeparator(); FirstMenu.AddGroupLabel("Author: " + GetAttribute().Author); if (HUEHUEHUEHUE) { FirstMenu.AddLabel("Plugin From: http://oktraio.com"); } ComboMenu = FirstMenu.AddSubMenu("Combo", ComboMenuID); ComboMenu.AddGroupLabel("Combo Settings:"); HarassMenu = FirstMenu.AddSubMenu("Harass", HarassMenuID); HarassMenu.AddGroupLabel("Harass Settings:"); AutoHarassMenu = FirstMenu.AddSubMenu("Auto Harass", AutoHarassMenuID); AutoHarassMenu.AddGroupLabel("Auto Harass Settings:"); LaneClearMenu = FirstMenu.AddSubMenu("Laneclear", LaneMenuID); LaneClearMenu.AddGroupLabel("Laneclear Settings:"); JungleClearMenu = FirstMenu.AddSubMenu("Jungleclear", JunglesMenuID); JungleClearMenu.AddGroupLabel("Jungleclear Settings:"); LastHitMenu = FirstMenu.AddSubMenu("Lasthit", LastMenuID); LastHitMenu.AddGroupLabel("Lasthit Settings:"); FleeMenu = FirstMenu.AddSubMenu("Flee", FleeMenuID); FleeMenu.AddGroupLabel("Flee Settings:"); KillStealMenu = FirstMenu.AddSubMenu("Killsteal", KillstealMenuID); KillStealMenu.AddGroupLabel("Killsteal Settings:"); DrawMenu = FirstMenu.AddSubMenu("Draw", DrawMenuID); DrawMenu.AddGroupLabel("Draw Settings:"); DrawMenu.CreateCheckBox("Only draw spells if they are ready", DrawMenuID + "whenready"); DrawMenu.AddGroupLabel("Damage Indicator settings: "); DrawMenu.CreateCheckBox("Draw damage indicator", DrawMenuID + "damageDraw"); DrawMenu.CreateCheckBox("Draw statistics", DrawMenuID + "statDraw"); DrawMenu.CreateCheckBox("Draw percentage", DrawMenuID + "perDraw"); DamageIndicatorDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "damageHealthIndicator", Color.Yellow, "Damage Indicator Color"); DrawMenu.AddSeparator(); DrawMenu.CreateCheckBox("Calculate Q", DrawMenuID + "calculateQ"); DrawMenu.CreateCheckBox("Calculate W", DrawMenuID + "calculateW"); DrawMenu.CreateCheckBox("Calculate E", DrawMenuID + "calculateE"); DrawMenu.CreateCheckBox("Calculate R", DrawMenuID + "calculateR"); DrawMenu.AddGroupLabel("Spells to draw: "); MiscMenu = FirstMenu.AddSubMenu("Misc", MiscMenuID); MiscMenu.AddGroupLabel("Miscellanous Settings:"); InitializeSpells(); InitializeEvents(); InitializeMenu(); if (PlayerHasMana) { HarassMenu.CreateSlider("Player mana must be less than [{0}%] to use harass spells", HarassMenuID + "mana", 40); AutoHarassMenu.CreateSlider("Player mana must be less than [{0}%] to use auto harass spells", AutoHarassMenuID + "mana", 40); LaneClearMenu.CreateSlider("Player mana must be less than [{0}%] to use lane clear spells", LaneClearMenu + "mana", 40); JungleClearMenu.CreateSlider("Player mana must be less than [{0}%] to use jungle clear spells", JunglesMenuID + "mana", 40); LastHitMenu.CreateSlider("Player mana must be less than [{0}%] to use lasthit spells", LastMenuID + "mana", 40); KillStealMenu.CreateSlider("Player mana must be less than [{0}%] to use Killsteal spells", KillstealMenuID + "mana", 10); MiscMenu.CreateSlider("Player mana must be less than [{0}%] to use misc spells", MiscMenuID + "mana", 30); } DrawMenu.AddGroupLabel("Drawing Colors"); QDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "Q" + "colorid", Color.Orange, "- Q Color"); WDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "W" + "colorid", Color.Red, "- W Color"); EDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "E" + "colorid", Color.Blue, "- E Color"); RDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "R" + "colorid", Color.DeepPink, "- R Color"); Game.OnTick += Game_OnTick; Drawing.OnDraw += Drawing_OnDraw; }
public override void InitializeMenu() { AddMultipleCheckBox(Q, new List <MenuCheckBox> { new MenuCheckBox(ComboMenu), new MenuCheckBox(HarassMenu), new MenuCheckBox(LaneClearMenu, false), new MenuCheckBox(JungleClearMenu), new MenuCheckBox(LastHitMenu, false), new MenuCheckBox(FleeMenu), new MenuCheckBox(KillStealMenu), new MenuCheckBox(DrawMenu) }); AddMultipleCheckBox(W, new List <MenuCheckBox> { new MenuCheckBox(ComboMenu), new MenuCheckBox(HarassMenu), new MenuCheckBox(LaneClearMenu), new MenuCheckBox(JungleClearMenu), new MenuCheckBox(DrawMenu) }); AddMultipleCheckBox(E, new List <MenuCheckBox> { new MenuCheckBox(ComboMenu), new MenuCheckBox(HarassMenu), new MenuCheckBox(AutoHarassMenu), new MenuCheckBox(LaneClearMenu), new MenuCheckBox(JungleClearMenu), new MenuCheckBox(LastHitMenu, false), new MenuCheckBox(FleeMenu), new MenuCheckBox(KillStealMenu), new MenuCheckBox(DrawMenu) }); AddMultipleCheckBox(R, new List <MenuCheckBox> { new MenuCheckBox(ComboMenu), new MenuCheckBox(DrawMenu, false) }); PlayerHasMana = false; FirstMenu.AddGroupLabel("Official plugin of OKTR- One Key To Report"); ComboMenu.CreateSlider("Change W when under {1} HP %", 48, 80); HarassMenu.CreateSlider("Change W when under {1} HP %", 49, 80); LaneClearMenu.CreateSlider("Change W when under {1} HP %", 50, 90); LaneClearMenu.CreateCheckBox("Prioritize Harass over Mode", 51, false); JungleClearMenu.CreateSlider("Change W when under {1} HP %", 52, 80); LastHitMenu.CreateCheckBox("Prioritize Harass over Mode", 53, false); MiscMenu.AddSeparator(); MiscMenu.AddGroupLabel("AntiGapcloser - Interrupter settings:"); MiscMenu.CreateCheckBox("Use AntiGapcloser", MenuIds.MiscUseGapcloser); MiscMenu.CreateCheckBox("Use Q", 54); MiscMenu.CreateCheckBox("Use E", 55); MiscMenu.AddSeparator(); MiscMenu.CreateCheckBox("Use Interrupter", MenuIds.MiscUseInterrupt); MiscMenu.CreateCheckBox("Use Q", 56); MiscMenu.CreateCheckBox("AutoSpells on CC", 57); MiscMenu.CreateCheckBox("AutoSpells on Events", 58); MiscMenu.AddSeparator(); MiscMenu.CreateCheckBox("Use Auto Q", 59, false); MiscMenu.CreateCheckBox("Use Q on Stunned Enemies", 60, false); MiscMenu.CreateCheckBox("Use Q on Snared Enemies", 61, false); MiscMenu.CreateCheckBox("Use Q on Feared Enemies", 62, false); MiscMenu.CreateCheckBox("Use Q on Taunted Enemy", 63, false); MiscMenu.CreateCheckBox("Use Q on Suppressed Enemy", 64, false); MiscMenu.CreateCheckBox("Use Q on Charmed Enemies", 65, false); MiscMenu.CreateCheckBox("Use Auto E", 66, false); MiscMenu.CreateCheckBox("Use E on Stunned Enemies", 67, false); MiscMenu.CreateCheckBox("Use E on Snared Enemies", 68, false); MiscMenu.CreateCheckBox("Use E on Feared Enemies", 69, false); MiscMenu.CreateCheckBox("Use E on Taunted Enemy", 70, false); MiscMenu.CreateCheckBox("Use E on Suppressed Enemy", 71, false); MiscMenu.CreateCheckBox("Use E on Charmed Enemies", 72, false); }