Advertisement
TurtleBull

GPS

Apr 13th, 2024 (edited)
782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.39 KB | Gaming | 0 0
  1. --Central GPS Config
  2. ComputerLabel = os.getComputerLabel()
  3. PasteBinCode = "Mr3FuF8D"
  4. if     ComputerLabel == 'TB_GPS_1'   then loc={x=1726,z=105,y=1255}
  5. elseif ComputerLabel == 'TB_GPS_2'   then loc={x=1745,z=105,y=1255}
  6. elseif ComputerLabel == 'TB_GPS_3'   then loc={x=1745,z=117,y=1249}
  7. elseif ComputerLabel == 'TB_GPS_4'   then loc={x=1745,z=117,y=1255}
  8. elseif ComputerLabel == 'GPS_Maze_1' then loc={x=560, z=0,  y=7582}
  9. elseif ComputerLabel == 'GPS_Maze_2' then loc={x=560, z=5,  y=7582}
  10. elseif ComputerLabel == 'GPS_Maze_3' then loc={x=573, z=5,  y=7582}
  11. elseif ComputerLabel == 'GPS_Maze_4' then loc={x=560, z=5,  y=7567}
  12. else
  13.     loc={x=0,y=0,z=0}
  14. end
  15.  
  16. if loc.x==0 and loc.y==0 and loc.z==0 then
  17.     term.clear()
  18.     term.setCursorPos(1,1); term.write("Pastebin GPS - " ..PasteBinCode)
  19.     term.setCursorPos(1,2); term.write("========================")
  20.     term.setCursorPos(1,3); term.write("Name:     "..ComputerLabel)
  21.     term.setCursorPos(1,4); term.write("ERROR; UNKNOWN TERMINAL NAME")
  22.     term.setCursorPos(1,6)
  23. else
  24.     term.clear()
  25.     term.setCursorPos(1,1); term.write("Pastebin GPS - " ..PasteBinCode)
  26.     term.setCursorPos(1,2); term.write("========================")
  27.     term.setCursorPos(1,3); term.write("Name:     "..ComputerLabel)
  28.     term.setCursorPos(1,4); term.write("Location: "..loc.x..","..loc.z..","..loc.y)
  29.     term.setCursorPos(1,6);
  30.     shell.run("gps","host",loc.x,loc.z,loc.y)
  31. end
  32.  
  33.  
  34.    
  35.    
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement