Jump to content
×
×
  • Create New...
  • 1

[Help] death from mob makes no lose buff


Cripplez

Question

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

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

  • 0
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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.


  • Metin2 Dev Github
  • Activity

    1. 6

      Owsap Productions

    2. 11

      BUG SAFEBOX disappear stacks ..

    3. 2

      Error no member named SetcCreateTime in Citem

    4. 2

      Need some help with effect slot on pickup system

    5. 1

      GF Pet system "x" level / percent

    6. 1

      disable quest esc

    7. 2

      Navicat Premium 16.1.3 x64

    8. 2

      Join the Metin2 Dev team

    9. 2

      Error no member named SetcCreateTime in Citem

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.