use this teleport scroll script
you need 40 seconds to go back to temple also you must not have pz at this times
function count(name,time,pos)
local cid = getCreatureByName(name)
if cid then
if not (getCreatureCondition(cid,CONDITION_INFIGHT)) and not (isPlayerPzLocked(cid)) then...