Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local term = require("term")
- local component = require("component")
- local modem = component.modem
- local reds = component.redstone
- local sg = component.stargate
- local zpm = component.zpmhub
- local sides = require("sides")
- local colors = require("colors")
- local port = 1234
- local asd = 1
- local IDC = "1337"
- local event = require("event")
- local os = require("os")
- local computer = require("computer")
- local serialization = require("serialization")
- local currentSymbolCount = 0 -- Tracks the number of successfully engaged symbols
- -- Debugging listener setup for stargate_incoming_wormhole
- print("Starting listener setup...")
- local function onIncomingWormhole(address, caller, dialedAddressSize)
- print("Event Triggered: stargate_incoming_wormhole")
- print("Address: " .. tostring(address))
- print("Caller: " .. tostring(caller))
- print("Dialed Address Size: " .. tostring(dialedAddressSize))
- end
- wormholeEventID = event.listen("stargate_incoming_wormhole", onIncomingWormhole)
- if wormholeEventID then
- print("Wormhole event listener successfully registered!")
- else
- print("Failed to register wormhole event listener.")
- end
- -- Keep program running to capture events
- while true do
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement