local text = {
--X pos,Y pos, Z pos, text
[1] = {pos = {283,2047,6}, text = {"text 1"}},
[2] = {pos = {1096,1217,7}, text = {"text 2"}},
[3] = {pos = {1097,1217,7}, text = {"text 3"}},
[4] = {pos = {1098,1217,7}, text = {"text 4"}}
}
local effects = {
--X pos,Y pos, Z pos, text
[1] = {pos = {1095,1217,7}, effect = {18}},
[2] = {pos = {1096,1217,7}, effect = {19}},
[3] = {pos = {1097,1217,7}, effect = {21}},
[4] = {pos = {1098,1217,7}, effect = {22}}
}
function onThink(interval, lastExecution)
for _, area in pairs(text) do
doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255))
addEvent(animated, 5000)
end
for _, area in pairs(effects) do
doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])
end
return TRUE
end
function animated ()
for _, area in pairs(text) do
doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255))
addEvent(animated, 5000)
end
for _, area in pairs(effects) do
doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])
end
return TRUE
end
<?xml version="1.0" encoding="UTF-8"?>
<globalevents>
<globalevent type="record" name="PlayerRecord" script="record.lua"/>
<globalevent name="reclame" interval="900" script="reclame.lua"/>
</globalevents>