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

Solved TFS 1.0 check when you can logout in lua, how?

hakeee

New Member
Joined
Oct 23, 2008
Messages
45
Reaction score
0
Location
sweden
Hello, im trying to make a script that needs to know when you can logout or not to use it.

How do i check that?

player:isPzLocked() always return false even incombat
player:getCondition(CONDITION_INFIGHT) always return nil even if im in a fight.

do anyone know?

EDIT

I found out that it need the extra parameter CONDITIONID_DEFAULT because the function uses CONDITIONID_COMBAT as default :/
player:getCondition(CONDITION_INFIGHT, CONDITIONID_DEFAULT)
 
Last edited:
Back
Top