SHARE
TWEET

SimSoft 3.1 - Startup

Simlor_GER May 16th, 2016 (edited) 656 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Alle Rechte an SimSoft 3 sind "SimlorLP" (oder in Minecraft auch nur "Simlor") vorbehalten.
  2. os.pullEvent = os.pullEventRaw
  3.  
  4. if peripheral.getType("front") == "monitor" then
  5.  bildausgabeSystem = "front"
  6.  
  7. elseif peripheral.getType("left") == "monitor" then
  8.  bildausgabeSystem = "left"
  9.  
  10. elseif peripheral.getType("right") == "monitor" then
  11.  bildausgabeSystem = "right"
  12.  
  13. elseif peripheral.getType("top") == "monitor" then
  14.  bildausgabeSystem = "top"
  15.  
  16. elseif peripheral.getType("bottom") == "monitor" then
  17.  bildausgabeSystem = "bottom"
  18.  
  19. elseif peripheral.getType("back") == "monitor" then
  20.  bildausgabeSystem = "back"
  21.  
  22. else
  23.  bildausgabeSystem = "normal"
  24.  
  25. end
  26.  
  27. if bildausgabeSystem == "normal" then
  28. else
  29.  term.setTextColor(1)
  30.  term.setBackgroundColor(32768)
  31.  term.clear()
  32.  term.setCursorPos(1,1)
  33.  print("Boot SimSoft on monitor ("..bildausgabeSystem..")?")
  34.  print(" yes [y] - no [n]")
  35.  print("")
  36.  
  37.  write("y/n > ")
  38.  st = read()
  39.  
  40.  if st == "y" or st == "yes" then
  41.  elseif st == "n" or st == "no" then
  42.   bildausgabeSystem = "normal"
  43.  else
  44.   os.reboot()
  45.  end
  46. end
  47.  
  48. function SystemS()
  49.  if bildausgabeSystem == "normal" then
  50.   shell.run("SimSoft/System/SystemStart")
  51.  else
  52.   shell.run("monitor "..bildausgabeSystem.." SimSoft/System/SystemStart")
  53.  end
  54.  os.reboot()
  55. end
  56.  
  57.  
  58. --LiveSystem
  59. function LiveSystem()
  60.  shell.run("SimSoft/System/LiveSystem")
  61. end
  62. --LiveSystem end
  63.  
  64.  
  65. --System Start
  66. parallel.waitForAll(SystemS, LiveSystem)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top