static void Game_OnGameLoad() { // Only load on Irelia, silly if (Player.CharData.BaseSkinName != "Irelia") { return; } // Say hello Chat.Print("[Irelia<font color='#79BAEC'>God</font>]: <font color='#FFFFFF'>" + "Loaded!</font>"); // Initialize our menu IreliaMenu.Initialize(); // Initialize our spells Spells.Initialize(); // Subscribe to our events Game.OnUpdate += OnUpdate; Orbwalking.BeforeAttack += BeforeAttack; Drawing.OnDraw += OnDraw; Obj_AI_Base.OnBuffLose += OnBuffLose; // Sheen buff workaround AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; //Obj_AI_Base.OnAggro += AIHeroClient_OnAggro; Obj_AI_Base.OnProcessSpellCast += (sender, eventArgs) => { if (sender.IsMe && eventArgs.SData.Name == Spells.E.Instance.SData.Name) { LeagueSharp.Common.Utility.DelayAction.Add(260, Orbwalking.ResetAutoAttackTimer); } if (sender.IsMe && eventArgs.SData.Name == Spells.Q.Instance.SData.Name) { LeagueSharp.Common.Utility.DelayAction.Add(260, Orbwalking.ResetAutoAttackTimer); } }; Orbwalking.AfterAttack += (unit, target) => { if (IreliaMenu.Config.Item("combo.items").GetValue <bool>() && unit.IsMe && target != null && Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { if (Spells.Tiamat.IsReady()) { Spells.Tiamat.Cast(); } if (Spells.Hydra.IsReady()) { Spells.Hydra.Cast(); } } }; }
public static void OnGameLoad() { // Only load on Irelia, silly if (Player.CharData.BaseSkinName != "Irelia") { return; } // Initialize our menu IreliaMenu.Initialize(); // Initialize our spells Spells.Initialize(); // Subscribe to our events Game.OnUpdate += OnUpdate; Orbwalker.OnPreAttack += BeforeAttack; Drawing.OnDraw += OnDraw; Obj_AI_Base.OnBuffLose += OnBuffRemove; // Sheen buff workaround AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; //EloBuddy.Player.OnBasicAttack += AIHeroClient_OnAggro; Obj_AI_Turret.OnBasicAttack += Obj_AI_Turret_OnBasicAttack; Obj_AI_Base.OnProcessSpellCast += (sender, eventArgs) => { if (sender.IsMe && eventArgs.SData.Name == Spells.E.Instance.SData.Name) { LeagueSharp.Common.Utility.DelayAction.Add(260, Orbwalker.ResetAutoAttack); } if (sender.IsMe && eventArgs.SData.Name == Spells.Q.Instance.SData.Name) { LeagueSharp.Common.Utility.DelayAction.Add(260, Orbwalker.ResetAutoAttack); } }; Orbwalker.OnPostAttack += (unit, target) => { if (getCheckBoxItem(comboMenu, "combo.items") && unit.IsMe && target != null && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { if (Spells.Tiamat.IsReady()) { Spells.Tiamat.Cast(); } if (Spells.Hydra.IsReady()) { Spells.Hydra.Cast(); } } }; comboMenu = IreliaMenu.comboMenu; targetSelectorMenu = IreliaMenu.targetSelectorMenu; harassMenu = IreliaMenu.harassMenu; laneclearMenu = IreliaMenu.laneclearMenu; drawingsMenu = IreliaMenu.drawingsMenu; miscMenu = IreliaMenu.miscMenu; fleeMenu = IreliaMenu.fleeMenu; }