function onStepIn(creature, item, position, fromPosition)
if not creature:isPlayer() then
return false
end
-- Start custom level door
local uniqueId = 53073
local level = 150000
if item:getUniqueId() == uniqueId then
if creature:getLevel() < level then
creature:sendTextMessage(MESSAGE_INFO_DESCR, "Only the worthy may pass.")
creature:teleportTo(fromPosition, true)
return false
else
return true
end
end
-- End custom level door
if creature:getLevel() < item.actionid - 1000 then
creature:sendTextMessage(MESSAGE_INFO_DESCR, "Only the worthy may pass.")
creature:teleportTo(fromPosition, true)
return false
end
return true
end