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

Lua pz hop

You can add a stepin script with exhaustion, then add actionids to the parts where people step out of pz to kill the monsters.
You can also just use gate of expertise doors, so people have to open them first.
 
You can add a stepin script with exhaustion, then add actionids to the parts where people step out of pz to kill the monsters.
You can also just use gate of expertise doors, so people have to open them first.

Would be better to use an onThink creaturescript that checks tiles if you want to eliminate all pz hopping.

Something like this:
Code:
function onThink(cid, interval)

pzExhaustStorage = 44512 --random placeholder value
pzExhaustTime = 3 --exhaust time in seconds

    if(not isPlayer(cid)) then
        return
    end

    if getTileInfo(getCreaturePosition(cid)).protection then
            exhaustion.set(cid, pzExhaustStorage, pzExhaustTime)
    end   
   
return true
end
 
Back
Top Bottom