• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Windows Auto Broadcast

drifter8779

Member
Joined
Oct 17, 2009
Messages
163
Reaction score
7
I just wondered if an Auto Broad-Cast System has been released for TFS 1.0 or if anyone knows of one that works?
 
Auto Broadcast:
Code:
local t, i = {"test", "testing", "test123"}, 1

function onThink(interval)
broadcastMessage(t[i], MESSAGE_STATUS_WARNING)
i = i == #t and 1 or i + 1
return true
end
by @Ninja

and about cast system:
I think don't people release this for FREE.
 
Auto Broadcast:
Code:
local t, i = {"test", "testing", "test123"}, 1

function onThink(interval)
broadcastMessage(t[i], MESSAGE_STATUS_WARNING)
i = i == #t and 1 or i + 1
return true
end
by @Ninja

and about cast system:
I think don't people release this for FREE.
Its the same script as i linked, and he didnt ask for a cast system???
 
Code:
<globalevent name="autoBroadcast" interval="60000" script="scriptname.lua" />
 

i tried this and got this error...

BKYJgk7.png

 
You have probably wrote something wrong
i had it at 3~ seconds for testing

Code:
    <globalevent name="autoBroadcast" interval="3" script="others/broadcast.lua" />

Code:
function onThink(interval, lastExecution)
MENSAGEM = {
"message 1",
"message 2",
"message 3",
"message 4",
"message 5",
}
broadcastmessage(MENSAGEM[math.random(1,#MENSAGEM)],19)
end
return TRUE
end
 
Code:
local t, i = {
"message 1",
"message 2",
"message 3",
"message 4",
"message 5",
}, 1

function onThink(interval)
    broadcastMessage(t[i], MESSAGE_STATUS_WARNING)
    i = i == #t and 1 or i + 1
    return true
end
 
Back
Top