Advertisement
thezak48

Quarry Startup Final

May 26th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. function Advanced()
  2. shell.run("delete Control")
  3. shell.run("pastebin get n6eLng4w Control")
  4. shell.run("delete Commands")
  5. shell.run("pastebin get iZD0Tp5d Commands")
  6. shell.run("Control")
  7. end
  8.  
  9. function Normal()
  10. shell.run("delete Control")
  11. shell.run("pastebin get r8a8QKhB Control")
  12. shell.run("delete Commands")
  13. shell.run("pastebin get n9yHrmv4 Commands")
  14. shell.run("Control")
  15. end
  16.  
  17. function clear()
  18.    term.clear()
  19.    term.setCursorPos (1,1)
  20. end
  21.  
  22. while true do
  23.    clear()
  24.    print [[Press A for Advanced Computer.
  25.         Press S for Standard Computer.]]
  26.    local event, param1 = os.pullEvent ("char")
  27.    if param1 == "a" then
  28.        clear()
  29.        Advanced()
  30.        break
  31.    elseif param1 == "s" then
  32.         clear()
  33.         Normal()
  34.         break
  35.    else
  36.        clear()
  37.        print ("Wrong button!")
  38.        sleep (1)
  39.    end
  40.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement