[Solved] Remove gained exp cap after killing mobs

Post Reply
Airking
Posts: 8
Joined: Wed Feb 12, 2014 1:12 am

[Solved] Remove gained exp cap after killing mobs

Post by Airking » Sat Sep 10, 2016 2:47 pm

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!
Last edited by Airking on Sat Sep 10, 2016 6:22 pm, edited 1 time in total.

Airking
Posts: 8
Joined: Wed Feb 12, 2014 1:12 am

Re: Remove gained exp cap after killing mobs

Post by Airking » Sat Sep 10, 2016 6:21 pm

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.

Post Reply