Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("right")
- term.redirect(mon)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- -- "|------------------------|")
- print(" Welcome to mstiles92's")
- print(" Trading Post!")
- print("")
- print(" Uranium greatly needed!")
- print(" Trade it in for diamonds,")
- print(" or sell it to me here")
- print("")
- print(" Trade items on back wall")
- print(" Sell on the right wall")
- print(" Buy on the left wall")
- local sEvent, param = os.pullEvent("key")
- if param == 61 then -- pressing F3 terminates
- term.restore()
- print("Exiting...")
- sleep(1)
- mon.clear()
- break
- end
- end
Add Comment
Please, Sign In to add comment