private void ExecuteNextAction() { try { if (m_Macro == null || World.Player == null) { this.Stop(); MacroManager.Stop(); } else if (!m_Macro.ExecNext()) { this.Stop(); MacroManager.Stop(true); if (!Config.GetBool("DisableMacroPlayFinish")) { World.Player.SendMessage(LocString.MacroFinished, m_Macro); } } } catch { this.Stop(); MacroManager.Stop(); } }
protected override void OnTick() { try { if (m_Macro == null || World.Player == null) { this.Stop(); MacroManager.Stop(); } else if (!m_Macro.ExecNext()) { this.Stop(); MacroManager.Stop(true); World.Player.SendMessage(LocString.MacroFinished, m_Macro); } } catch { this.Stop(); MacroManager.Stop(); } }