EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Capping xp per kill (https://www.eqemulator.org/forums/showthread.php?t=42483)

rabbet330 06-01-2019 09:12 AM

Capping xp per kill
 
Is there a way to cap experience per kill? I'm experimenting with higher expmultiplier values in the rule_values table, but of course that means you could theoretically skip levels with a single kill. I'd like to combine that with an absolute maximum of 20% (one "bar") per character per kill.

Maze_EQ 06-03-2019 01:38 PM

It's a source change.


Code:

        uint32 expcap = (GetEXPForLevel(GetLevel() + 1) - GetEXPForLevel(GetLevel())) * .14;
        if (!resexp && add_exp > expcap) {
                add_exp = expcap;
        }

        add_exp = GetEXP() + add_exp;


}

This would be in EXP.cpp

This will essentially cap ALL exp at 14% maximum, no matter the circumstances, other than resurrections where you lost > 14%.


All times are GMT -4. The time now is 08:08 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.