Flashing Message Box [the thing u see in funcorp rooms]

Tweiii

Mouse
I saw alot of funcorp members using it so i decided to make one that people can use in their tribe houses!
The code:
JavaScript:
local t = 'Put your text here!'
-- DO NOT MODIFY ANYTHING ABOVE THIS LINE
local n = 0
function eventLoop(ct, tr)
    if n == 0 then
        ui.addTextArea(1000, '<p align="center">'..t, nil, 7, 27, 788, 20, 0x000000, 0xff0000, 1, false)
    end
    if n == 1 then
        ui.removeTextArea(1000, nil)
        ui.addTextArea(1000, '<p align="center">'..t, nil, 7, 27, 788, 20, 0x000000, 0xff7700, 1, false)
    end
    if n == 2 then
        ui.removeTextArea(1000, nil)
        ui.addTextArea(1000, '<p align="center">'..t, nil, 7, 27, 788, 20, 0x000000, 0xffdd00, 1, false)
    end
    if n == 3 then
        ui.removeTextArea(1000, nil)
        ui.addTextArea(1000, '<p align="center">'..t, nil, 7, 27, 788, 20, 0x000000, 0x00ff11, 1, false)
    end
    if n == 4 then
        ui.removeTextArea(1000, nil)
        ui.addTextArea(1000, '<p align="center">'..t, nil, 7, 27, 788, 20, 0x000000, 0x00ffcc, 1, false)
    end
    if n == 5 then
        ui.removeTextArea(1000, nil)
        ui.addTextArea(1000, '<p align="center">'..t, nil, 7, 27, 788, 20, 0x000000, 0x0000ff, 1, false)
    end
    if n == 6 then
        ui.removeTextArea(1000, nil)
        ui.addTextArea(1000, '<p align="center">'..t, nil, 7, 27, 788, 20, 0x000000, 0x3c00ff, 1, false)
    end
    if n == 7 then
        ui.removeTextArea(1000, nil)
        ui.addTextArea(1000, '<p align="center">'..t, nil, 7, 27, 788, 20, 0x000000, 0xf200ff, 1, false)
        n = 0
    end
    n = n+1
end
You can execute this in your tribe house using /lua if you have /np command permissions,
also btw change 'Put your text here!' to whatever you want...
4150141501
 
Last edited:

Kuhaku

Mouse
the one seen in funcorps was made by me and it doesn't have to be/isn't as complicated as you've made it

code_language.lua:
text = "text" -- the text
size = 14 -- the size
colored = true -- if the text should be colored like the borders, must be true or false

-- change only the above --

eventLoop = function()
    local c = math.random(0xFFFFFF)
    ui.addTextArea(1, "<p align = 'center'><font size ='".. size .."' color = '#" .. (colored and string.format("%x", c) or "C2C2DA") .. "'>" .. text, nil, 5, 27, 790, nil, 1, c, 1)
end
 
Last edited:
Top
"Dev-TR" theme by Soulzone