Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Computercraft Monitor --
- local monitor = peripheral.wrap("back")
- term.redirect(monitor)
- monitor.setCursorPos(1, 1)
- monitor.setBackgroundColor(colors.black)
- monitor.clear()
- local monitorx, monitory = monitor.getSize()
- function WriteCenter(Text, ypos)
- local curx, cury = monitor.getCursorPos()
- monitor.setCursorPos(math.floor((monitorx/2)+0.5) - math.floor((string.len(Text)/2)+0.5), ypos)
- monitor.write(Text)
- end
- function GetCenter(Text)
- return (math.floor((monitorx/2)+0.5) - math.floor((string.len(Text)/2)+0.5))
- end
- function RandomColor(randomthing)
- local colors = {
- colors.orange,
- colors.magenta,
- colors.lightBlue,
- colors.yellow,
- colors.lime,
- colors.pink,
- colors.cyan,
- colors.purple,
- colors.blue,
- colors.green,
- colors.red
- }
- if randomthing ~= nil then
- return colors[(randomthing%#colors)+1]
- else
- return colors[math.random(1, #colors)]
- end
- end
- function GetRandomPlayer()
- os.loadAPI("json")
- ip="aof6na.alloffabric.com"
- str = http.get("https://mcapi.us/server/status?ip="..ip).readAll()
- obj = json.decode(str)
- players = obj.players.sample
- term.clear()
- term.setCursorPos(1,1)
- term.setBackgroundColor(colors.gray)
- local selected = math.random(1, #players)
- local playername = players[selected]["name"]
- local id = tonumber(string.match(players[selected]["id"], "%d+"))
- if id == nil then
- id = 1
- end
- return playername, id
- end
- math.randomseed(math.floor((os.epoch("utc")/100)))
- doxxedPlayer, doxxedPlayerID = GetRandomPlayer()
- DoStuff = 100
- offset = 0
- while true do
- monitor.setBackgroundColor(colors.black)
- monitor.setTextColor(colors.white)
- monitor.clear()
- paintutils.drawFilledBox(1, 1, monitorx, 1, colors.red)
- WriteCenter("Ender OS", 1)
- local time = os.time()
- local formattedTime = textutils.formatTime(time, false)
- math.randomseed(math.floor(os.epoch("utc")/5000))
- monitor.setCursorPos(1, 1)
- monitor.write(formattedTime)
- monitor.setBackgroundColor(colors.black)
- monitor.setCursorPos(1, 3)
- monitor.write("Your lucky numbers are: ")
- monitor.setTextColor(RandomColor())
- monitor.write(tostring(math.floor(math.random(1, 99))))
- monitor.setTextColor(colors.white)
- monitor.write(", ")
- monitor.setTextColor(RandomColor())
- monitor.write(tostring(math.floor(math.random(1, 99))))
- monitor.setTextColor(colors.white)
- monitor.write(", ")
- monitor.setTextColor(RandomColor())
- monitor.write(tostring(math.floor(math.random(1, 99))))
- monitor.setTextColor(colors.white)
- monitor.write(", ")
- monitor.setTextColor(RandomColor())
- monitor.write(tostring(math.floor(math.random(1, 99))))
- monitor.setTextColor(colors.white)
- monitor.write(", ")
- monitor.setTextColor(RandomColor())
- monitor.write(tostring(math.floor(math.random(1, 99))))
- monitor.setTextColor(colors.white)
- monitor.setCursorPos(1, 4)
- monitor.write("Final ")
- monitor.setTextColor(colors.purple)
- monitor.write("GREGIFICATION ")
- monitor.setTextColor(colors.white)
- if (os.epoch("utc")/1000)%110 < 100 then
- monitor.write("in process... (" .. math.floor((os.epoch("utc")/1000)%110) .. "%)")
- else
- monitor.setTextColor(colors.red)
- monitor.write("FAILED")
- end
- monitor.setTextColor(colors.white)
- monitor.setCursorPos(1, 5)
- monitor.write("Is the one piece real? ")
- math.randomseed(math.floor((os.epoch("utc")/1000)))
- if math.random(1, 2) == 1 then
- monitor.setTextColor(colors.lime)
- monitor.write("YES")
- else
- monitor.setTextColor(colors.red)
- monitor.write("NO")
- end
- monitor.setTextColor(colors.white)
- monitor.setCursorPos(1, 6)
- monitor.write("Doxxing ")
- monitor.setTextColor(RandomColor(doxxedPlayerID))
- monitor.write(doxxedPlayer)
- if DoStuff <= 0 then
- math.randomseed(math.floor((os.epoch("utc")/50)))
- doxxedPlayer, doxxedPlayerID = GetRandomPlayer()
- DoStuff = 100
- end
- DoStuff = DoStuff - 1
- os.sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement