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

New exhaust types

GhostWD

I'm in love with the var_dump()
Joined
Jan 25, 2009
Messages
185
Solutions
6
Reaction score
29
Hello i have started playing with exhausts in spells


i have added to tfs04/spells.cpp at master · Fir3element/tfs04 · GitHub
something like
Code:
if(agresive)
player->addExhaust(exhaustion, EXHAUST_COMBAT);
if(!agresive)
player->addExhaust(exhaustion, EXHAUST_HEALING);
if(isCombo1)
player->addExhaust(exhaustion, EXHAUST_COMBO1);
if(isCmobo2)
player->addExhaust(exhaustion, EXHAUST_COMBO2);

to tfs04/spells.cpp at master · Fir3element/tfs04 · GitHub
Code:
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_HEALING))
exhausted = true;
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBO1))
exhausted = true;
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBO2))
exhausted = true;
and
EXHAUST_COMBO1
EXHAUST_COMBO2
to player.h Exhaust_t
and to test it i put some prints and im stuck at
Code:
if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT))
PrintA
exhausted = true;
}
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_HEALING))
printB
exhausted = true;




else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBO1))
printC
exhausted = true;

else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBO2))
printD
exhausted = true;

when i'm using spell with agresive true or false it prints out, when i use spell with combo1 or combo2 true it prints at addExhaust but it won't printC and printD. Any sugestions? Thank You!
 
Last edited:
Back
Top