Rebel Posted September 24, 2018 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Share Posted September 24, 2018 Requesting for a working Lord Knight Soul Link Modification.. If linked, LK_PARRYING skill can be used with One Handed Sword also. Tested all the available src mods here in forums but its not working. Quote Link to comment Share on other sites More sharing options...
1 vBrenth Posted September 26, 2018 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 311 Reputation: 46 Joined: 11/06/11 Last Seen: Sunday at 05:09 PM Share Posted September 26, 2018 At skill.c @@ -15709,7 +16049,9 @@ bool skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_i return false; } - if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { + 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)) { switch(skill_id) { case RA_AIMEDBOLT: break; @@ -15774,6 +16116,7 @@ bool skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id, struct status_data *status; int i; short index[MAX_SKILL_ITEM_REQUIRE]; + struct status_change *sc = &sd->sc; nullpo_retr(false,sd); @@ -15879,7 +16222,9 @@ bool skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id, return false; } - if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { + 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; } status.c @@ -9835,7 +9956,10 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty tick = -1; // Duration sent to the client should be infinite break; case SC_PARRYING: - val2 = 20 + val1*3; // Block Chance + if (sd && sd->weapontype1 == W_1HSWORD) + val2 = val1 * 3; + else + val2 = 20 + val1*3; // Block Chance break; case SC_WINDWALK: 1 Quote Link to comment Share on other sites More sharing options...
0 lllaaazzz Posted September 24, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 154 Reputation: 6 Joined: 10/14/17 Last Seen: February 16, 2019 Share Posted September 24, 2018 (edited) Sorry im not exactly sure how to add weapon types to the src formulas . . . . but what i see is your asking for a levelable skill to be linked , to be allowed to use a weapon type not originally allowed? You can achieve what you want easily but id take another route but thats just cause i dont know how to do the first step making a copy of the skill , then just letting that one be for 1h would be doable if you cant figure it out lol Edited September 24, 2018 by lllaaazzz Quote Link to comment Share on other sites More sharing options...
0 idLaZ Posted September 24, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 93 Reputation: 6 Joined: 12/10/11 Last Seen: September 28, 2024 Share Posted September 24, 2018 Are you using the latest version of rAthena? Quote Link to comment Share on other sites More sharing options...
0 Rebel Posted September 24, 2018 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share Posted September 24, 2018 44 minutes ago, idLaZ said: Are you using the latest version of rAthena? Yes. Quote Link to comment Share on other sites More sharing options...
0 idLaZ Posted September 24, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 93 Reputation: 6 Joined: 12/10/11 Last Seen: September 28, 2024 Share Posted September 24, 2018 If I remember correctly, I made it work in the latest rAthena. Will send you the fix, possible later when I'm in office. Quote Link to comment Share on other sites More sharing options...
0 Rebel Posted September 25, 2018 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share Posted September 25, 2018 On 9/25/2018 at 2:04 AM, idLaZ said: If I remember correctly, I made it work in the latest rAthena. Will send you the fix, possible later when I'm in office. Okay thank you. Will wait for it. BUMP! Any dev that can help? @vBrenth Not working. Still cant use 1 hand sword when soul linked.. Quote Link to comment Share on other sites More sharing options...
0 vBrenth Posted September 26, 2018 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 311 Reputation: 46 Joined: 11/06/11 Last Seen: Sunday at 05:09 PM Share Posted September 26, 2018 6 hours ago, Rebel said: @vBrenth Not working. Still cant use 1 hand sword when soul linked.. Weird its totally working on my side. Quote Link to comment Share on other sites More sharing options...
0 Rebel Posted September 26, 2018 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share Posted September 26, 2018 (edited) 29 minutes ago, vBrenth said: Weird its totally working on my side. What git hash of rathena are you using? Edited September 26, 2018 by Rebel Quote Link to comment Share on other sites More sharing options...
0 vBrenth Posted September 27, 2018 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 311 Reputation: 46 Joined: 11/06/11 Last Seen: Sunday at 05:09 PM Share Posted September 27, 2018 13 hours ago, Rebel said: What git hash of rathena are you using? Updated. Quote Link to comment Share on other sites More sharing options...
0 Rebel Posted September 27, 2018 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share Posted September 27, 2018 1 hour ago, vBrenth said: Updated. I have used this Git Hash: 3e1105b0cf8380b4e4646800305b59c3de0f96ea and its not working.. even the SG Parry dont work. Quote Link to comment Share on other sites More sharing options...
0 idLaZ Posted September 27, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 93 Reputation: 6 Joined: 12/10/11 Last Seen: September 28, 2024 Share Posted September 27, 2018 Open skill.c Find: struct map_session_data *tsd = BL_CAST(BL_PC, target); After, add: struct status_change *sc, *tsc; Find the 2: if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { Replace with: 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->status.weapon == W_1HSWORD)) ){ Quote Link to comment Share on other sites More sharing options...
0 Rebel Posted September 27, 2018 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share Posted September 27, 2018 2 hours ago, idLaZ said: Open skill.c Find: struct map_session_data *tsd = BL_CAST(BL_PC, target); After, add: struct status_change *sc, *tsc; Find the 2: if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { Replace with: 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->status.weapon == W_1HSWORD)) ){ skill.c? how outdated is your rathena? Quote Link to comment Share on other sites More sharing options...
0 Ukiram Posted September 23, 2019 Group: Members Topic Count: 45 Topics Per Day: 0.02 Content Count: 291 Reputation: 27 Joined: 12/16/17 Last Seen: December 19, 2023 Share Posted September 23, 2019 *bump Is this still working on Latest? Thank you!!! On 9/26/2018 at 6:45 PM, vBrenth said: At skill.c @@ -15709,7 +16049,9 @@ bool skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_i return false; } - if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { + 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)) { switch(skill_id) { case RA_AIMEDBOLT: break; @@ -15774,6 +16116,7 @@ bool skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id, struct status_data *status; int i; short index[MAX_SKILL_ITEM_REQUIRE]; + struct status_change *sc = &sd->sc; nullpo_retr(false,sd); @@ -15879,7 +16222,9 @@ bool skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id, return false; } - if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { + 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; } status.c @@ -9835,7 +9956,10 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty tick = -1; // Duration sent to the client should be infinite break; case SC_PARRYING: - val2 = 20 + val1*3; // Block Chance + if (sd && sd->weapontype1 == W_1HSWORD) + val2 = val1 * 3; + else + val2 = 20 + val1*3; // Block Chance break; case SC_WINDWALK: I successfully addded it to my server and recompiled and no errors found but when I used SL_Knight Linked, and I still can't use One Handed Sword to use Parry Skill.. Quote Link to comment Share on other sites More sharing options...
0 Armony Posted January 5, 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 January 5, 2020 On 9/26/2018 at 6:45 AM, vBrenth said: At skill.c @@ -15709,7 +16049,9 @@ bool skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_i return false; } - if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { + 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))) { switch(skill_id) { case RA_AIMEDBOLT: break; @@ -15774,6 +16116,7 @@ bool skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id, struct status_data *status; int i; short index[MAX_SKILL_ITEM_REQUIRE]; + struct status_change *sc = &sd->sc; nullpo_retr(false,sd); @@ -15879,7 +16222,9 @@ bool skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id, return false; } - if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { + 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; } status.c @@ -9835,7 +9956,10 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty tick = -1; // Duration sent to the client should be infinite break; case SC_PARRYING: - val2 = 20 + val1*3; // Block Chance + if (sd && sd->weapontype1 == W_1HSWORD) + val2 = val1 * 3; + else + val2 = 20 + val1*3; // Block Chance break; case SC_WINDWALK: It's Working Quote Link to comment Share on other sites More sharing options...
Question
Rebel
Requesting for a working Lord Knight Soul Link Modification..
If linked, LK_PARRYING skill can be used with One Handed Sword also.
Tested all the available src mods here in forums but its not working.
Link to comment
Share on other sites
14 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.