Jump to content
  • 0

Question

Posted (edited)

 

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

4 answers to this question

Recommended Posts

  • 2
Posted

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
  • MVP 1
  • 0
Posted
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

  • 0
Posted
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?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...