• 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!

Doors

Ekostar

New Member
Joined
Feb 13, 2014
Messages
7
Reaction score
0
Hello guys :)

I just wanted to ask small questions for remere's map editor :p


my first question was

How to make a quest door and makes levelto enter it

2- How to make a magic door requires some item to ente

I hope u answer my question and thanks for reading :)
 
first it should be in requests

second for quest door require level
here is something already found in Server/DOC/ActionIDS
Code:
        Level depending Level Door & Tile
            1000 -> maximumDoorLevel
                + Required Level

and for second one
put uniqueid in door and make script to check if player has item will pass
if not say srry u can't pass

if u can't understand tell me
maybe i can explain with pictures
 
to make it pass by level

u can make door in rme + put action id
and then make script like this
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) >= 150000 then
        doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, true)
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only players with level 150,000 can pass.")
    end
return false
end

this script will let only level 150000+ can pass
about positions = u need to understand more about it :D look at rme and u have to be sure where can it lead

to make it with item

make an action id too
and register it in actions.xml in with script u named

and u can simple thing to this script above

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if (getPlayerLevel(cid) >= 150000 and item.itemid == 1234) then
        doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, true)
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only players with level 150,000 can pass also u need a xxx require item.")
    end
return false
end
script need more edit u have to do it by ur self == it's easy
1234 is the item id player need to pass

for item only without level
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if item.itemid == 1234 then
        doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, true)
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only players with level 150,000 can pass.")
    end
return false
end
 
Back
Top