local TEXTCOLOR = {
BLACK = 0,
BLUE = 5,
GREEN = 18,
LIGHTGREEN = 66,
DARKBROWN = 78,
LIGHTBLUE = 89,
MAYABLUE = 95,
DARKRED = 108,
DARKPURPLE = 112,
BROWN = 120,
GREY = 129,
TEAL = 143,
DARKPINK = 152,
PURPLE = 154,
DARKORANGE = 156,
RED = 180,
PINK = 190,
ORANGE = 192,
DARKYELLOW = 205,
YELLOW = 210,
WHITE = 215,
NONE = 255,
}
local effects = {
{position = Position(153, 48, 7), text = 'Hunts', effects = {29,11}, textColor = TEXTCOLOR.YELLOW},
{position = Position(151, 48, 7), text = 'Quests', effects = {29,11}, textColor = TEXTCOLOR.YELLOW},
{position = Position(152, 48, 7), text = 'Trainers', effects = {29,11}, textColor = TEXTCOLOR.YELLOW},
{position = Position(160, 41, 7), text = 'Vip', effects = {29}, textColor = TEXTCOLOR.YELLOW},
}
function onThink(creature, interval)
for i = 1, #effects do
local settings = effects
local spectators = Game.getSpectators(settings.position, false, true, 7, 7, 5, 5)
if #spectators > 0 then
if settings.text then
Game.sendAnimatedText(settings.text, settings.position, settings.textColor)
end
for _, effect in ipairs(settings.effects) do
settings.position:sendMagicEffect(effect)
end
end
end
return true
end