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

How to edit party value


Vesley

Question

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

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

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


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.