OTHire icon indicating copy to clipboard operation
OTHire copied to clipboard

Exhaust System

Open peonso opened this issue 7 years ago • 11 comments

Regarding it #22, I spread some false information:

From what I remember, at 7.72 era exhaust should work like that: After an aggressive spell you should wait 2 seconds to cast any other spell. After an non-aggressive spell you should wait 1 second to cast any other spell.

The system was totally bugged in OTHire, and what we got with https://github.com/TwistedScorpio/OTHire/commit/0dd7e2161467bca836ac39bb98752ee5da5df72b was a huge improvement nonetheless.

Although, what I will call Seliro's Tests show that the interactions are actually more complex.

ultimate healing rune https://www.youtube.com/watch?v=bi4m6wuWCm0

uh > uh = not exhausted
uh > sd = not exhausted
uh > exura vita = not exhausted
uh > mana fluid = not exhausted
uh > exori vis = not exhausted

sudden death rune https://www.youtube.com/watch?v=Cmh97qLgp1A

sd > uh = exhausted
sd > sd = exhausted
sd > exura vita = exhausted
sd > mana fluid = not exhausted
sd > exori vis = exhausted

ultimate healing https://www.youtube.com/watch?v=WO5k144RpD0

exura vita > uh = exhausted
exura vita > sd = exhausted
exura vita > exura vita = exhausted
exura vita > mana fluid = not exhausted
exura vita > exori vis = exhausted

mana fluid https://www.youtube.com/watch?v=M76x3JwoZ2s

mana fluid > uh = not exhausted
mana fluid > sd = not exhausted
mana fluid > exura vita = exhausted
mana fluid > mana fluid = not exhausted
mana fluid > exori vis = exhausted

energy strike https://www.youtube.com/watch?v=yL00eUPkDjw

exori vis > uh = exhausted
exori vis > sd = exhausted
exori vis > exura vita = exhausted
exori vis > mana fluid = not exhausted
exori vis > exori vis = exhausted

The tests are not conclusive though, as they don't count in exhaust times (as how much time you are exhausted after each action for the other respective action). There is also some queue on using items that was disregarded at all, eg. there is no exhaust between using 2 manafluids, but the second one waits the animation from the first to be played and if you use 3 too fast only 2 will be used.

I'm not inclined to address this soon, and there is more research to be done, but I though it would be good to have this documented.

peonso avatar Jul 01 '17 19:07 peonso

Maybe can fix exhaust with this: https://github.com/mattyx14/otxserver/pull/61

Tetee11 avatar Oct 13 '17 08:10 Tetee11

@Tetee11 from this pull what I understood is that OTX was totally bugged and then started to work as OTHire. But you can check there it behavior still won't match what you can see in Seliro youtube videos.

The change they made at this commit is the same one we made here https://github.com/TwistedScorpio/OTHire/commit/0dd7e2161467bca836ac39bb98752ee5da5df72b

peonso avatar Oct 15 '17 02:10 peonso

i think works better with this: if( (isAggressive && player->hasCondition(CONDITION_EXHAUST_COMBAT)) || (!isAggressive && player->hasCondition(CONDITION_EXHAUST_HEAL)) )

than this: if(player->hasCondition(CONDITION_EXHAUST_COMBAT) || player->hasCondition(CONDITION_EXHAUST_HEAL))

Tetee11 avatar Oct 15 '17 18:10 Tetee11

@Tetee11, OTHire is meant to work as 7.72 Tibia protocol worked back in time, if you like some custom feature or current Tibia behavior more you can edit your own server.

peonso avatar Oct 15 '17 19:10 peonso

what you mean is the exhaust of OTHire is like the tibia version 7.72? the defensive spells did not share exhaust with agressive spells? I really do not remember the exhaust of tibia 7.72

Tetee11 avatar Oct 15 '17 21:10 Tetee11

@Tetee11

At 7.72 spells share exhaust regardless of being defensive or aggressive, we are matching this behavior here. If you what the videos though, you will see it's not just that simple, and details that are not well documented. This commit you linked has nothing to do with those details, it´s about OTX fixing their 7.x protocol server having aggressive and healing spells not sharing exhaust through adding an option on how it should work at config.lua.

peonso avatar Oct 15 '17 22:10 peonso

@Tetee11

At 7.72 spells share exhaust regardless of being defensive or aggressive, we are matching this behavior here. If you what the videos though, you will see it's not just that simple, and details that are not well documented. This commit you linked has nothing to do with those details, it´s about OTX fixing their 7.x protocol server having aggressive and healing spells not sharing exhaust through adding an option on how it should work at config.lua.

Could you use rune like uh, sd at the same time when casting spells in 7.72?

waqmaz93 avatar Dec 03 '21 04:12 waqmaz93

what happened with seliro's test?

especialized-oldschoool avatar May 05 '22 09:05 especialized-oldschoool

kay from Tibiantis on https://otland.net/threads/7-7-damage-and-spell-formulae.252604/#post-2693995

Exhaust system in old Tibia is as simple as it can be. All spells and runes share one system. Before using a rune or casting a spell it checks if you are not exhausted, and after using it causes exhaustion state for either 1 or 2 seconds: Offensive runes/spells cause 2s, except for exori vis/flam/mort and paralyze rune which cause 1s. Other runes/spells cause 1s, except for UH and IH runes which cause no exhaustion at all. Mana and life fluids can be used regardless of exhaustion state but exhaust you for 1s afterwards. In pvp-enforced world exhaustion after offensive runes/spells is cut to 1s as well.

peonso avatar May 06 '22 14:05 peonso

But can you use "exura" or "exori vis" 1 second after "exevo mort hurt" which exhausts you for 2 seconds or you need to wait 2 seconds to use these spells?

floki21uu avatar Sep 30 '22 11:09 floki21uu

SO THIS IS GOOD OR NOT'

pasturryx avatar Nov 24 '22 02:11 pasturryx