Erba Posted January 10, 2014 Posted January 10, 2014 I am having trouble with Star Gladiator's Soul Link effect, but after trying, asking and searching rAthena and Google i came up with the answer of sir MarkZD and sir Kichi, Thank you for your help! Enabling Lord of Vermillion level 10 and LK Parrying Level 10 using Book I dont know how to make diff patches. tested on r16797 Open your src/map/pc.c Find: for( i = 0; i < MAX_SKILL; i++ ) { if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) //Don't touch plagiarized skills sd->status.skill[i].id = 0; //First clear skills. } Add this Below it: +if( sd->sc.count && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_STAR) + { + sd->status.skill[85].id = 85; + sd->status.skill[85].lv = 10; + sd->status.skill[85].flag = SKILL_FLAG_PERMANENT; + sd->status.skill[356].id = 356; + sd->status.skill[356].lv = 10; + sd->status.skill[356].flag = SKILL_FLAG_PERMANENT; + } Final Output: for( i = 0; i < MAX_SKILL; i++ ) { if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) //Don't touch plagiarized skills sd->status.skill[i].id = 0; //First clear skills. } if( sd->sc.count && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_STAR) { sd->status.skill[85].id = 85; sd->status.skill[85].lv = 10; sd->status.skill[85].flag = SKILL_FLAG_PERMANENT; sd->status.skill[356].id = 356; sd->status.skill[356].lv = 10; sd->status.skill[356].flag = SKILL_FLAG_PERMANENT; } = This will make Star Gladiators be able to use skill LOV and Parrying lvl 10 now about enabling Star Gladiators to Use Parryling lvl 10 with Books Open src/map/skill.c Find: int skill_check_condition_castend(struct map_session_data* sd, short skill, short lv) { struct skill_condition require; struct status_data *status; int i; int index[MAX_SKILL_ITEM_REQUIRE]; Add this below: struct status_change *sc = &sd->sc; Final Output: int skill_check_condition_castend(struct map_session_data* sd, short skill, short lv) { struct skill_condition require; struct status_data *status; int i; int index[MAX_SKILL_ITEM_REQUIRE]; struct status_change *sc = &sd->sc; [still at src/map/skill.c] Now Find: if(require.weapon && !(pc_check_weapontype(sd,require.weapon) Replace it by this: if(require.weapon && !(pc_check_weapontype(sd,require.weapon) || (skill == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_STAR && sd->status.weapon == W_BOOK)) ){ clif_skill_fail(sd,skill,USESKILL_FAIL_THIS_WEAPON,0); return 0; } Finally you can now RECOMPILE i am using rev16797 and this is working on. Quote
XkAcY- Posted August 23, 2014 Posted August 23, 2014 Up for this.. uhmm.. when i install this source mod.. why i cant use Parrying using 2hand weapon on LordKnight? when i remove the weapon the parrying is working how to fix this? Quote
darking123 Posted October 29, 2014 Posted October 29, 2014 bump for this topic. it's already outdated error skill.c: In function 'skill_check_condition_mercenary': skill.c:3499: warning: unused variable 'sc' skill.c: In function 'skill_check_condition_castbegin': skill.c:14707: error: 'skill' undeclared (first use in this function) skill.c:14707: error: (Each undeclared identifier is reported only once skill.c:14707: error: for each function it appears in.) skill.c:14707: error: expected statement before ')' token Quote
ParIsMakulit Posted November 3, 2014 Posted November 3, 2014 -> BUMP <- Error Same with Glemor not working with Revision 17704 Quote
brother Posted February 6, 2018 Posted February 6, 2018 for the error change the skill to skill_id Quote
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.