Page 1 of 1

[Solved] Remove gained exp cap after killing mobs

Posted: Sat Sep 10, 2016 2:47 pm
by Airking
I am looking for a way to remove the ~200 xp cap when you kill a mob. I have edited the exp table in the db but I still cap at ~200 xp when I down mobs that are VT/IT.

Is there a way to remove this cap so that I get exactly what is written in the exp table?

I do not wish to use the exp_rate multiplier, I would rather directly edit the exp rates.

Any help is appreciated!

Re: Remove gained exp cap after killing mobs

Posted: Sat Sep 10, 2016 6:21 pm
by Airking
I figured it out. In case anyone else wants to do the same thing I will post the solution here.

In src/map/util/charutils.ccp remove:

Code: Select all

                    permonstercap = ((PMember->PParty != nullptr && pcinzone > 1) ? 1.35f : 1.15f);

                    if (PMember->GetMLevel() <= 50)
                    {
                        if (exp > (200 * permonstercap)) exp = 200 * permonstercap;
                    }
                    else if (PMember->GetMLevel() <= 60)
                    {
                        if (exp > (250 * permonstercap)) exp = 250 * permonstercap;
                    }
                    else if (exp > (300 * permonstercap))
                    {
                        exp = 300 * permonstercap;
                    }
You can also adjust the caps here, instead of removing them, if desired.