Does this feature exist in TFS 1.0? I have this script but I dont see any error or floaty text. Could it be because of the interval?
Code:
<globalevent name="EffectTile" interval="3000" event="script" value="effectile.lua"/>
Code:
local config = {
positions = {
["Depot"] = { x = 1005, y = 996, z = 6 }
},
effects = {
CONST_ME_MAGIC_GREEN,
},
colors = {
TEXTCOLOR_YELLOW
}
}
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
end
return TRUE
end