Advertisement
Guest User

Steam

a guest
May 30th, 2015
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.32 KB | None | 0 0
  1.    term.setBackgroundColor(1)
  2.  
  3.     term.clear()
  4.     local     m = peripheral.wrap("back")
  5.     local     mx, my = m.getSize()    
  6.               m.setTextScale(1)          
  7.               term.setTextColor(32768)
  8.     term.setCursorPos(1,1)
  9.    
  10.  
  11.        
  12.        
  13.        
  14.        
  15.        
  16.           term.setCursorPos(1,6)
  17.      term.setTextColor(32)
  18.      print("Ofen 2 Quicklime")
  19.      term.setCursorPos(20,6)
  20.      term.setTextColor(8192)
  21.        print("[O]")
  22.      term.setCursorPos(25,6)
  23.      term.setTextColor(16384)
  24.        print("[X]")
  25.        
  26.        
  27.        
  28.        
  29.        
  30.      term.setCursorPos(1,7)
  31.      term.setTextColor(32)
  32.      print("Ofen 3 Quicklime")
  33.      term.setCursorPos(20,7)
  34.      term.setTextColor(8192)
  35.        print("[O]")
  36.      term.setCursorPos(25,7)
  37.      term.setTextColor(16384)
  38.        print("[X]")
  39.        
  40.        
  41.        
  42.        
  43.        
  44.        term.setCursorPos(1,8)
  45.        term.setTextColor(256)
  46.      print("Ofen 4 Magnesium")
  47.      term.setCursorPos(20,8)
  48.      term.setTextColor(8192)
  49.        print("[O]")
  50.      term.setCursorPos(25,8)
  51.      term.setTextColor(16384)
  52.        print("[X]")
  53.        
  54.        
  55.        
  56.        
  57.        
  58.        term.setCursorPos(1,9)
  59.        term.setTextColor(128)
  60.      print("Ofen 5 Titanium")
  61.      term.setCursorPos(20,9)
  62.      term.setTextColor(8192)
  63.        print("[O]")
  64.      term.setCursorPos(25,9)
  65.      term.setTextColor(16384)
  66.        print("[X]")
  67.        
  68.        
  69.        
  70.        while true do
  71. event, side, x, y = os.pullEvent()
  72.  if event == "monitor_touch" then
  73.  if x == 21 and y == 5 then
  74.      term.setCursorPos(1,13)
  75.      term.setTextColor(2)
  76.      print("Ofen 1 Quicklime heizt Auf")
  77.           rs.setOutput("right", true)
  78.  elseif event == "monitor_touch" then
  79.  if x == 26 and y == 5 then
  80.      term.setCursorPos(1,13)
  81.      term.setTextColor(512)
  82.      print("Ofen 1 Quicklime kühlt Ab ")
  83.           rs.setOutput("right", false)
  84.          
  85.  elseif event == "monitor_touch" then
  86.  if x == 21 and y == 6 then
  87.      term.setCursorPos(1,14)
  88.      term.setTextColor(2)
  89.      print("Ofen 2 Quicklime heizt Auf")
  90.          rs.setOutput("left", true)
  91.  elseif event == "monitor_touch" then
  92.  if x == 26 and y == 6 then
  93.      term.setCursorPos(1,14)
  94.      term.setTextColor(512)
  95.      print("Ofen 2 Quicklime kühlt Ab ")
  96.          rs.setOutput("left", false)
  97.  
  98.  
  99.  elseif event == "monitor_touch" then
  100.  if x == 21 and y == 7 then
  101.      term.setCursorPos(1,15)
  102.      term.setTextColor(1)
  103.      print("Ofen 3 Quicklime heizt Auf")
  104.      rs.setOutput("top", true)
  105.  elseif event == "monitor_touch" then
  106.  if x == 26 and y == 7 then
  107.      term.setCursorPos(1,15)
  108.      term.setTextColor(512)
  109.      print("Ofen 3 Quicklime kühlt Ab ")
  110.          rs.setOutput("top", false)        
  111.          
  112.          
  113.          
  114.          
  115.          
  116.          
  117.           elseif event == "monitor_touch" then
  118.  if x == 21 and y == 8 then
  119.  term.setCursorPos(1,16)
  120.      term.setTextColor(1)
  121.      print("Ofen 4 Magnesium heizt Auf")
  122.      rs.setOutput("bottom", true)
  123.  elseif event == "monitor_touch" then
  124.  if x == 26 and y == 8 then
  125.  term.setCursorPos(1,16)
  126.      term.setTextColor(512)
  127.      print("Ofen 4 Magnesium kühlt Ab ")
  128.      rs.setOutput("bottom", false)  
  129.    
  130.    
  131.      elseif event == "monitor_touch" then
  132.  if x == 21 and y == 9 then
  133.  term.setCursorPos(1,17)
  134.      term.setTextColor(1)
  135.      print("Ofen 5 Titanium heizt Auf")
  136.      rs.setOutput("front", true)
  137.  elseif event == "monitor_touch" then
  138.  if x == 26 and y == 9 then
  139.  term.setCursorPos(1,17)
  140.      term.setTextColor(512)
  141.      print("Ofen 5 Titanium kühlt Ab ")
  142.      rs.setOutput("front", false)        
  143.                
  144.          
  145.          
  146.  elseif event == "monitor_touch" then
  147.  if x == 38 and y == 1 then
  148.          rs.setOutput("right", false)
  149.          rs.setOutput("left", false)
  150.          rs.setOutput("top", false)
  151.          rs.setoutput("bottom", false)
  152.          rs.setOutput("front", false)
  153.          
  154.             sleep(0.1)
  155.              shell.run("clear")
  156.              shell.run("startup")
  157.              
  158.              
  159.              
  160.                    
  161.        end
  162.        end
  163.        end
  164.        end
  165.        end
  166.        end
  167.        end
  168.        end
  169.        end
  170.        end
  171.        end
  172.        
  173.        end
  174.        end
  175.        end
  176.        end
  177.        
  178.        end
  179.        end
  180.        end
  181.        end
  182.        end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement