Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.call("back","clear")
- peripheral.call("back","setCursorPos",10,1)
- peripheral.call("back","write","Lethal Inc.")
- peripheral.call("back","setCursorPos",10,2)
- peripheral.call("back","write","Storage")
- peripheral.call("back","setCursorPos",2,6)
- peripheral.call("back","write","tank1")
- peripheral.call("back","setCursorPos",2,9)
- peripheral.call("back","write","tank2")
- peripheral.call("back","setCursorPos",2,12)
- peripheral.call("back","write","tank3")
- peripheral.call("back","setCursorPos",2,15)
- peripheral.call("back","write","Cell1")
- peripheral.call("back","setCursorPos",2,18)
- peripheral.call("back","write","Exit")
- shell.run("tank1")
- shell.resolve("cell1")
- while true do
- event, side, x,y = os.pullEvent()
- print(event .."=> Side " .. tostring(side))
- print("X:" .. tostring(x) .. " Y: " .. tostring(y))
- if y==6 then
- shell.run("tank1")
- end
- if y==9 then
- shell.run("tank2")
- end
- if y==12 then
- shell.run("tank3")
- end
- if y==15 then
- shell.run("cell1")
- if y==18 then
- shell.run("reboot")
- end
- if x==17 and y==6 then
- end
- if x == 1 and y ==1 then
- shell.run("reboot")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement