Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 1

[Help] death from mob makes no lose buff


Cripplez

Question

1 answer to this question

Recommended Posts

  • 0
  • VIP

I haven't tested it but this might work. (Credits to: @cBaraN)

 

void ClearAffect(bool bSave=false); // Find
void            ClearAffect(bool bSave = false, bool bSomeAffect = false); // chane
void CHARACTER::ClearAffect(bool bSave) // find
void CHARACTER::ClearAffect(bool bSave, bool bSomeAffect) // change

// Find
if (IsPC())
{
    SendAffectRemovePacket(GetDesc(), GetPlayerID(), pkAff->dwType, pkAff->bApplyOn);
}

// Add above
if (bSomeAffect)
{
    switch (pkAff->dwType)
    {
        case (SKILL_JEONGWI):
        case (SKILL_GEOMKYUNG):
        case (SKILL_CHUNKEON):
        case (SKILL_GWIGEOM):
        case (SKILL_TERROR):
        case (SKILL_JUMAGAP):
        case (SKILL_HOSIN):
        case (SKILL_REFLECT):
        case (SKILL_GICHEON):
        case (SKILL_KWAESOK):
        case (SKILL_JEUNGRYEOK):
        case (SKILL_JEOKRANG):
        case (SKILL_CHEONGRANG):
        {
            ++it;
            continue;
        }
    }
}

// Find
void CHARACTER::Dead(LPCHARACTER pkKiller, bool bImmediateDead)
  
// Find this in the function
ClearAffect(true);

// Change 
ClearAffect(true, (pkKiller && pkKiller->IsPC()) ? false : true);

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.