Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- textutils.slowPrint ("Hello, and Welcome to this power shop that still doesn't have a name!",40)
- sleep(1)
- textutils.slowPrint ("From this very computer you can either refill or purchase your own energy cell.",40)
- sleep(1)
- textutils.slowPrint ("So which of these would you like to do?",40)
- write ("Refill or Purchase? ")
- x = io.read()
- if x == "Refill" then
- shell.run("fill")
- else
- if x == "refill" then
- shell.run("fill")
- else
- if x == "Purchase" then
- shell.run("purchase")
- else
- if x == "purchase" then
- shell.run("purchase")
- end
- end
- end
- end
- os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement