public static void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args) { if (args.Slot == SpellSlot.W || args.Slot == SpellSlot.E) { OrbHelper.ResetAutoAttackTimer(); Orbwalker.ResetAutoAttack(); } }
public static Obj_AI_Base qtarg; // semi q target public static void OnPlayAnimation(Obj_AI_Base sender, GameObjectPlayAnimationEventArgs args) { if (!sender.IsMe) { return; } switch (args.Animation) { case "Spell1a": Core.DelayAction(() => { Chat.Say("/d"); OrbHelper.ResetAutoAttackTimer(); Orbwalker.ResetAutoAttack(); Player.IssueOrder(GameObjectOrder.MoveTo, player.Position.Extend(Game.CursorPos, +10).To3DWorld()); }, 291); break; case "Spell1b": Core.DelayAction(() => { Chat.Say("/d"); OrbHelper.ResetAutoAttackTimer(); Orbwalker.ResetAutoAttack(); Player.IssueOrder(GameObjectOrder.MoveTo, player.Position.Extend(Game.CursorPos, +10).To3DWorld()); }, 291); break; case "Spell1c": Core.DelayAction(() => { Chat.Say("/d"); OrbHelper.ResetAutoAttackTimer(); Orbwalker.ResetAutoAttack(); Player.IssueOrder(GameObjectOrder.MoveTo, player.Position.Extend(Game.CursorPos, +10).To3DWorld()); }, (getCheckBoxItem(comboMenu, "TheshyQ") ? 0 : 391)); break; /* * case "Spell2": * Core.DelayAction(() => * { * Chat.Print("aaa"); * Chat.Say("/d"); * Orbwalker.ResetAutoAttack(); * Player.IssueOrder(GameObjectOrder.MoveTo, player.Position.Extend(Game.CursorPos, +10).To3DWorld()); * }, (getSliderItem(comboMenu, "QD") * 10) + 1); * break; * case "Spell3": * Core.DelayAction(() => * { * Chat.Print("aaa"); * Chat.Say("/d"); * Orbwalker.ResetAutoAttack(); * Player.IssueOrder(GameObjectOrder.MoveTo, player.Position.Extend(Game.CursorPos, +10).To3DWorld()); * }, (getSliderItem(comboMenu, "QD") * 10) + 1); * break;//*/ case "Spell4a": lastr = Core.GameTickCount; break; } }