Jump to content
  • AQ40 Skeram Image FIX


    Arkadus
    • Status: Completed
      Main Category: Script (Eluna / SD3)
      Sub-Category: sd2
      Version: 0.20 Milestone: 20 Priority: Normal
      Implemented Version: 0.20

    AQ40 Skeram Image FIX

    In boss_skeram.cpp make this change;

    void DoInitializeImage()
    {
    if (!m_pInstance)
    {
    return;
    }

    // Initialize the health of the clone
    if (Creature* pProphet = m_pInstance->GetSingleCreatureFromStorage(NPC_SKERAM))
    {
    float fHealthPct = pProphet->GetHealthPercent();
    float fMaxHealthPct = 0;

    // The max health depends on the split phase. It's percent * original boss health
    if (fHealthPct {
    fMaxHealthPct = 0.50f;
    }
    else if (fHealthPct {
    fMaxHealthPct = 0.20f;
    }
    else
    {
    fMaxHealthPct = 0.10f;
    }

    // Set the same health percent as the original boss
    m_creature->SetMaxHealth(m_creature->GetMaxHealth()*fMaxHealthPct);
    m_creature->SetHealthPercent(fHealthPct);
    +m_creature->SetCorpseDelay(0); // }
    }


    User Feedback

    Recommended Comments

    Added, fixed, Push me Pull you'd:
    [url]https://github.com/mangoszero/server/pull/280[/url]

    :D

    Thanks, Arkadus :D
    Now learn to do this yourself, pretty please with icing on top ;)

    Fix added to MaNGOS One: [url]https://github.com/mangosone/server/pull/62[/url]

    Fix added to MaNGOS Two: [url]https://github.com/mangostwo/server/pull/82[/url]

    [B][COLOR="#FF0000"]There's no mention of this boss ever being removed, so it looks like this needs to be added to all cores. [/COLOR][/B]

    Three and Four are not usable at the moment, so I won't commit this to them.

    Link to comment
    Share on other sites



    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

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. Privacy Policy Terms of Use