Page 1 of 1

Stuck Skills

Posted: Mon Nov 02, 2009 9:09 pm
by Ninja
When you got an Active skill on your weapon from a Life Stone,example Might ,you make the buff,you equip another weapon with another active skill,and you make the new buff.The old buff is not removed so as a result is to Stuck many Active skills together. I am sure it works for Skills on Two-handed weapon like Bow,Duals etc.

_DS_ said that this is retail like. Ok no problem with that but can someone please help us or guide us which code we need to edit if we do not want the users to take so many active skills?

Re: Stuck Skills

Posted: Mon Nov 02, 2009 10:55 pm
by _DS_
Search changesets.

Re: Stuck Skills

Posted: Mon Nov 02, 2009 11:39 pm
by caramon81
add stack info to your aug skill xml similar to things like might 3 and chant of battle 3.
same effect but they both over-write each other so you can only have 1 at a time.

Re: Stuck Skills

Posted: Mon Nov 02, 2009 11:50 pm
by Charus
Check L2Augmentation.java at method public void removeBonus(L2PcInstance player)
You can add a config there, something like that.

Code: Select all

 public void removeBonus(L2PcInstance player){	_boni.removeBonus(player); 	// remove the skill if any	if (_skill != null)	{		if (_skill.isPassive())			player.removeSkill(_skill);		else		{			if (Config.FORCE_REMOVE_AUGMENTAION_BUFFS)				player.removeSkill(_skill);			else				player.removeSkill(_skill, false, false);		}			player.sendSkillList();	}} 
The config at your properties should be false as default, so you can turn it to true if you want buffs from augmentaion weapons to be removed.

Re: Stuck Skills

Posted: Tue Nov 03, 2009 9:05 am
by Ninja
Charus BIG BIG BIG THANKS!!!