Jump to content
  • 0

Question

8 answers to this question

Recommended Posts

  • 0
Posted

well as i know you cannot disable grade penalty on L2J about the core i dont have idea bout the code but make a starting custom lvl like 25-30 with a lot of money when someone start so he will can buy equimpent i already made this to my server x_X gl :P

  • 0
Posted

well as i know you cannot disable grade penalty on L2J about the core i dont have idea bout the code but make a starting custom lvl like 25-30 with a lot of money when someone start so he will can buy equimpent i already made this to my server x_X gl :P

 

good idea thanks :P

 

but if some one know the code plss post it here :)

  • 0
Posted

L2PcInstance

 

public void refreshExpertisePenalty() method

 

insert a boolean config so it will look like

 

	public void refreshExpertisePenalty()
{
	if (Config.ALLOW_GRADE_PENALTY)
	{
		int newPenalty = 0;
		for (L2ItemInstance item : getInventory().getItems())
		{
			if (item != null && item.isEquipped())
			{
				if (item.getItem().getCrystalType() > newPenalty)
					newPenalty = item.getItem().getCrystalType();
			}
		}
		newPenalty = newPenalty - getExpertiseIndex();
		if (newPenalty <= 0)
			newPenalty = 0;
		if (getExpertisePenalty() != newPenalty)
		{
			_expertisePenalty = newPenalty;
			if (newPenalty > 0)
				super.addSkill(SkillTable.getInstance().getInfo(4267, 1)); // level used to be newPenalty
			else
				super.removeSkill(getKnownSkill(4267));
			sendPacket(new EtcStatusUpdate(this));
		}
	}
}

Guest
This topic is now closed to further replies.


×
×
  • Create New...