Jump to content
  • 0

Remove Grade Penalty at L2J


CнαossMαsteя

Question

Hello,

 

My question is simple :)

How can I remove the Grade Penalty in L2J server ?

My Pack is compilled so post some code plls :P

 

Im using l2j official pack Interlude rev

 

thanks

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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 :)

Link to comment
Share on other sites

  • 0

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));
		}
	}
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock