• 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 Action script

Vitich

Member
Joined
Nov 28, 2012
Messages
266
Reaction score
11
Hello!

I want transform this script
Code:
 if not player:isPzLocked() then
to
Code:
if not player:isBattle???() then

I want that players can't use it if got battle. Tfs 1.2

Thank you!
 
Never used 1.x series before so i'm gonna guessing.

Maybe this?
Lua:
if not player:getCondition(CONDITION_COMBAT) then

Or this?
Lua:
if not player:getCondition(CONDITION_COMBAT, CONDITIONID_DEFAULT) then
 
Back
Top