Fixed onKill NPE for quests 933 and 935.

Contributed by borinet.
This commit is contained in:
MobiusDevelopment 2022-04-19 08:03:29 +00:00
parent d81f3fc380
commit c3c769a6b5
14 changed files with 14 additions and 14 deletions

View File

@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00933_ExploringTheWestWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{

View File

@ -209,7 +209,7 @@ public class Q00935_ExploringTheEastWingOfTheDungeonOfAbyss extends Quest
public String onKill(Npc npc, Player killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if (qs.getCond() == 1)
if ((qs != null) && (qs.getCond() == 1))
{
if (getQuestItemsCount(killer, OSKZLA.getId()) < 50)
{