From 3d5ac52cecc94b500d93a9ec90b851aab3fa314e Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Fri, 26 Apr 2024 01:14:48 -0700 Subject: [PATCH] Track completions of Zoo Food quest --- src/games/stendhal/server/maps/quests/ZooFood.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/games/stendhal/server/maps/quests/ZooFood.java b/src/games/stendhal/server/maps/quests/ZooFood.java index 74ded20538e..6ef9a3310fb 100644 --- a/src/games/stendhal/server/maps/quests/ZooFood.java +++ b/src/games/stendhal/server/maps/quests/ZooFood.java @@ -179,7 +179,7 @@ private void step_1() { npc.add(ConversationStates.QUEST_OFFERED, ConversationPhrases.YES_MESSAGES, null, ConversationStates.ATTENDING, null, - new MultipleActions(new SetQuestAction(QUEST_SLOT, "start;"), + new MultipleActions(new SetQuestAction(QUEST_SLOT, 0, "start"), new StartRecordingRandomItemCollectionAction(QUEST_SLOT, 1, items, "Oh, thank you! Please help us by" + " bringing [item] as soon as you can.")) ); @@ -234,9 +234,10 @@ private void step_3() { new SayRequiredItemAction(QUEST_SLOT, 1, "Welcome back! Have you brought the [item]?")); final List actions = new LinkedList(); - actions.add(new DropRecordedItemAction(QUEST_SLOT,1)); - actions.add(new SetQuestAndModifyKarmaAction(QUEST_SLOT, "done;1", 5.0)); + actions.add(new DropRecordedItemAction(QUEST_SLOT, 1)); + actions.add(new SetQuestAndModifyKarmaAction(QUEST_SLOT, 0, "done", 5.0)); actions.add(new SetQuestToTimeStampAction(QUEST_SLOT, 1)); + actions.add(incrementCompletionsAction()); actions.add(new IncreaseXPAction(200)); npc.add(ConversationStates.QUEST_ITEM_BROUGHT, @@ -284,7 +285,8 @@ public void addToWorld() { fillQuestInfo( "Zoo Food", "The animals at the zoo are hungry and need some food!", - true); + true, 2); + step_1(); step_2(); step_3();