Page 1 of 1

Help with karma

Posted: Fri Apr 17, 2009 9:48 am
by Bruteforce
Hi!

I need some help. I think karma cleansing is too easy, so I tried to make it harder for the players by doing this:

Code: Select all

Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java===================================================================--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (revision 2857)+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java   (working copy)@@ -5370,13 +5370,7 @@        expGained /= Config.KARMA_XP_DIVIDER;         // FIXME Micht : Maybe this code should be fixed and karma set to a long value        int karmaLost = 0;        if (expGained > Integer.MAX_VALUE)            karmaLost = Integer.MAX_VALUE;        else            karmaLost = (int)expGained;         if (karmaLost < Config.KARMA_LOST_BASE) karmaLost = Config.KARMA_LOST_BASE;+       if (karmaLost > 1000) karmaLost = 1000;        if (karmaLost > getKarma()) karmaLost = getKarma();         return karmaLost; 
With this patch, the highest amount of karma you ever loose is 1000.
All is OK so far.
Problem is that the player loses another 1000 karma when he is resurrected.
Can somebody help me figure out how to stop this? :)

Thanks in advance!

Re: Help with karma

Posted: Sat Apr 18, 2009 1:21 pm
by nekys
Karma drop rate is dependent to the exp/sp rate. More exp/sp rate, faster the karma drops. I think that there is option to configure karma drop rate in the rates.properties.

Re: Help with karma

Posted: Mon Apr 20, 2009 7:41 am
by Bruteforce
In character.properties you can configure what a chaotic player can and can't do, like use GK and such.

In rates.properties you can configure RateKarmaExpLost which I'm not sure what it means. Rate Karma Experience Lost...what does that mean? Maybe how much exp they're losing when killed.
You can also configure how much stuff a chaotic player drops when killed.

In pvp.properties you can configure how the karma is set, the min and max and how fast the player can work it off.
But nowhere is explained why you lose extra karma when you're resurrected after death. I just don't find the logic.

Re: Help with karma

Posted: Mon Apr 20, 2009 8:20 am
by _DS_
Check karma variables in pvp.properties.

Re: Help with karma

Posted: Mon Apr 20, 2009 9:21 am
by StevenP
I've found another problem karma related:
karma point removed exping are proportional to the exp but, introducing vitality, exp rate is no more fixed.
In this way we have chatic characters that simply wait for vitality replenish, than exit and remove their karma with 3x boost.
Someone has info on Karma gain/reduce on offi ?

Re: Help with karma

Posted: Mon Apr 20, 2009 12:57 pm
by Bruteforce
_DS_ wrote:Check karma variables in pvp.properties.
There is no such variable in there.
Only min, max, xpdivider and basekarmalost.

Re: Help with karma

Posted: Mon Apr 20, 2009 1:11 pm
by _DS_
On my server xp rate 10x so i set xpdivider to 2600. Results are ok for me.

Re: Help with karma

Posted: Mon Apr 20, 2009 1:22 pm
by Bruteforce
_DS_ wrote:On my server xp rate 10x so i set xpdivider to 2600. Results are ok for me.
My x12 server has a similar number, but this still doesn't explain why karma is reduced upon resurrection too.