Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local w,h = term.getSize()
- shell.run("boxCLASS")
- shell.run("helperFuncs")
- rednet.open("top")
- rednet.open("right")
- rednet.open("left")
- rednet.open("back")
- rednet.open("bottom")
- shell.run("mkdir", "SpongedInfo")
- selection = 1
- message = ""
- -- Rednet functions --
- function spam(time, receiver)
- if receiver == nil then
- repeat
- rednet.broadcast("d9f23j9osdculf90ds9uf3indj9vj390jg90u39jnnv09dsjf903u90ufvo8zhjdportj2")
- time = time-1
- until time == 0
- else
- repeat
- rednet.send(receiver, "d9f23j9osdculf90ds9uf3indj9vj390jg90u39jnnv09dsjf903u90ufvo8zhjdportj2")
- time = time-1
- until time == 0
- end
- end
- function sponge(time)
- repeat
- sender, message = rednet.receive(0.8)
- if sender ~= nil then
- local file = fs.open("SpongedInfo/"..sender, "w")
- file.writeLine(tostring(message))
- file.close()
- end
- time = time-1
- until time <= 0
- end
- function attack(receiver, attackType)
- if ping(receiver) then
- rednet.send(receiver, tostring(attackType))
- return true
- else
- return false
- end
- end
- --------------------------
- while true do
- clear()
- print("Type the amount of desired spam time: ")
- local spamTime = tonumber(read())
- print("Spamming....")
- spam(spamTime, nil)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement