I would like to know if it's possible to make a level max on quest doors. For instance, a level door for 800 would allow people 800-1500 only, no higher. If someone has a script or whatever it takes please let me know, Thanks.
Actionid 1yourlevel
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == ID_OF_THE_CLOSED_DOOR then
local v = getPlayerLevel(cid)
if v >= 800 and v <= 1500 then
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, true)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Only the worthy may pass.')
end
return true
end
end