Hello, I would like some help,
I'm trying to put an action for this type of door with level 250+ This door is not normal, I would like this door because as you pass it closes, it is not open.
Can anybody help me? Can I use storage?
Base OTServBr-Global 12x
I'm trying to put an action for this type of door with level 250+ This door is not normal, I would like this door because as you pass it closes, it is not open.
Can anybody help me? Can I use storage?
Base OTServBr-Global 12x
Code:
function onStepIn(creature, item, position, fromPosition)
if not creature:isPlayer() then
return false
end
if creature:getLevel() < item.actionid - 250 then
creature:sendTextMessage(MESSAGE_INFO_DESCR, "Only the worthy may pass.")
creature:teleportTo(fromPosition, true)
return false
end
return true
end