I need it so when u step on it keeps doing effeft, and when u step of it stops but i cant get the stepout to work so i removed it from the script but here is what i got so far.
Lua:
local config = {
positions = {
["Test"] = { x = 1020, y = 1008, z = 7 },
["Test "] = { x = 1020, y = 1007, z = 7 },
},
effects = {
31
},
colors = {
TEXTCOLOR_YELLOW
}
}
function onStepIn(cid, item, position, fromPosition)
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