Beispiel #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();
                }
            }
Beispiel #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();
     }
 }