diff --git a/sku.0/sys.server/compiled/game/script/quest/task/ground/give_item_to_npc.java b/sku.0/sys.server/compiled/game/script/quest/task/ground/give_item_to_npc.java old mode 100644 new mode 100755 index ab7231a7b..697a9d81d --- a/sku.0/sys.server/compiled/game/script/quest/task/ground/give_item_to_npc.java +++ b/sku.0/sys.server/compiled/game/script/quest/task/ground/give_item_to_npc.java @@ -30,6 +30,10 @@ public class give_item_to_npc extends script.base_script } int questCrc = groundquests.getQuestIdFromString(questName); int taskId = groundquests.getTaskId(questCrc, taskName); + if(taskId == -1){ + LOG("groundquests","Task could not be found for this quest."); + return SCRIPT_CONTINUE; + } if (!questIsTaskActive(questCrc, taskId, giver)) { if (hasObjVar(self, "alternate_quest_name"))