• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

gate of expertise above level 999

increase maximumDoorLevel in config.lua.

always use 1000 + required leve as actionidl; that means 4000 for level 3000
 
how to make a door past 66k? :/ ...

actions.xml
XML:
<action uniqueid="UID" script="lvldoor.lua"/>

lvldoor.lua:
LUA:
function onUse(cid, item, frompos, item2, topos)

if item.uid == UID then

if getPlayerLevel(cid) >= 66000 then

pos = getPlayerPosition(cid)

if pos.x == topos.x then

if pos.y < topos.y then

pos.y = topos.y + 1

else

pos.y = topos.y - 1

end

elseif pos.y == topos.y then

if pos.x < topos.x then

pos.x = topos.x + 1

else

pos.x = topos.x - 1

end

else

doPlayerSendTextMessage(cid,22,'Stand in front of the door.')

return 1

end



doTeleportThing(cid,pos)


else

doPlayerSendTextMessage(cid,22,'You need 66.000lvl to pass this door.')

end

return 1

else

return 0

end

end

Simple and not tested ;P
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local p = getPlayerPosition(cid)
    if getPlayerLevel(cid) >= 66000 then
        if p.x ~= toPosition.x and p.y ~= toPosition.y then
            doTransformItem(item.uid, item.itemid+1)
            doTeleportThing(cid, toPosition, true)
        end
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only players of level 66000 and higher may enter this door.")
    end
    return true
end
Use an experience- or quest door
Usually the opened door id is 1 more than the closed one, may differ sometimes. If that is the case, just change item.itemid+1 to the opened door id
 
Back
Top