DnR Posted January 5, 2011 Posted January 5, 2011 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."); + } + } 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now