Advertisement
Guest User

shop

a guest
Jul 25th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. textutils.slowPrint ("Hello, and Welcome to this power shop that still   doesn't have a name!",40)
  2. sleep(1)
  3. textutils.slowPrint ("From this very computer you can either refill or   purchase your own energy cell.",40)
  4. sleep(1)
  5. textutils.slowPrint ("So which of these would you like to do?",40)
  6. write ("Refill or Purchase?  ")
  7. x = io.read()
  8.  
  9. if x == "Refill" then
  10. shell.run("fill")
  11. else
  12. if x == "refill" then
  13. shell.run("fill")
  14. else
  15. if x == "Purchase" then
  16. shell.run("purchase")
  17. else
  18. if x == "purchase" then
  19. shell.run("purchase")
  20. end
  21. end
  22. end
  23. end
  24. os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement