Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Central GPS Config
- ComputerLabel = os.getComputerLabel()
- PasteBinCode = "Mr3FuF8D"
- if ComputerLabel == 'TB_GPS_1' then loc={x=1726,z=105,y=1255}
- elseif ComputerLabel == 'TB_GPS_2' then loc={x=1745,z=105,y=1255}
- elseif ComputerLabel == 'TB_GPS_3' then loc={x=1745,z=117,y=1249}
- elseif ComputerLabel == 'TB_GPS_4' then loc={x=1745,z=117,y=1255}
- elseif ComputerLabel == 'GPS_Maze_1' then loc={x=560, z=0, y=7582}
- elseif ComputerLabel == 'GPS_Maze_2' then loc={x=560, z=5, y=7582}
- elseif ComputerLabel == 'GPS_Maze_3' then loc={x=573, z=5, y=7582}
- elseif ComputerLabel == 'GPS_Maze_4' then loc={x=560, z=5, y=7567}
- else
- loc={x=0,y=0,z=0}
- end
- if loc.x==0 and loc.y==0 and loc.z==0 then
- term.clear()
- term.setCursorPos(1,1); term.write("Pastebin GPS - " ..PasteBinCode)
- term.setCursorPos(1,2); term.write("========================")
- term.setCursorPos(1,3); term.write("Name: "..ComputerLabel)
- term.setCursorPos(1,4); term.write("ERROR; UNKNOWN TERMINAL NAME")
- term.setCursorPos(1,6)
- else
- term.clear()
- term.setCursorPos(1,1); term.write("Pastebin GPS - " ..PasteBinCode)
- term.setCursorPos(1,2); term.write("========================")
- term.setCursorPos(1,3); term.write("Name: "..ComputerLabel)
- term.setCursorPos(1,4); term.write("Location: "..loc.x..","..loc.z..","..loc.y)
- term.setCursorPos(1,6);
- shell.run("gps","host",loc.x,loc.z,loc.y)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement