Jump to content
  • 0

[Request]Augment skills stuck


~SilveR~
 Share

Question

guys  can you post the  code to make augment skills  to remove  when player unequip  the weapon?

i know is retail but  i want to be removed  cause  i want to set augment skill  1 hour or 20 min and  i dont want to be stucked :)

 

i found a way but i dont know if is correct :

 

L2Augmention.java

public void removeBonus(L2PcInstance player)
{
    _boni.removeBonus(player);

	// remove the skill if any
	if (_skill != null)
          {
+			player.removeSkill(_skill); 
		if (_skill.isPassive())
			player.removeSkill(_skill);
		else
			player.removeSkill(_skill, false, false);

		player.sendSkillList();
	}
       }
}

 

is that correct?

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...