From c1912b421e0f359894bacf81b912df1b33b6580c Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Tue, 9 Jul 2024 20:25:39 -0700 Subject: [PATCH] Begin work on Items for Tinny quest (WIP) --- .../server/maps/quests/ItemsForTinny.java | 47 +++++++++++++++++++ .../server/maps/quests/ItemsForTinnyTest.java | 18 +++++++ 2 files changed, 65 insertions(+) create mode 100644 src/games/stendhal/server/maps/quests/ItemsForTinny.java create mode 100644 tests/games/stendhal/server/maps/quests/ItemsForTinnyTest.java diff --git a/src/games/stendhal/server/maps/quests/ItemsForTinny.java b/src/games/stendhal/server/maps/quests/ItemsForTinny.java new file mode 100644 index 0000000000..9203e1e7e5 --- /dev/null +++ b/src/games/stendhal/server/maps/quests/ItemsForTinny.java @@ -0,0 +1,47 @@ +/*************************************************************************** + * Copyright © 2024 - Faiumoni e. V. * + *************************************************************************** + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +package games.stendhal.server.maps.quests; + +import games.stendhal.server.entity.npc.quest.BringItemQuestBuilder; +import games.stendhal.server.entity.npc.quest.QuestManuscript; +import games.stendhal.server.maps.Region; + + +public class ItemsForTinny implements QuestManuscript { + + @Override + public BringItemQuestBuilder story() { + final BringItemQuestBuilder quest = new BringItemQuestBuilder(); + + quest.info() + .name("Items for Tinny") + .internalName("items_for_tinny") + .description("Tinny the leather crafter needs to restock his shelves.") + .region(Region.DENIRAN_CITY) + .questGiverNpc("Tinny"); + + quest.history(); + + quest.offer() + .respondToRequest("Well, as a matter of fact I do have a task for you. I am in need of some" + + " supplies. Would you be interested in helping me?") + .respondToReject("Ah well, maybe I can find another brave soul to help me.") + .respondToAccept("Good! There is a few things that I need to restock my shelves. I would" + + " reward you nicely, I do love working with leather."); + + quest.task(); + + quest.complete(); + + return quest; + } +} diff --git a/tests/games/stendhal/server/maps/quests/ItemsForTinnyTest.java b/tests/games/stendhal/server/maps/quests/ItemsForTinnyTest.java new file mode 100644 index 0000000000..501f627b76 --- /dev/null +++ b/tests/games/stendhal/server/maps/quests/ItemsForTinnyTest.java @@ -0,0 +1,18 @@ +/*************************************************************************** + * Copyright © 2024 - Faiumoni e. V. * + *************************************************************************** + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +package games.stendhal.server.maps.quests; + +import utilities.QuestHelper; + + +public class ItemsForTinnyTest extends QuestHelper { +}