Devon Posted July 18, 2009 Posted July 18, 2009 I found this bug working in an old L2J C5 server. Then I tried it in the Interlude servers in HopZone and it worked in most of them. In the latest revision of the L2JServer pack it doesnt work but it works in L2JFree. I searched for this bug here and I didnt find it so I guess it isnt posted so I share it here... - Equip a weapon that increases CP. (Example: Infinity Wing) - Heal your CP. - Unequip the weapon. - If your current CP is more than your Max. CP the bug worked. If it worked add this code and compile your pack: Index: C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java =================================================================== --- C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java (Revision 2746) +++ C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java (working copy) private int _oldMaxHp; // stats watch private int _oldMaxMp; // stats watch + private int _oldMaxCp; // stats watch Index: C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java =================================================================== --- C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java (Revision 2746) +++ C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/PcStat.java (working copy) super.setLevel(value); } } + @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 getMaxHp() Index: C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java =================================================================== --- C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java (Revision 2746) +++ C:/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java (working copy) return _activeChar.getTemplate().baseAtkRange; } - public final int getMaxCp() + public int getMaxCp() { if (_activeChar == null) { return 1; } return (int) calcStat(Stats.MAX_CP, _activeChar.getTemplate().baseCpMax, null, null); } Credits: L2JServer Team Quote
nomz Posted July 18, 2009 Posted July 18, 2009 Just an FYI, this is more fun to do with a cursed sword. Get a cursed sword, go into the water and drown and die. Voila, you have 100k+ CP and no sword. ;) Quote
Łighto™ Posted July 18, 2009 Posted July 18, 2009 Nice but give credits ~ http://www.l2jserver.com/trac/changeset/2721. Quote
Devon Posted July 18, 2009 Author Posted July 18, 2009 Nice but give credits ~ http://www.l2jserver.com/trac/changeset/2721. Thought it was mine... Where did you find it? Quote
Versus Posted July 18, 2009 Posted July 18, 2009 The bug is actually working on l2jfree. Lol. Thanks for the share +1 karma. Quote
Intrepid Posted July 19, 2009 Posted July 19, 2009 LOL +1 karma for c/p wow /* copy the whole damn fucking l2j timeline and you get +5869643654983241 karma */ Quote
Kràtos Posted July 20, 2009 Posted July 20, 2009 LOL +1 karma for c/p wow /* copy the whole damn -beep-ing l2j timeline and you get +5869643654983241 karma */ +++++ owned ;] Quote
Versus Posted July 20, 2009 Posted July 20, 2009 LOL +1 karma for c/p wow /* copy the whole damn -beep-ing l2j timeline and you get +5869643654983241 karma */ Karma is just a reward and even if the share is a copy paste, he deserves to be rewarded. And please speak better, i know that giving karma is terrifying you, but don't overdo it ;) Quote
zunix Posted July 20, 2009 Posted July 20, 2009 cool than i start to share all sync and all commits from the l2j timeline oO Quote
Intrepid Posted July 20, 2009 Posted July 20, 2009 cool than i start to share all sync and all commits from the l2j timeline oO kk l2j yours mine is l2jfree(just because of more commits daily) :D Quote
zunix Posted July 20, 2009 Posted July 20, 2009 kk l2j yours mine is l2jfree(just because of more commits daily) :D but we can share l2joffi together if u want because 2 packs are to much for a single person :/ Quote
miltaki Posted July 20, 2009 Posted July 20, 2009 nice share this bug is really difficult to fix it.. if you are newbie like me from server's ;) Quote
Stefoulis15 Posted July 20, 2009 Posted July 20, 2009 lol. we should kidding each other. what's that? i mean , we start c/p a timeline and share it as ours ? from me , this is the last time. if i see sth else like this u get my -1. dont care what others will say. and its not a matter of karma. its a matter of work. Quote
Devon Posted July 20, 2009 Author Posted July 20, 2009 lol. we should kidding each other. what's that? i mean , we start c/p a timeline and share it as ours ? from me , this is the last time. if i see sth else like this u get my -1. dont care what others will say. and its not a matter of karma. its a matter of work. Open your eyes and see my first post again. Quote
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.