Page 1 of 1

Augments buff, little question.

Posted: Sat Aug 22, 2009 10:19 pm
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.

Re: Augments buff, little question.

Posted: Sun Aug 23, 2009 6:04 pm
by Abelast
No ideas? I just need a suggestion of where to look. :S

Re: Augments buff, little question.

Posted: Mon Aug 24, 2009 3:50 pm
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