local config = {
positions = {
["Welcome"] = { x = 1105, y = 989, z = 7 },
["Hunt Spot"] = { x = 1003, y = 996, z = 7 },
["Quests"] = { x = 1004, y = 996, z = 7 },
["Trainers"] = { x = 997, y = 1002, z = 7 }
},
effects = {
CONST_ME_MAGIC_BLUE,
CONST_ME_MAGIC_GREEN,
CONST_ME_MORTAREA,
CONST_ME_STUN
},
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