Jump to content

Question

Posted (edited)
	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

final boolean hadHero=Hero.getInstance().isHero(getObjectId());
Edited by ThelwHelpRePaidia

1 answer to this question

Recommended Posts

  • 0
Posted

As I remember, the isHero() method is in L2PcInstance and it doesn't take any parameters... but I don't know if that is the case with l2jfrozen.

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