Mystic Mapper
Dev++Unzialish BETA
Hello.I want an broadcast message,that will say text in TALKTYPE_RED,and later,it will be told again,and again...For some time..
local text = {
[1] = "text here",
[2] = "text here",
}
function onThink(interval, lastExecution)
doBroadcastMessage("Your text: "..text[math.random(1,2)])
return TRUE
end
<talkaction words="/start broadcast" event="script" value="autobroadcast.lua"/>
<globalevent name="message" interval="60000" event="script" value="message.lua"/>
function onThink(interval)
doBroadcastMessage("LA LA LA LA LA ! _ARTHUR IS BEST ! ! !")
return true
end
LOL
[06/11/2010 18:26:21] [Error - GlobalEvent Interface]
[06/11/2010 18:26:21] data/globalevents/scripts/autobroadcast.luanThink
[06/11/2010 18:26:21] Description:
[06/11/2010 18:26:21] data/globalevents/scripts/autobroadcast.lua:8: wrong number of arguments
[06/11/2010 18:26:21] stack traceback:
[06/11/2010 18:26:21] [C]: in function 'random'
[06/11/2010 18:26:21] data/globalevents/scripts/autobroadcast.lua:8: in function <data/globalevents/scripts/autobroadcast.lua:7>
[06/11/2010 18:26:21] [Error - GlobalEvents::think] Couldn't execute event: reklama
[06/11/2010 18:26:21] [Error - GlobalEvents::think] Couldn't execute event: [B][U]reklama[/U][/B]
Thx arthur love you :d
Damit whatta g*y (no offence)