Advertisement
Maxstripe

Warp Drive Cloak Controller (OC, WD)

Jul 31st, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. --made by maxstripe
  2. --copyright july 2016
  3. local event = require("event")
  4. local fs = require("filesystem")
  5. local term = require("term")
  6. local computer = require("computer")
  7. local component = require("component")
  8. local cloak = component.warpdriveCloakingCore
  9. function input ()
  10. term.clear()
  11. os.sleep(1)
  12. print("What Is Thy Bidding Master")
  13. print("Available Commands")
  14. print("cloak, uncloak")
  15. i = io.read()
  16. if i == "cloak"
  17. then
  18. print("t1 or t2?")
  19. elseif i == "uncloak"
  20. then
  21. cloak.enable(false)
  22. input()
  23. else
  24. --made by maxstripe
  25. input()
  26. end
  27. i2 = io.read()
  28. if i2 == "t1"
  29. then
  30. cloak.tier(1)
  31. cloak.enable(true)
  32. elseif i2 == "t2"
  33. then
  34. cloak.tier(2)
  35. cloak.enable(true)
  36. end
  37. os.sleep(1)
  38. return input()
  39. --made by maxstripe
  40. end
  41. input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement