• 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 Globalevents - bc messages

Fiodor

Lua & Maps
Joined
Mar 14, 2009
Messages
400
Reaction score
10
Location
Poland
Hello

In my server [cd 0.3.5] I have this script in globalevents:
Code:
function onThink(interval, lastExecution)
addEvent(doBroadcastMessage, 150, 'Bla bla bla', MESSAGE_STATUS_DEFAULT)
end
Code:
<globalevent name="broadcast" interval="1800" event="script" value="broadcast.lua"/>

And every 30 minutes in my otserver appears text 'Bla bla bla' in white colour [on the down of game window -like hits- and in server log].

1. How to make this text green? [In centre of game window and in server log]

2. How to make different texts?:
11:00 Bla bla bla
11:30 Lol lol lol
12:00 Hahaha
12:30 Bla bla bla
13:00 Lol lol lol
etc...


tia
 
Thanks, rep++
btw. here:
local messages = {
"Type xxxxxxxx",
"Type xxxxxxxx",
"Type xxxxxxxx",
"Type xxxxxxxx"
It should be "Bla bla bla" or "Type Bla bla bla"?

@down
thanks
 
Last edited:
Back
Top