Denis Tacador De Runa
New Member
- Joined
- Sep 6, 2007
- Messages
- 362
- Reaction score
- 3
Does anyone know how to work the mayNotLogout function?
local in_fight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(in_fight, CONDITION_PARAM_TICKS, -1)
local out_fight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(out_fight, CONDITION_PARAM_TICKS, 0)
local function mayNotLogout(cid, value)
if value == TRUE then
doTargetCombatCondition(0, cid, in_fight, CONST_ME_NONE)
else
doTargetCombatCondition(0, cid, out_fight, CONST_ME_NONE)
end
return TRUE
end