Advertisement
Joroppo

Computercraft gps maker

Oct 22nd, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. print("x ?")
  2. x = read()
  3. print("y ?")
  4. y = read()
  5. print("z ?")
  6. z = read()
  7. if fs.exists == "startup" then
  8.     shell.run("rm startup")
  9. end
  10. f = fs.open("startup", "w")
  11. f.writeLine('shell.run("gps host '..x..' '..tostring(tonumber(y)-1)..' '..z..'")')
  12. f.close()
  13. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement