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.

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
Answer this question...

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