Jump to content
  • 0

NullExceptionError


Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted

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.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock