SySt3MGaM3RFr3aKs Posted December 30, 2009 Share Posted December 30, 2009 Fix for Max CP Exploit, as my title says :P For Interlude L2J, servers. Index: /trunk/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java =================================================================== --- /trunk/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java +++ /trunk/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java @@ -244,5 +244,5 @@ } - public final int getMaxCp() + public int getMaxCp() { if (_activeChar == null) Index: /trunk/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java =================================================================== --- /trunk/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java +++ /trunk/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java @@ -42,4 +42,5 @@ private int _oldMaxHp; // stats watch private int _oldMaxMp; // stats watch + private int _oldMaxCp; // stats watch // ========================================================= @@ -411,4 +412,19 @@ } + @Override + public final int getMaxCp() + { + int val = super.getMaxCp(); + if (val != _oldMaxCp) + { + _oldMaxCp = val; + if (getActiveChar().getStatus().getCurrentCp() != val) + { + getActiveChar().getStatus().setCurrentCp(getActiveChar().getStatus().getCurrentCp()); + } + } + return val; + } + @Override public final int getSp() Credits: ŚyśţęmƒяәдҚς Quote Link to comment Share on other sites More sharing options...
Coyote™ Posted January 1, 2010 Share Posted January 1, 2010 Credits: ŚyśţęmƒяәдҚς If you wanna leech, don't leech good guys. http://my-trac.assembla.com/L2J-HardCode/changeset/40 Quote Link to comment Share on other sites More sharing options...
Stefoulis15 Posted January 11, 2010 Share Posted January 11, 2010 not yours. taken from L2JForums Quote Link to comment Share on other sites More sharing options...
SySt3MGaM3RFr3aKs Posted January 11, 2010 Author Share Posted January 11, 2010 not yours. taken from L2JForums Actually, i haven't made this ^^, but i haven't took it from L2JForums .! Credits for me for share. ! Quote Link to comment Share on other sites More sharing options...
MaestroLuke Posted January 11, 2010 Share Posted January 11, 2010 Actually, i haven't made this ^^, but i haven't took it from L2JForums .! Credits for me for share. ! well that's the actual problem in your shares you say credits to me but you see you just adapt it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.