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..
Question
ThelwHelpRePaidia
public boolean doDie(L2Character killer) { // Kill the L2PcInstance if (KILL_STEAK>0) { if (KILL_STEAK>=5&&KILL_STEAK<10) Announcements.getInstance().announceToAll(killer.getName()+" has stopped "+getName()+"'s killing spree of "+KILL_STEAK+" kills!!"); else if (KILL_STEAK<20) { sendMessage(killer.getName()+" has stopped "+getName()+"'s killing spree of "+KILL_STEAK+" kills!!"); if (!hadHero) setHero(false); } else if (KILL_STEAK<60) { sendMessage(killer.getName()+" has ended "+getName()+"'s rampage of "+KILL_STEAK+" strait kills!"); stopAbnormalEffect(AbnormalEffect.STEALTH); if (!hadHero) setHero(false); } else if (KILL_STEAK>60) { sendMessage(killer.getName()+" has given an end to "+getName()+"'s reign of terror of "+KILL_STEAK+" strait kills!!!"); stopAbnormalEffect(AbnormalEffect.STEALTH); if (!hadHero) setHero(false); } KILL_STEAK=0; } if (!super.doDie(killer)) return false; } private int KILL_STEAK=0; final boolean hadHero=Hero.getInstance().isHero(getObjectId());i get red line at that "isHero" some one can find what is happenning? l2jfrozen i use here
Edited by ThelwHelpRePaidia1 answer to this question
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