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

mayNotLogout

I think you just do something like this :

Code:
function()
mayNotLogout(cid, 1)

and the same goes for mayNotMove. 1 means he is not able to logout and 0 means he can. Just like true and false.
 
I think mayNotLogout is not used anymore, you have to use No-Logout Zones
 
But in some cases you need it...
Code:
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

Just add this to the top of your script and mayNotLogout(cid, 1) should work.
 
Last edited:
I've only ever seen it written in 2 scripts and they were both written
PHP:
mayNotLogout(player.info, 1)

Thats the only thing useful i know sorry :S
 
Back
Top