O cara fez o script para você, que está usando uma versão inferior do TFS 0.x. Recomendo que você poste informações sobre o seu servidor e qual versão está utilizando. Assim, poderemos ajudá-lo mais facilmente. Eu notei que você mencionou em outro lugar que estava usando o TFS 1.2 Pota, Então, peguei o script do cara e adaptei para o TFS 1.x+.
local config = {
pos = {x=100, y=100, z=7},
time = 24, -- o tempo aqui é em horas, então 24 = 24 horas
storage = 99999,
}
function onStepIn(cid, item, position, fromPosition)
local player = Player(cid)
if isMonster(cid) then
return false
end
if player:getStorageValue(config.storage) >= os.time() then
doTeleportThing(cid, player:getTown():getTemplePosition())
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Você só pode usar o Portal novamente em " .. os.date("%d %B %Y %X ", player:getStorageValue(config.storage)) .. ".")
return false
end
doTeleportThing(cid, config.pos)
player:setStorageValue(config.storage, os.time() + config.time * 60 * 60)
return true
end
<movevent type="StepIn" actionid="20000" script="boss24h.lua"/>
Sobre a tag XML, repare que existe apenas 'value' e 'event' nas versões TFS 0.x e inferiores. O correto é usar a tag sem 'value' e 'event'. Basta apagar os dois, e o script estará funcionando normalmente! Espero ter ajudado.