• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Automatic Broadcasting?

Trader

New Member
Joined
Aug 12, 2009
Messages
219
Reaction score
2
Where and how do I set it so that In my server, it will broadcast a message every 5-10 minutes or so
And I also want it in different colours like orange or red

I know this is super duper easy but I am a total noob so.. ;)
Thanks!
 
Code:
local messages = {
    "Text Here"
}

local i = 0
function onThink(interval, lastExecution)
    local message = messages[(i % #messages) + 1]
    doBroadcastMessage("Information: " .. message,22)
    i = i + 1
    return TRUE
end

Use this as LUA

and this as XML:
Code:
<globalevent name="autocast" interval="60" script="autocast.lua" />

60 = 1 minute


REP ME
REP ME
REP ME
 
Hey another thing,
How can I change the colour of a message onLogin. Right now it's white for me and goes into server log where nobody can see it

I would like it to be in orange and come on the players screen. Thanks,
 
Back
Top Bottom