Skip to content

Featured Replies

	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

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.