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!
[Solved] Remove gained exp cap after killing mobs
[Solved] Remove gained exp cap after killing mobs
Last edited by Airking on Sat Sep 10, 2016 6:22 pm, edited 1 time in total.
Re: Remove gained exp cap after killing mobs
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:
You can also adjust the caps here, instead of removing them, if desired.
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;
}