• 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 1.2 pz required line

StevenTrembly

New Member
Joined
Mar 17, 2016
Messages
40
Reaction score
4
hi can someone tell me what is the line to add if i want to use special talkaction in protection zone ?

for example: !kills (only in protection zone allowed to type it)
 
hi can someone tell me what is the line to add if i want to use special talkaction in protection zone ?

for example: !kills (only in protection zone allowed to type it)

You can use this to check if the player is standing in a protection zone:
Code:
player:getTile():hasFlag(TILESTATE_PROTECTIONZONE)

This will return true if they are standing in a protection zone tiles and false if they are not.
 
Code:
if getTilePzInfo(player:getPosition()) then
--If they are in pz
else
--if they are not in pz
end
 
Back
Top