Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x,y = term.getSize()
- while true do
- local x1, x2 = math.random(x), math.random(y)
- local ad = math.random(4)
- term.setCursorPos(x1,x2)
- if ad == 1 then
- write("+-Tired of ads?-+")
- term.setCursorPos(x1,x2+1)
- write("|Then click here|")
- term.setCursorPos(x1,x2+3)
- write("+---------------+")
- elseif ad == 2 then
- write("+-Free games-+")
- term.setCursorPos(x1,x2+1)
- write("|Register now|")
- term.setCursorPos(x1,x2+3)
- write("+------------+")
- elseif ad == 3 then
- write("+-We Want you.-+")
- term.setCursorPos(x1,x2+1)
- write("|To join nexus!|")
- term.setCursorPos(x1,x2+3)
- write("+--------------+")
- elseif ad == 4 then
- write("+---Hey you!---+")
- term.setCursorPos(x1,x2+1)
- write("|Hi! :3 :P :D |")
- term.setCursorPos(x1,x2+3)
- write("+--------------+")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment