Jump to content

How to edit party value


Recommended Posts

Hi guys, i try edit value of party like:
 

    float k = (float) ch->GetSkillPowerByLevel( MIN(SKILL_MAX_LEVEL, m_iLeadership ) )/ 100.0f;

    switch (bRole)
    {
        case PARTY_ROLE_ATTACKER:
            {
                int iBonus = (int) (10 + 60 * k);

                if (ch->GetPoint(POINT_PARTY_ATTACKER_BONUS) != iBonus)
                {
                    ch->PointChange(POINT_PARTY_ATTACKER_BONUS, iBonus - ch->GetPoint(POINT_PARTY_ATTACKER_BONUS));
                    ch->ComputePoints();
                }
            }
            break;

But i am not sure how it working can somebody explain? :D Thank you

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.