• 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 Function to Remove Tile PZ.

lokolokio

Well-Known Member
Joined
Jan 7, 2009
Messages
201
Solutions
13
Reaction score
78
Location
Mexico
Hello dear OT Landers!
I need help to find function to remove pz of a tile, understanding that pz means: Protection Zone, not Protection Zone Locked (as many ppl use it).
arena.png
In a pvp arena on Tibia RL, once you enter the arena, all the tiles in the room are PZ, and after few seconds the PZ where removed of the tiles and now you can attack other players. hope someone can help me whith this.
Kind regards.
 
Hello Ninja, but this options can I use them something like this?
Lua:
local tile = Tile(x, y, z)
if tile hasflag(TILESTATE_PROTECTIONZONE) then
    tile:resetFlag(TILESTATE_PROTECTIONZONE)
else
    tile:setFlag(TILESTATE_PROTECTIONZONE)
end
 
Back
Top