Code:
local config = {
positions = {
["Teleports"] = { x = 1006, y = 996, z = 7 },
["Quests"] = { x = 1006, y = 997, z = 7 },
["Trainers"] = { x = 1006, y = 998, z = 7 },
["Houses!"] = { x = 1006, y = 999, z = 7 },
},
effects = {
CONST_ME_MAGIC_BLUE,
CONST_ME_MAGIC_GREEN,
},
colors = {
TEXTCOLOR_WHITE,
TEXTCOLOR_ORANGE,
TEXTCOLOR_GREEN,
TEXTCOLOR_BLUE
}
}
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