Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- door = function(cid, toPosition, creatPos)
- print'1'
- if toPosition.y-1 == creatPos.y then -- exit
- doTeleportThing(cid, {x=toPosition.x, y=toPosition.y+1, z=toPosition.z}, false)
- return true
- end
- print'2'
- if exhaustion.check(cid, 19000) then
- doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
- doPlayerSendCancel(cid, "You are exhausted.")
- return true
- end
- print'3'
- doTeleportThing(cid, {x=toPosition.x, y=toPosition.y-1, z=toPosition.z}, false)
- local time = 10
- exhaustion.set(cid, 19000, time)
- end
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement