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

Certian LVL door script

Toast

New Member
Joined
Feb 28, 2008
Messages
150
Reaction score
0
My server is The forgotten server 0.3.2 8.4 client.
Im looking for a script or how to only get certian lvls throught different doors.
Like say only lvl 200 to lvl 400 allowed through door.
Thank you very much for any help.
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid)>= 200 and getPlayerLevel(cid) <= 400 then
        return true
    else
        doPlayerSendTextMessage(cid, 22, "You need to be between level 200 and 400 to enter this door!")
    end
end

Might work
 
Last edited:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid)=> 200 and getPlayerLevel(cid) <= 400 then
        return true
    else
        doPlayerSendTextMessage(cid, 22, "You need to be between level 200 and 400 to enter this door!")
    end
end
 
If you still need help, here you go
Code:
local truepos = {x=1000, y=1000, z=7}

function onStepIn(cid, frompos, topos) -- You might need to edit this part as i cant remember the entire function
if getPlayerLevel(cid) >= Place_level then
doTeleportThing(cid, truepos, TRUE)
doCreatureSay(cid, "You can pass!", 19)
elseif getPlayerLevel(cid) <= 19 then
doCreatureSay(cid, "You are not high enough level to pass!", 19)
doTeleportThing(cid, truepos, FALSE)
end
return true
end
 
Back
Top