• 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!

How do I make text brodcast its self every 5 minutes ?

mikezeid

New Member
Joined
Jan 9, 2013
Messages
60
Reaction score
1
How do I make text brodcast its self every 5 minutes ? For example : I was players to know that if you want premmy just say !prumium how do I do that or where Do i it??

Thank You
 
Try this :

Add to data/globalevents/scripts --> new .lua file "autobroadcast"

Lua:
local messages = {
    "Write !buylist for the list of buyable items with killpoints!",
    "Use !buy to buy an item with killpoints!",
    "Use !killpoints to see how many kills you've got."
}

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

Add to data/globalevents/globalevents.xml
a line like thw others in globalevents.xml and just change file to "autobroadcast.lua"
 
Back
Top