Skip to content

[Request]Augment skills stuck

Featured Replies

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?

 

  • Author

so my way  works fine :D

anyway  locked ill share the code on Share section :P

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.