im using this script
door.lua :
[code=lua]
local level = 100 -- This or higher to pass
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) => level then
doTeleportThing(cid, toPosition, true)
doTransformItem(item.uid, item.itemid+1)
end
return true
end...