Skip to content

NullExceptionError

Featured Replies

When i kill mob without party it shows me this error, check in image

 

any idea why i ahve this error?

 

@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
{	
	L2PcInstance partyMember = getRandomPartyMember(player, "1");
	QuestState st = partyMember.getQuestState(getName()); // Line 130
	if(st == null)
	{
		return null;
	}		
	int npcId = npc.getNpcId();
	if(st.getInt("cond") == 1)
	{
		if(npcId == Lavasaurus_Alpha)
		{	
			st.giveItems(Lavasaurus_Alpha_Fragment, 1);
			st.playSound(SOUND_MIDDLE);
			st.set("cond", "2");			
		}				
	}			
	return null;
}

 

14005110.png

 

Uploaded with ImageShack.us

As you see the problem is in Q00906_TheCallofValakas.java. Which is located in scripts/quests folder.just delete and download the fresh copy

As you see the problem is in Q00906_TheCallofValakas.java. Which is located in scripts/quests folder.just delete and download the fresh copy

/facepalm

He has a problem with a NullPointer and you say "download the fresh copy"... it can't be serious...

 

janiko, create a checker like...

if(player.getParty() != null)
{
L2PcInstance partyMember = getRandomPartyMember(player, "1");
QuestState st = partyMember.getQuestState(getName()); // Line 130
}

Guest
This topic is now closed to further replies.

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.