Skip to content

Commit

Permalink
Track completions of Zoo Food quest
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Apr 26, 2024
1 parent 55ec25a commit 3d5ac52
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/games/stendhal/server/maps/quests/ZooFood.java
Original file line number Diff line number Diff line change
Expand Up @@ -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."))
);
Expand Down Expand Up @@ -234,9 +234,10 @@ private void step_3() {
new SayRequiredItemAction(QUEST_SLOT, 1, "Welcome back! Have you brought the [item]?"));

final List<ChatAction> actions = new LinkedList<ChatAction>();
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,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3d5ac52

Please sign in to comment.