Augments buff, little question.

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Abelast
Posts: 12
Joined: Tue Jul 14, 2009 12:36 am
Location: Buenos Aires, Arg.

Augments buff, little question.

Post by Abelast »

Hi, im a noob called Abelast, but you can call me Abe :D

Im needing help,
Here's the problem:
The weapons augments, actually the active ones, keep buffing the player even after he disarm the augmented weapon... and some people use this to take advantage, they buffs themeselves with 4 or 3 augments and then massacre an entire island (pvp zone). The question is, how can i solve this? any idea? I want the buff to be removed when the player disarm the weapon.

Ty for your contributions... and i apologize for my bad eanglish. :mrgreen:
(//off_topic_mode on: I realize that there is a very wide diference between my writting and speaking fluently skills and my comprehension abilities. xD)

PD: Using last revision from both.
Abelast
Posts: 12
Joined: Tue Jul 14, 2009 12:36 am
Location: Buenos Aires, Arg.

Re: Augments buff, little question.

Post by Abelast »

No ideas? I just need a suggestion of where to look. :S
learning, learning, learning...
Abelast
Posts: 12
Joined: Tue Jul 14, 2009 12:36 am
Location: Buenos Aires, Arg.

Re: Augments buff, little question.

Post by Abelast »

If i edit this:

(Line 159 from /java/net/sf/l2j/gameserver/model/L2Augmentation.java)

Code: Select all

        /**         * Removes the augmentation bonuses from the player.         * @param player         */        public void removeBonus(L2PcInstance player)        {            _boni.removeBonus(player);                 // remove the skill if any                if (_skill != null)                {                        if (_skill.isPassive())                                player.removeSkill(_skill);                        else                                player.removeSkill(_skill, false, false);                        player.sendSkillList();                }        }} 
And leave it like this:

Code: Select all

 	                if (_skill != null)                        {	                        player.removeSkill(_skill);                                player.sendSkillList();                         }  

Maybe tha can solve my problem... ??

Asking and waiting for opinions.

Ty
learning, learning, learning...
Post Reply