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

Solved [TFS 1.2] Send broadcast to channel (globalevent)

Caduceus

Unknown Member
Joined
May 10, 2010
Messages
321
Solutions
2
Reaction score
24
Looking for a way to send channel messages via globalevent. In this case, World Chat is 3.

Code:
local t, i = {
"[Server]: message 1",
"[Server]: message 2"
}, 1

function onThink(interval)
    sendChannelMessage(3, MESSAGE_EVENT_ORANGE, t[i])
    i = i == #t and 1 or i + 1
    return true
end

Issue was wrong talktype.
Code:
sendChannelMessage(3, TALKTYPE_CHANNEL_R1, t[i])
 
Last edited:
Back
Top