Jump to content
  • 0

Some server settings


zwyro
 Share

Question

Grade penalty is working but i need increse penalty rules like for example now

it decrese 10%patk and 10% atk spd / cst spd

i need increse that

 

also i need turn off lava damage for players dont get any damage when stand in lava

 

baylor and frintezza are not in table Grandboss if i add them manualy with custom time spawn they should work corectly ??

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

L2PcInstance.java

public void refreshExpertisePenalty()
{
	int newPenalty = 0;

	for (L2ItemInstance item : getInventory().getItems())
	{
		if (item != null && item.isEquipped())
		{
			int crystaltype = item.getItem().getCrystalType();

			if (crystaltype > newPenalty)
				newPenalty = crystaltype;
		}
	}

	newPenalty = newPenalty - getExpertiseIndex();

	if (newPenalty <= 0 || Config.ALLOW_GRADE_PENALTY)
		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));
-		}
+		if (getExpertisePenalty() != newPenalty)
+		{
+			_expertisePenalty = newPenalty;
+			
+			if (newPenalty == 1) //L2Item.CRYSTAL_C
+				super.addSkill(SkillTable.getInstance().getInfo(9900, 1));
+			else
+				super.removeSkill(getKnownSkill(9900));
+			if (newPenalty == 2) //L2Item.CRYSTAL_B
+				super.addSkill(SkillTable.getInstance().getInfo(9901, 1));
+			else
+				super.removeSkill(getKnownSkill(9901));
+			if (newPenalty == 3) //L2Item.CRYSTAL_A
+				super.addSkill(SkillTable.getInstance().getInfo(9902, 1));
+			else
+				super.removeSkill(getKnownSkill(9902));
+			if (newPenalty == 4) //L2Item.CRYSTAL_S
+				super.addSkill(SkillTable.getInstance().getInfo(9903, 1));
+			else
+				super.removeSkill(getKnownSkill(9903));
+				
+			sendPacket(new EtcStatusUpdate(this));
+		}
+	}

 

 

data\stats\skills\9900-9999.xml

<skill id="9900" levels="1" name="C Grade Penalty">
 <set name="power" val="0.0"/>
 <set name="target" val="TARGET_SELF"/>
 <set name="skillType" val="BUFF"/>
 <set name="operateType" val="OP_PASSIVE"/>
 <set name="castRange" val="-1"/>
 <set name="effectRange" val="-1"/>
 <for>
<add order="0x40" stat="pAtk" val="200"/>
<add order="0x40" stat="pDef" val="200"/>
 </for>
</skill>
<skill id="9901" levels="1" name="B Grade Penalty">
 <set name="power" val="0.0"/>
 <set name="target" val="TARGET_SELF"/>
 <set name="skillType" val="BUFF"/>
 <set name="operateType" val="OP_PASSIVE"/>
 <set name="castRange" val="-1"/>
 <set name="effectRange" val="-1"/>
 <for>
<add order="0x40" stat="pAtk" val="300"/>
<add order="0x40" stat="pDef" val="300"/>
 </for>
</skill>
<skill id="9902" levels="1" name="A Grade Penalty">
 <set name="power" val="0.0"/>
 <set name="target" val="TARGET_SELF"/>
 <set name="skillType" val="BUFF"/>
 <set name="operateType" val="OP_PASSIVE"/>
 <set name="castRange" val="-1"/>
 <set name="effectRange" val="-1"/>
 <for>
<add order="0x40" stat="pAtk" val="300"/>
<add order="0x40" stat="pDef" val="300"/>
 </for>
</skill>
<skill id="9903" levels="1" name="S Grade Penalty">
 <set name="power" val="0.0"/>
 <set name="target" val="TARGET_SELF"/>
 <set name="skillType" val="BUFF"/>
 <set name="operateType" val="OP_PASSIVE"/>
 <set name="castRange" val="-1"/>
 <set name="effectRange" val="-1"/>
 <for>
<add order="0x40" stat="pAtk" val="500"/>
<add order="0x40" stat="pDef" val="500"/>
 </for>
</skill>

 

Maybe it work :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • 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