janiko Posted August 28, 2012 Posted August 28, 2012 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; } Uploaded with ImageShack.us
0 EdenEternal Posted August 28, 2012 Posted August 28, 2012 As you see the problem is in Q00906_TheCallofValakas.java. Which is located in scripts/quests folder.just delete and download the fresh copy
0 ^Wyatt Posted August 28, 2012 Posted August 28, 2012 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 }
Question
janiko
When i kill mob without party it shows me this error, check in image
any idea why i ahve this error?
Uploaded with ImageShack.us
3 answers to this question
Recommended Posts