Jump to content
  • 0

Exlcude a skill to be dispelled


Dvrstle

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

how can i exclude a skill in the dispell skill . . . eX. Inspiration . .. its should not be affected by dispell. . . =) tnx in advance

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

line 6212 of skill.c add a new "case SC_YOURSTATUS" to your desired status

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

ohw. . . gonna try it .. =) tnx

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

find this in status.c

/*==========================================
* Clears buffs/debuffs of a character.
* type&1 -> buffs, type&2 -> debuffs
*------------------------------------------*/
int status_change_clear_buffs (struct block_list* bl, int type)
{
int i;
struct status_change *sc= status_get_sc(bl);
if (!sc || !sc->count)
 return 0;
if (type&2) //Debuffs
for( i = SC_COMMON_MIN; i <= SC_COMMON_MAX; i++ )
{
 status_change_end(bl, (sc_type)i, INVALID_TIMER);
}
for( i = SC_COMMON_MAX+1; i < SC_MAX; i++ )
{
 if(!sc->data[i])
  continue;

 switch (i) {
  //Stuff that cannot be removed
  case SC_WEIGHT50:
  case SC_WEIGHT90:
  case SC_COMBO:
  case SC_SMA:
  case SC_DANCING:
  case SC_LEADERSHIP:
  case SC_GLORYWOUNDS:
  case SC_SOULCOLD:
  case SC_HAWKEYES:
  case SC_GUILDAURA:
  case SC_SAFETYWALL:
  case SC_PNEUMA:
  case SC_NOCHAT:
  case SC_JAILED:
  case SC_ANKLE:
  case SC_BLADESTOP:
  case SC_CP_WEAPON:
  case SC_CP_SHIELD:
  case SC_CP_ARMOR:
  case SC_CP_HELM:
  case SC_STRFOOD:
  case SC_AGIFOOD:
  case SC_VITFOOD:
  case SC_INTFOOD:
  case SC_DEXFOOD:
  case SC_LUKFOOD:
  case SC_HITFOOD:
  case SC_FLEEFOOD:
  case SC_BATKFOOD:
  case SC_WATKFOOD:
  case SC_MATKFOOD:
  case SC_FOOD_STR_CASH:
  case SC_FOOD_AGI_CASH:
  case SC_FOOD_VIT_CASH:
  case SC_FOOD_DEX_CASH:
  case SC_FOOD_INT_CASH:
  case SC_FOOD_LUK_CASH:
  case SC_EXPBOOST:
  case SC_JEXPBOOST:
  case SC_ITEMBOOST:
  case SC_ELECTRICSHOCKER:
  case SC__MANHOLE:
  case SC_GIANTGROWTH:
  case SC_MILLENNIUMSHIELD:
  case SC_REFRESH:
  case SC_STONEHARDSKIN:
  case SC_VITALITYACTIVATION:
  case SC_FIGHTINGSPIRIT:
  case SC_ABUNDANCE:
  case SC_CURSEDCIRCLE_ATKER:
  case SC_CURSEDCIRCLE_TARGET:
   continue;

Link to comment
Share on other sites

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...