Пример #1
0
            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();
                }
            }
Пример #2
0
 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();
     }
 }