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

GlobalEvent TFS 0.4 or Otx 2.5x or any TFS 0.x Remove PZ in Protection Zone

MartK

Active Member
Joined
Dec 6, 2018
Messages
63
Solutions
1
Reaction score
28
Create a File With name = Removepz.lua
and Add this:
Code:
local function removeBattle(cid)
    doRemoveCondition(cid, CONDITION_INFIGHT)
    return false
end
function onThink(interval)
    for _, cid in ipairs(getPlayersOnline()) do
        local pos, tile = getThingPos(cid), getTileThingByPos(getThingPos(cid))
        if getTilePzInfo(pos) == true then
            removeBattle(cid)
        end
    end
return true
end

Later Goto Globalevents.xml and Add this Tag:
<globalevent name="removerbatle" interval="1000" event="script" value="Removepz.lua"/>

Any Bug Or problem Pls Send me P.M

Credit: Remover Battle ao entrar em PZ (https://tibiaking.com/forums/topic/91492-remover-battle-ao-entrar-em-pz/)
 
Last edited by a moderator:
Back
Top