Jump to content
  • 0

Exlcude a skill to be dispelled


Question

3 answers to this question

Recommended Posts

Posted

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;

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...