Jump to content

Nick Nitro

Members
  • Posts

    5
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Nick Nitro

  1. Maybe something like:

    float multiple = ap / 410 + m_spellInfo->DmgMultiplier[effect_idx];
    if (m_caster->GetPower(POWER_ENERGY) >= 30) {
     damage += int32(30 * multiple);
     damage += int32(((Player*)m_caster)->GetComboPoints() * ap * 7 / 100);
     m_caster->SetPower(POWER_ENERGY, m_caster->GetPower(POWER_ENERGY) - 30);
    }
    else {
     damage += int32(m_caster->GetPower(POWER_ENERGY) * multiple);
     damage += int32(((Player*)m_caster)->GetComboPoints() * ap * 7 / 100);
     m_caster->SetPower(POWER_ENERGY, 0);
    }

    or

    float multiple = ap / 410 + m_spellInfo->DmgMultiplier[effect_idx];
    damage += int32(min(m_caster->GetPower(POWER_ENERGY), 30) * multiple);
    damage += int32(((Player*)m_caster)->GetComboPoints() * ap * 7 / 100);
    m_caster->SetPower(POWER_ENERGY, max(m_caster->GetPower(POWER_ENERGY) - 30, 0);

  2. I'm still having this ACE problems with r6872...

    Could it be something regarding my OS (Ubuntu Server x64 8.04 LTS) do i need to download any new libraries (not listed on the linux compile guide) for compiling ??

    Need help !! :(

    PS: 70 players online, 2gb RAM, AMD 3000+ (1.8GHz), 10mbps upstream connection

    Network.Threads = 2
    Network.OutKBuff = 16384
    Network.OutUBuff = 65536
    Network.TcpNodelay = 1

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