local str = 456 -- rebirth storage
local rebirth = 5 -- rebirth to pass the door
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getCreatureStorage(cid, str) >= rebirth then
if getCreaturePosition(cid).x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, true)
else
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, true)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.")
end
return false
end