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

Potions exhaust

bybbzan

mapper
Joined
Aug 4, 2012
Messages
809
Solutions
2
Reaction score
136
Location
Sweden
Hello!

I wonder how i can change the exhaustion on potions
Right now, when im using mana potions, im using one, then get delayed for like 2 seconds.
I cant find it anywhere, is it in sources?
I dont believe i can configure it in config.lua since the line "exhaustBetweenActions" is not there.

Im using TFS 1.2
 
Hello!

I wonder how i can change the exhaustion on potions
Right now, when im using mana potions, im using one, then get delayed for like 2 seconds.
I cant find it anywhere, is it in sources?
I dont believe i can configure it in config.lua since the line "exhaustBetweenActions" is not there.

Im using TFS 1.2
You change the exhaust/delay on potions in potions.lua (usually found under actions)

Code:
local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100))
-- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion.

I hope that helps you out with your issues.

Kind regards,

t0kenz
 
You change the exhaust/delay on potions in potions.lua (usually found under actions)

Code:
local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100))
-- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion.

I hope that helps you out with your issues.

Kind regards,

t0kenz
It doesnt rly work, changed to 50, nothing happened.
 
The way I read that, is it grabs timeBetweenExActions from your config.lua (default of 1000 I think) and then -100. Giving a 900ms exhaust.
I don't think it works exactly like that though, because then what I use makes no sense!

This seems to allow for decent potion usage:

config.lua:
timeBetweenExActions = 1000

potions.lua:
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 900))
 
From what I recall, the exhaust system is incorrect in TFS 1.2. Changing parameters in scripts did not work for me either, no matter the script. My friend and programmer did something in the sources to allow scripts to override the default exhausts, as they should when changed. Not sure what changes were made, though. But I can confirm there's an issue. :p

Perhaps check the Github repository for changes regarding exhaust. It may be fixed now.
 

Similar threads

Back
Top