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

Level To Enter

persson2

New Member
Joined
Apr 7, 2014
Messages
60
Reaction score
1
Location
Sweden
Anyone here knows how to get like a pos to be locked for example level 100 so you can't walk there (invisible no door)
 
Would it be okay if it teleported the player back if they aren't high enough?

It would involve some movement functions, I can give you a rough outline

On step
If getPlayerLevel < 100 then
doTeleportThing(cid, {x=100, y=100, z=7})
doSendMagicEffect(getCreaturePosition(cid), 10)
end

Totally rough but maybe you get the idea?
 
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if getPlayerLevel(cid) < 100 then
        doPlayerSendCancel(cid, 'You may not enter.')
        doTeleportThing(cid, fromPosition, true)
    else
        doSendAnimatedText(toPosition, 'Access')
        doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA)
    end
    return true
end
 
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if getPlayerLevel(cid) < 100 then
        doPlayerSendCancel(cid, 'You may not enter.')
        doTeleportThing(cid, fromPosition, true)
    else
        doSendAnimatedText(toPosition, 'Access')
        doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA)
    end
    return true
end
how do i use it? and where do i put it?
 
yes u have to add somthing like this
<movevent type="StepIn" actionid="5556" event="script" value="scriptname.lua"/>
 
You need to add the action ID to the tile you dont want them to step in with RME
 
Back
Top