Fixed onKill NPE for quests 933 and 935.
Contributed by borinet.
This commit is contained in:
parent
d81f3fc380
commit
c3c769a6b5
@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
|
|||||||
public String onKill(Npc npc, Player killer, boolean isSummon)
|
public String onKill(Npc npc, Player killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
final QuestState qs = getQuestState(killer, false);
|
||||||
if (qs.getCond() == 1)
|
if ((qs != null) && (qs.getCond() == 1))
|
||||||
{
|
{
|
||||||
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user