Jump to content
  • 0
Armony

Parry Modification

Question

 

Hi, rA today i have a little mistake about the parry, I've modified this skill allowing use with One-hand with Linked State everything i'ts working fine until i switch any equipment.

see below the behavior

parry issue.gif

rA version 9389b

//skill_check_condition_castbegin

if (require.weapon && !(pc_check_weapontype(sd, require.weapon) ||
		(skill_id == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->weapontype1 == W_1HSWORD))) {
  
  
  
  //skill_check_condition_castend
  if (require.weapon && !(pc_check_weapontype(sd, require.weapon) ||
	(skill_id == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->weapontype1 == W_1HSWORD))) {
		clif_skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
		return false;
	}
Edited by Armony
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

What i did:

skill_db.yml:

Find LK_PARRYING and on Weapon do this:

      Weapon:
        1hSword: true
        2hSword: true

 

skill.cpp:

Find:

	if( require.ammo ) { //Skill requires stuff equipped in the ammo slot.
		uint8 extra_ammo = 0;

And then add this above it:

	if(skill_id == LK_PARRYING && !(sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT) && sd->weapontype1 == W_1HSWORD){
		clif_skill_fail(sd,skill_id, USESKILL_FAIL_THIS_WEAPON, 0);
		return false;
	}

This check will prevent parrying from being casted w/ 1-handed sword unless when you're in soul link status . (since we allowed to cast parry w/ 1 handed sword naturally even w/o soul link via skill_db)

  • Upvote 1
Link to comment
Share on other sites

  • 0
24 minutes ago, Armony said:

 

Hi, rA today i have a little mistake about the parry, I've modified this skill allowing use with One-hand with Linked State everything i'ts working fine until i switch any equipment.

see below the behavior

parry issue.gif

rA version 9389b

//skill_check_condition_castbegin

if (require.weapon && !(pc_check_weapontype(sd, require.weapon) ||
		(skill_id == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->weapontype1 == W_1HSWORD))) {
  
  
  
  //skill_check_condition_castend
  if (require.weapon && !(pc_check_weapontype(sd, require.weapon) ||
	(skill_id == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->weapontype1 == W_1HSWORD))) {
		clif_skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
		return false;
	}

check this


https://rathena.org/board/topic/116983-working-lk-soul-link-mod/?do=findComment&comment=351721

Link to comment
Share on other sites

  • 0
On 3/6/2020 at 12:05 PM, Armony said:

 

Hi, rA today i have a little mistake about the parry, I've modified this skill allowing use with One-hand with Linked State everything i'ts working fine until i switch any equipment.

see below the behavior

parry issue.gif

rA version 9389b

//skill_check_condition_castbegin

if (require.weapon && !(pc_check_weapontype(sd, require.weapon) ||
		(skill_id == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->weapontype1 == W_1HSWORD))) {
  
  
  
  //skill_check_condition_castend
  if (require.weapon && !(pc_check_weapontype(sd, require.weapon) ||
	(skill_id == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->weapontype1 == W_1HSWORD))) {
		clif_skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
		return false;
	}

same problem produce anyone got a fix for this?

Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

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