Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Enchant blood and enchant poison

Initiate Mage
Joined
Jan 27, 2023
Messages
1
Reaction score
0
Hi,

how can i buff both skills ?
Enchant blood and enchant poison for Jester ?

I want to use both at the same time.
When I use one the other disappear.

Thank you guys.
 
Newbie Spellweaver
Joined
Jan 26, 2023
Messages
5
Reaction score
2
Hi,

how can i buff both skills ?
Enchant blood and enchant poison for Jester ?

I want to use both at the same time.
When I use one the other disappear.

Thank you guys.

First of all, use this section next time.
https://forum.ragezone.com/f483/

Your issue can be solved rather quickly, if you go at it logically.

First of all, find the name of the skills, all skills can be found here propSkill.txt

Code:
SI_JST_SUP_POISON
SI_JST_SUP_BLEEDING
SI_JST_SUP_ABSORB

Make sure you enable this in your folder options:
3ueWvQr - Enchant blood and enchant poison - RaGEZONE Forums


Next step is to search for the skilldefinition in the Source:
You should get 5 different files as result.
"Moverskill, buff, WndField, Ctrl, Skillinfluence"
Open each of them and search for the skills definition, does it look like what you are looking for or not?

While the others are less relevant to your case, you can find things like "if no Yoyo is Equiped, remove certain skills..", which is good to know.
Within Ctrl.cpp you can find this:

Code:
        if( pSkillProp->dwID == SI_JST_SUP_POISON )
        {
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_BLEEDING );
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_ABSORB );
        }
        else
        if( pSkillProp->dwID == SI_JST_SUP_BLEEDING )
        {
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_POISON );
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_ABSORB );
        }
        else        
        if( pSkillProp->dwID == SI_JST_SUP_ABSORB )
        {
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_BLEEDING );
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_POISON );
        }

This looks like the thing you are looking for, quite easy isn't it?
You can do this with a lot of things, just find a name/definition/suggestion in the resource part and search for it in the source.


Now for the solution of your case, either delete the entry , comment it out or be fancy about it. I'd suggest to be always proper about it, so you know what it was before and it's easy to backtrack.

Code:
if( pSkillProp->dwID == SI_JST_SUP_POISON )
        {
#ifndef __CHANGED_YOYO_BUFFS
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_BLEEDING );
#endif //__CHANGED_YOYO_BUFFS
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_ABSORB );
        }
        else
        if( pSkillProp->dwID == SI_JST_SUP_BLEEDING )
        {
#ifndef __CHANGED_YOYO_BUFFS
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_POISON );
#endif //__CHANGED_YOYO_BUFFS
            ((CMover *)pSrc)->RemoveBuff( BUFF_SKILL, SI_JST_SUP_ABSORB );
        }

In case the question arises:
#ifdef = If this is defined, use this
#ifndef = If this is defined, do not use this
 

Attachments

You must be registered for see attachments list
Upvote 0
Back
Top