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

Tile with rebirth Help!!

Eclipso

Mapper
Joined
Apr 12, 2017
Messages
96
Reaction score
6
function onStepIn(cid, item, position, fromPos, fromPosition)

if isPlayer(cid) and getPlayerLevel(cid) < 50000 and getPlayerGroupId(cid) < 2 then
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid,27,"You need to be over level (50,000) to enter this area.")
end
end



Can any1 tell me how can this script work with rebirths Thanks.
 
Solution
Lua:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local v,p = getThingPos(cid),{x=1979,y=1989,z=6}   
    if isPlayer(cid) then
        if getCreatureStorage(cid, 85987) >= 10 then
            if getPlayerLevel(cid) >= 0 then
                doTeleportThing(cid,p)
                doSendMagicEffect(p,31)
                                doCreatureSay(cid,"SUPER SPAWN!",19)
            else
                doTeleportThing(cid,fromPosition)
                doSendMagicEffect(p,10)
                doPlayerSendTextMessage(cid,27,'Only players of 10st rebirth and higher are allowed to pass.')
            end
        else
            doTeleportThing(cid,fromPosition)
            doSendMagicEffect(p,10)...
Lua:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local v,p = getThingPos(cid),{x=1979,y=1989,z=6}   
    if isPlayer(cid) then
        if getCreatureStorage(cid, 85987) >= 10 then
            if getPlayerLevel(cid) >= 0 then
                doTeleportThing(cid,p)
                doSendMagicEffect(p,31)
                                doCreatureSay(cid,"SUPER SPAWN!",19)
            else
                doTeleportThing(cid,fromPosition)
                doSendMagicEffect(p,10)
                doPlayerSendTextMessage(cid,27,'Only players of 10st rebirth and higher are allowed to pass.')
            end
        else
            doTeleportThing(cid,fromPosition)
            doSendMagicEffect(p,10)
                        doCreatureSay(cid,"You Need 10 Rebirth To enter!",19)
            doPlayerSendTextMessage(cid,27,'Only players of 10st rebirth higher are allowed to pass.')
        end
    end
    return true
end

Try this out, should help ^^
 
Solution
Back
Top