Help with karma
Posted: Fri Apr 17, 2009 9:48 am
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:
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!
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;
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!