How can a sage/professor dispell a FCP when soul linked?
I tried editing some codes in skill.c but it won't work. Any help please? Thanks in advance!
Here's what I did:
in skill.c under case SA_DISPELL:
> First edit, I remove this:
for(i=0;i<SC_MAX;i++) {
if (!tsc->data[i])
continue;
switch (i) {
case SC_WEIGHT50: case SC_WEIGHT90: case SC_HALLUCINATION:
case SC_STRIPWEAPON: case SC_STRIPSHIELD: case SC_STRIPARMOR:
- case SC_STRIPHELM: case SC_CP_WEAPON: case SC_CP_SHIELD:
- case SC_CP_ARMOR: case SC_CP_HELM: case SC_COMBO:
+ case SC_STRIPHELM: case SC_COMBO:
case SC_STRFOOD: case SC_AGIFOOD: case SC_VITFOOD:
case SC_INTFOOD: case SC_DEXFOOD: case SC_LUKFOOD:
> Second edit, I added these lines:
case SC_ASSUMPTIO:
if( bl->type == BL_MOB )
continue;
break;
+ if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 != SL_SAGE && rand()%100 < 99 && skill_id == SA_DISPELL
+ &&
+ ( tsc->data[SC_CP_WEAPON] ||
+ tsc->data[SC_CP_SHIELD] ||
+ tsc->data[SC_CP_ARMOR] ||
+ tsc->data[SC_CP_HELM] ) ) {
+ case SC_CP_WEAPON:
+ case SC_CP_SHIELD:
+ case SC_CP_ARMOR:
+ case SC_CP_HELM:
+ continue;
+ break;
+ }
}
if(i == SC_BERSERK) tsc->data[i]->val2=0; //Mark a dispelled berserk to avoid setting hp to 100 by setting hp penalty to 0.
status_change_end(bl, (sc_type)i, INVALID_TIMER);
}
break;
}
Question
Lord Ganja
How can a sage/professor dispell a FCP when soul linked?
I tried editing some codes in skill.c but it won't work. Any help please? Thanks in advance!
Here's what I did:
in skill.c under case SA_DISPELL:
> First edit, I remove this:
> Second edit, I added these lines:
Link to comment
Share on other sites
0 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.