Jump to content

[Help] death from mob makes no lose buff


Recommended Posts

  • 4 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 comment
Share on other sites

  • 7 months later...
  • Active+ Member
On 8/12/2020 at 6:36 PM, Finnael said:

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);

 

Which file?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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