--[[
TEXTCOLOR_BLACK = 0,
TEXTCOLOR_BLUE = 5,
TEXTCOLOR_GREEN = 18,
TEXTCOLOR_LIGHTGREEN = 66,
TEXTCOLOR_DARKBROWN = 78,
TEXTCOLOR_LIGHTBLUE = 89,
TEXTCOLOR_MAYABLUE = 95,
TEXTCOLOR_DARKRED = 108,
TEXTCOLOR_DARKPURPLE = 112,
TEXTCOLOR_BROWN = 120,
TEXTCOLOR_GREY = 129,
TEXTCOLOR_TEAL = 143,
TEXTCOLOR_DARKPINK = 152,
TEXTCOLOR_PURPLE = 154,
TEXTCOLOR_DARKORANGE = 156,
TEXTCOLOR_RED = 180,
TEXTCOLOR_PINK = 190,
TEXTCOLOR_ORANGE = 192,
TEXTCOLOR_DARKYELLOW = 205,
TEXTCOLOR_YELLOW = 210,
TEXTCOLOR_WHITE = 215,
TEXTCOLOR_NONE = 255,
]]
local effects = {
{position = Position(999, 992, 7), text = 'Spawns', effect = CONST_ME_GIANTICE, textcolor = TEXTCOLOR_GREEN},
{position = Position(1000, 992, 7), text = 'Quests', effect = CONST_ME_FIREAREA, textcolor = TEXTCOLOR_LIGHTGREEN},
{position = Position(1001, 992, 7), text = 'Trainings', effect = CONST_ME_GROUNDSHAKER,textcolor = TEXTCOLOR_TEAL},
{position = Position(998, 992, 7), text = 'Market', effect = CONST_ME_CAKE, textcolor = TEXTCOLOR_DARKPURPLE},
{position = Position(979, 993, 7), text = 'City', effect = CONST_ME_FIREWORK_YELLOW, textcolor = 143},
{position = Position(978, 1003, 7), text = 'Events', effect = CONST_ME_CRAPS, textcolor = 155},
--2 floor.
{position = Position(997, 993, 6), text = 'VIP', effect = CONST_ME_GIFT_WRAPS, textcolor = 155},
{position = Position(997, 993, 7), text = 'Depot', effect = CONST_ME_HOLYDAMAGE, effect2 = CONST_ME_CRAPS, textcolor = 194},
{position = Position(1001, 1001, 7), text = 'Start Exp', effect = CONST_ME_TUTORIALSQUARE, effect2 = CONST_ME_TUTORIALARROW, textcolor = 215},
}
function onThink(creature, interval)
for i = 1, #effects do
local settings = effects[i]
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
if settings.effect then
settings.position:sendMagicEffect(settings.effect)
end
if settings.effect2 then
settings.position:sendMagicEffect(settings.effect2)
end
end
end
return true
end