samuelask

Untitled

Aug 2nd, 2021 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. local c = require("component")
  2. local term = require("term")
  3. local component = require("component")
  4. local event = require("event")
  5. local serialization = require("serialization")
  6. local gpu = component.gpu
  7. local w, h = gpu.getResolution()
  8.  
  9. gpu.fill(1, 1, w, h, " ")
  10. local asd = 1
  11. local os = require("os")
  12. local modem = component.modem
  13. local term = require("term")
  14. local sg = c.stargate
  15. local text = require("text")
  16. local sides = require("sides")
  17. local pass = "wind"
  18. local abortcode = "1337"
  19. local port = 123
  20.  
  21.  
  22. repeat
  23.     eventID = event.listen(component.stargate.getGateStatus, function(gateStatus, openState)
  24.         if open and openState then
  25.             print("gate is being dialed")
  26.             if (event.cancel(eventID)) then
  27.                 print("Event cancelled successfully")
  28.             end
  29.         end
  30.     end)
  31. until asd == 2
Add Comment
Please, Sign In to add comment