function onThink(interval)
local players = getPlayersOnline()
for _, pid in ipairs(players) do
if getPlayerStorageValue(pid, 19551) == 1 then
doSendAnimatedText(getPlayerPosition(pid), "Vip", TEXTCOLOR_RED)
doSendMagicEffect(getCreaturePosition(pid), CONST_ME_GIFT_WRAPS)
end
end
return TRUE
end
globalevent name="Vip Text" interval="10" event="script" value="viptext.lua"/>