• 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 Login.lua

ugurdrahs

New Member
Joined
May 6, 2010
Messages
555
Reaction score
2
Location
Netherland
Hello Otlanders,

is it possible to make 2 seconds of exhaust (fighting mode) when you login to the game.
This way you can prevent people relogging very fast. It has to be something in login.lua, not sure though. Tryed:

PHP:
local exhaust = createConditionObject(CONDITION_INFIGHT)
exhaustion.set(cid, storage, 5000)
not working /\
 
Last edited:
Lua:
-- above function onLogin(cid)
local exhaust = createConditionObject(CONDITION_INFIGHT)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 2000)

-- under function onLogin(cid)
doAddCondition(cid, exhaust)
 
Back
Top