Intrepid Posted November 6, 2009 Share Posted November 6, 2009 I felt myself in a sharing mood today so heres a little stuff. Basically that code add to the char ++ buffslot based on the characters lvl. By default(as i setted it up): from 40-51 +2slot from 52-60 +4slot from 61-75 +6slot from 76-84 +8slot in lvl 85 +10 slot ### Eclipse Workspace Patch 1.0 #P L2_GameServer Index: java/net/sf/l2j/gameserver/model/CharEffectList.java =================================================================== --- java/net/sf/l2j/gameserver/model/CharEffectList.java (revision 3695) +++ java/net/sf/l2j/gameserver/model/CharEffectList.java (working copy) @@ -53,10 +53,13 @@ // Owner of this list private L2Character _owner; - + + private L2PcInstance player; + int maxBuffs = 0; public CharEffectList(L2Character owner) { _owner = owner; + maxBuffs = owner.getMaxBuffCount(); } /** @@ -623,6 +626,21 @@ if (newEffect == null) return; L2Skill newSkill = newEffect.getSkill(); + + if(_owner instanceof L2PcInstance) + { + player = (L2PcInstance)_owner; + if(player.getLevel() == 85) + maxBuffs = _owner.getMaxBuffCount() + 10; + else if(player.getLevel() >= 76 && (player.getLevel()) <= 84) + maxBuffs = _owner.getMaxBuffCount() + 8; + else if(player.getLevel() >= 61 && (player.getLevel()) <= 75) + maxBuffs = _owner.getMaxBuffCount() + 6; + else if(player.getLevel() >= 52 && (player.getLevel()) <= 60) + maxBuffs = _owner.getMaxBuffCount() + 4; + else if(player.getLevel() >= 40 && (player.getLevel()) <= 51) + maxBuffs = _owner.getMaxBuffCount() + 2; + } if (newSkill.isDebuff()) { work with the latest version of l2j. Hint come from l2j forum besides that credits to me. Quote Link to comment Share on other sites More sharing options...
hoangnhan Posted November 6, 2009 Share Posted November 6, 2009 Nice share , thank Intrepid Quote Link to comment Share on other sites More sharing options...
Levi4than Posted November 6, 2009 Share Posted November 6, 2009 Great share bro!!! Very cool! Quote Link to comment Share on other sites More sharing options...
SySt3MGaM3RFr3aKs Posted November 6, 2009 Share Posted November 6, 2009 This is Great Idea ! Thanks For Sharing Quote Link to comment Share on other sites More sharing options...
Cloud Posted November 6, 2009 Share Posted November 6, 2009 rly nice idea..keep sharing Intrepid!:D Quote Link to comment Share on other sites More sharing options...
xAddytzu Posted November 6, 2009 Share Posted November 6, 2009 Nice idea Interpid.. 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.