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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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



×
×
  • Create New...