Jump to content

Recommended Posts

Posted

I'm a bit obsessed with small details so i give you the retail sm for final skills(at least 1 of them).

Sorry for this worthless share,i know that even a kid can do this,however i upload it for ppl who can't implement it and are interested in it.

 

PcStatus.java

               super.reduceHp(value, attacker, awake);

	if (!getActiveChar().isDead() && getActiveChar().isSitting())
		getActiveChar().standUp();

               if (getActiveChar().isFakeDeath())
		getActiveChar().stopFakeDeath(null);

+               if (getActiveChar().getCurrentHp() <= getActiveChar().getMaxHp() * 0.3 
+               && getActiveChar().getCurrentHp() + value > getActiveChar().getMaxHp() * 0.3)
+               {
+                       if (getActiveChar().getSkillLevel(290) > 0)
+                       {
+                               getActiveChar().sendMessage("Since HP has decreased, the effect of Final Frenzy can be felt.");
+                       }
+                       if (getActiveChar().getSkillLevel(291) > 0)
+                       {
+                               getActiveChar().sendMessage("Since HP has decreased, the effect of Final Fortress can be felt.");
+                       }
+               }

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..