• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

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
29
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