local t = {
{2160, 1, {x=805, y=817, z=7}, CONST_ME_TELEPORT}
}
function onThink(interval)
local people = getOnlinePlayers()
if #people == 0 then
return true
end
for i = 1, #t do
local v = t[i]
doCreateItem(2486, 1, v[3])
doSendMagicEffect(v[3], v[4])
end
for i = 1, #t do
local v = t[i]
if getItemDescriptions(2486) then
doRemoveItem(cid)
doCreateItem(13498, 1, v[3])
doSendMagicEffect(v[3], v[4])
end
return true
end
return true
end