Armony Posted March 6, 2020 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 39 Reputation: 2 Joined: 01/17/18 Last Seen: February 12, 2024 Share Posted March 6, 2020 (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 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 March 6, 2020 by Armony Quote Link to comment Share on other sites More sharing options...
2 Scylla Posted August 30, 2020 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 374 Reputation: 47 Joined: 03/27/13 Last Seen: Monday at 11:23 PM Share Posted August 30, 2020 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) 1 1 Quote Link to comment Share on other sites More sharing options...
0 Bringer Posted March 6, 2020 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: Thursday at 08:53 AM Share Posted March 6, 2020 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 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 Quote Link to comment Share on other sites More sharing options...
0 Armony Posted March 6, 2020 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 39 Reputation: 2 Joined: 01/17/18 Last Seen: February 12, 2024 Author Share Posted March 6, 2020 On 3/6/2020 at 12:30 PM, Bringer said: check this https://rathena.org/board/topic/116983-working-lk-soul-link-mod/?do=findComment&comment=351721 i actually taken the source from this link anyone could help me? Quote Link to comment Share on other sites More sharing options...
0 Katakuri Posted April 14, 2020 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 110 Reputation: 58 Joined: 05/29/18 Last Seen: 7 hours ago Share Posted April 14, 2020 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 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? Quote Link to comment Share on other sites More sharing options...
Question
Armony
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
rA version : 9389b
Edited by ArmonyLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.