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)
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: