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

Pots spells and exhaustion?

Msokolov

New Member
Joined
Feb 6, 2012
Messages
52
Reaction score
2
Hey anyone know how to fix, So you can like drink pots and do spells at same time, so they don't share exhaustion?
 
in data/actions/liquid/potions.lua

change this line
Lua:
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 2000))
to
Lua:
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 1000))


AND IN CONFIG.LUA

Lua:
timeBetweenActions = 300
timeBetweenExActions = 1000


Here you can change to your liking
 
in data/actions/liquid/potions.lua

change this line
Lua:
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 2000))
to
Lua:
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 1000))


AND IN CONFIG.LUA

Lua:
timeBetweenActions = 300
timeBetweenExActions = 1000


Here you can change to your liking

The Higher the value the longer it takes right?

cuz my

Code:
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 1000))

Was set at 100?
 
getConfigInfo('timeBetweenExActions') is usually 1000, so you get 900 ms exhaust (compensates for latency)

swapping 100 for 1000 gives you 0 ms (1000-1000), but it's better to remove the condition completely:p
 
getConfigInfo('timeBetweenExActions') is usually 1000, so you get 900 ms exhaust (compensates for latency)

swapping 100 for 1000 gives you 0 ms (1000-1000), but it's better to remove the condition completely:p

Just remove the whole line? or setting it it 0?
 
Back
Top