Jump to content
  • 0

Dispell FCP


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

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;
}
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

×
×
  • Create New...