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

TFS 1.X+ there is no exhaust on runes downgraded tfs by nekiro.

johnsamir

Advanced OT User
Joined
Oct 13, 2009
Messages
1,135
Solutions
6
Reaction score
214
Location
Nowhere
Hello, As the title says, how tosolve this? runes has almost no exhaust, players can spam runes, like sd, hmm, gfb
the problem is only in runes, this does nt happen on instant spells or healing spells. I have tried the spells that comes with the datapack, othire, and nostalrius. all of the files seems to have the same problem, might be this c++ issue? can somebody point me out where to look?
Post automatically merged:

bump ! solved the problem by adding
LUA:
exhaustion="2000"
this on runes, im getting the message that im exhausted but im no getting poff! effect
 
Last edited:
It is pretty old topic, but maybe someone will struggle with similar issue.
I dont know why in nekiro 1.5 772 all runes are not exahusted by default, but if you want to execute CONST_ME_POFF when exhausted with runes you can edit this lines in spells.cpp:

C++:
    if (player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, group) || player->hasCondition(CONDITION_SPELLCOOLDOWN, spellId) || (secondaryGroup != SPELLGROUP_NONE && player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, secondaryGroup))) {
        player->sendCancelMessage(RETURNVALUE_YOUAREEXHAUSTED);

        if (isInstant()) {
            g_game.addMagicEffect(player->getPosition(), CONST_ME_POFF);
        }
        
        return false;
    }

and you can add else or maybe remove this condition isInstant
C++:
    if (player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, group) || player->hasCondition(CONDITION_SPELLCOOLDOWN, spellId) || (secondaryGroup != SPELLGROUP_NONE && player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, secondaryGroup))) {
        player->sendCancelMessage(RETURNVALUE_YOUAREEXHAUSTED);

        if (isInstant()) {
            g_game.addMagicEffect(player->getPosition(), CONST_ME_POFF);
        }
        else
        {
            g_game.addMagicEffect(player->getPosition(), CONST_ME_POFF);
        }

        return false;
    }

I don't know why it was coded with only isInstant condition, but above will work with this effect.
 
It is pretty old topic, but maybe someone will struggle with similar issue.
I dont know why in nekiro 1.5 772 all runes are not exahusted by default, but if you want to execute CONST_ME_POFF when exhausted with runes you can edit this lines in spells.cpp:

C++:
    if (player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, group) || player->hasCondition(CONDITION_SPELLCOOLDOWN, spellId) || (secondaryGroup != SPELLGROUP_NONE && player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, secondaryGroup))) {
        player->sendCancelMessage(RETURNVALUE_YOUAREEXHAUSTED);

        if (isInstant()) {
            g_game.addMagicEffect(player->getPosition(), CONST_ME_POFF);
        }
       
        return false;
    }

and you can add else or maybe remove this condition isInstant
C++:
    if (player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, group) || player->hasCondition(CONDITION_SPELLCOOLDOWN, spellId) || (secondaryGroup != SPELLGROUP_NONE && player->hasCondition(CONDITION_SPELLGROUPCOOLDOWN, secondaryGroup))) {
        player->sendCancelMessage(RETURNVALUE_YOUAREEXHAUSTED);

        if (isInstant()) {
            g_game.addMagicEffect(player->getPosition(), CONST_ME_POFF);
        }
        else
        {
            g_game.addMagicEffect(player->getPosition(), CONST_ME_POFF);
        }

        return false;
    }

I don't know why it was coded with only isInstant condition, but above will work with this effect.
Just remove the if, dont be scared to change the code
 
Back
Top