Пример #1
0
 protected void DowntimeExitAndRelaunch()
 {
     StealthBot.Instance.IsEnabled = false;
     if (StealthBot.Config.MaxRuntimeConfig.RelaunchAfterDowntime)
     {
         LavishScript.ExecuteCommand(
             String.Format("relay {0} \"TimedCommand 54000 run isboxer -launch \"{1}\"\"",
                           "${SettingXML[InnerSpace.XML].Set[Remote].GetString[Name].Escape}",
                           StealthBot.Config.MaxRuntimeConfig.CharacterSetToRelaunch));
     }
     LavishScript.ExecuteCommand(
         "uplink TimedCommand 200 kill ${Session}");
     StealthBot.OnSaveAndExit(this);
 }
Пример #2
0
        protected void ExitAndRelaunch()
        {
            StealthBot.Instance.IsEnabled = false;
            if (StealthBot.Config.MaxRuntimeConfig.UseRelaunching)
            {
                LavishScript.ExecuteCommand(
                    String.Format("relay {0} \"TimedCommand 600 run isboxer -launch \"{1}\"\"",
                                  "${SettingXML[InnerSpace.XML].Set[Remote].GetString[Name].Escape}",
                                  StealthBot.Config.MaxRuntimeConfig.CharacterSetToRelaunch));
            }

            //This code might not be correct, but the idea is. We want to exit after 5 seconds so we don't undock forever, which is going to get things blown up in low/nullsec.
            LavishScript.ExecuteCommand("uplink TimedCommand 200 kill ${Session}");
            StealthBot.OnSaveAndExit(this);
        }