Jump to content
  • 0
Sign in to follow this  
Pandaaa

Sonic Blow/Grimtooth can use without Katars

Question

Found the problem...

 

it is on skill.c

a soul link modification for parrying skill of Lord Knight

 

heres the line

 

SKILL.C(Original)

 

if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) {        
clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
        return 0;
    }
 

SKILL.C(Mod for Parrying)

if( require.weapon && !pc_check_weapontype(sd,require.weapon) && skill_id == LK_PARRYING && !sd->sc.data[SC_SOULLINK] && !pc_check_weapontype(sd,2)) {
        clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
        return 0;
    }
 

after compiling this parrying with one hand sword (soul linked) is working but the other skills of jobs are freely used without any weapon requirements.... revierting to the original skill.c backs to normal that requires weapons on specific skills

 

HELP ANYONE? :((

Edited by Pandaaa

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

well yeah, you forced it to only work when the skill is == parrying. you have to isolate the parry condition from the rest

 

if( require.weapon && !pc_check_weapontype(sd,require.weapon)) {

if( skill_id == LK_PARRYING && sd->sc.data[SC_SOULLINK]) {
        return 0;

    }

else {

clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);

        return 0;

}

}

Edited by Blinzer

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.