From 6a8ee5de94a63c14276334fa4165349fc0b673cd Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Wed, 17 Apr 2024 02:06:05 -0700 Subject: [PATCH] Set quests with medium scoring --- .../stendhal/server/maps/quests/AmazonPrincess.java | 3 +++ .../server/maps/quests/CleanAthorsUnderground.java | 3 +++ .../stendhal/server/maps/quests/CloakCollector.java | 2 ++ .../stendhal/server/maps/quests/CloaksForBario.java | 11 +++++++---- .../stendhal/server/maps/quests/CollectEnemyData.java | 9 ++++++--- .../server/maps/quests/CrownForTheWannaBeKing.java | 11 +++++++---- src/games/stendhal/server/maps/quests/DragonLair.java | 4 +++- .../stendhal/server/maps/quests/ElfPrincess.java | 3 +++ .../stendhal/server/maps/quests/ElvishArmor.java | 3 +++ .../stendhal/server/maps/quests/EmotionCrystals.java | 5 ++++- src/games/stendhal/server/maps/quests/FindGhosts.java | 5 ++++- .../stendhal/server/maps/quests/FindRatChildren.java | 3 +++ .../stendhal/server/maps/quests/HelpMrsYeti.java | 5 ++++- src/games/stendhal/server/maps/quests/HelpTomi.java | 3 +++ .../stendhal/server/maps/quests/ImperialPrincess.java | 5 ++++- .../stendhal/server/maps/quests/JailedBarbarian.java | 5 ++++- .../stendhal/server/maps/quests/JailedDwarf.java | 3 +++ .../server/maps/quests/KanmararnSoldiers.java | 5 ++++- .../stendhal/server/maps/quests/KillDarkElves.java | 5 ++++- .../server/maps/quests/KillDhohrNuggetcutter.java | 3 +++ src/games/stendhal/server/maps/quests/KillMonks.java | 3 +++ .../stendhal/server/maps/quests/KillSpiders.java | 3 +++ .../stendhal/server/maps/quests/MixtureForOrtiv.java | 3 +++ .../stendhal/server/maps/quests/ObsidianKnife.java | 3 +++ .../stendhal/server/maps/quests/SadScientist.java | 5 ++++- .../stendhal/server/maps/quests/SevenCherubs.java | 5 ++++- src/games/stendhal/server/maps/quests/Snowballs.java | 5 ++++- .../server/maps/quests/SuntanCreamForZara.java | 5 ++++- .../server/maps/quests/UnicornHornsForZelan.java | 3 +++ .../stendhal/server/maps/quests/VampireSword.java | 5 +++++ .../stendhal/server/maps/quests/WeaponsCollector.java | 5 ++++- .../server/maps/quests/WeaponsCollector2.java | 5 ++++- .../server/maps/quests/ZekielsPracticalTestQuest.java | 2 ++ 33 files changed, 123 insertions(+), 25 deletions(-) diff --git a/src/games/stendhal/server/maps/quests/AmazonPrincess.java b/src/games/stendhal/server/maps/quests/AmazonPrincess.java index c078d034a55..b9aa3c54717 100644 --- a/src/games/stendhal/server/maps/quests/AmazonPrincess.java +++ b/src/games/stendhal/server/maps/quests/AmazonPrincess.java @@ -11,6 +11,7 @@ ***************************************************************************/ package games.stendhal.server.maps.quests; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.action.EquipRandomAmountOfItemAction; import games.stendhal.server.entity.npc.action.IncreaseKarmaAction; import games.stendhal.server.entity.npc.action.InflictStatusOnNPCAction; @@ -92,6 +93,8 @@ public BringItemQuestBuilder story() { .rewardWith(new PlaySoundAction("kiss-female-01")) .rewardWith(new InflictStatusOnNPCAction("pina colada")); + quest.setBaseHOFScore(HOFScore.MEDIUM); + return quest; } diff --git a/src/games/stendhal/server/maps/quests/CleanAthorsUnderground.java b/src/games/stendhal/server/maps/quests/CleanAthorsUnderground.java index cd47a1f1df9..18aa3a1ca34 100644 --- a/src/games/stendhal/server/maps/quests/CleanAthorsUnderground.java +++ b/src/games/stendhal/server/maps/quests/CleanAthorsUnderground.java @@ -11,6 +11,7 @@ ***************************************************************************/ package games.stendhal.server.maps.quests; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.action.EquipItemAction; import games.stendhal.server.entity.npc.action.IncreaseKarmaAction; import games.stendhal.server.entity.npc.action.IncreaseXPAction; @@ -99,6 +100,8 @@ public KillCreaturesQuestBuilder story() { .rewardWith(new IncreaseKarmaAction(10.0)) .rewardWith(new EquipItemAction("greater potion", 10)); + quest.setBaseHOFScore(HOFScore.MEDIUM); + return quest; } diff --git a/src/games/stendhal/server/maps/quests/CloakCollector.java b/src/games/stendhal/server/maps/quests/CloakCollector.java index f3cefa45f20..9c124766d0d 100644 --- a/src/games/stendhal/server/maps/quests/CloakCollector.java +++ b/src/games/stendhal/server/maps/quests/CloakCollector.java @@ -20,6 +20,7 @@ import games.stendhal.common.parser.Expression; import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationStates; @@ -85,6 +86,7 @@ public void addToWorld() { "Cloaks Collector", "Josephine wants cloaks in many colors.", false); + setBaseHOFScore(HOFScore.MEDIUM); npcs.get("Josephine").addKnownChatOptions("cloaks"); } diff --git a/src/games/stendhal/server/maps/quests/CloaksForBario.java b/src/games/stendhal/server/maps/quests/CloaksForBario.java index 8ea3b9fb7a2..dc422f8db25 100644 --- a/src/games/stendhal/server/maps/quests/CloaksForBario.java +++ b/src/games/stendhal/server/maps/quests/CloaksForBario.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2010 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -19,6 +19,7 @@ import games.stendhal.common.MathHelper; import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -217,13 +218,15 @@ public void fire(final Player player, final Sentence sentence, final EventRaiser @Override public void addToWorld() { - step_1(); - step_2(); - step_3(); fillQuestInfo( "Cloaks for Bario", "Bario, the freezing dwarf, needs cloaks to keep himself warm.", false); + setBaseHOFScore(HOFScore.MEDIUM); + + step_1(); + step_2(); + step_3(); } @Override diff --git a/src/games/stendhal/server/maps/quests/CollectEnemyData.java b/src/games/stendhal/server/maps/quests/CollectEnemyData.java index 6ec4444c7d1..bd8732473a1 100644 --- a/src/games/stendhal/server/maps/quests/CollectEnemyData.java +++ b/src/games/stendhal/server/maps/quests/CollectEnemyData.java @@ -29,6 +29,7 @@ import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; import games.stendhal.server.core.engine.StendhalRPZone; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.Entity; import games.stendhal.server.entity.creature.Creature; import games.stendhal.server.entity.item.Item; @@ -833,14 +834,16 @@ public String getSlotName() { @Override public void addToWorld() { initNPC(); - initQuest(); - initShop(); - fillQuestInfo( QUEST_NAME, npc.getName() + " wants help collecting data on creatures found around Faimouni.", false); + setBaseHOFScore(HOFScore.MEDIUM); + + initQuest(); + initShop(); } + @Override public boolean removeFromWorld() { final StendhalRPZone currentZone = npc.getZone(); diff --git a/src/games/stendhal/server/maps/quests/CrownForTheWannaBeKing.java b/src/games/stendhal/server/maps/quests/CrownForTheWannaBeKing.java index be6f57b0362..6fbd0c034aa 100644 --- a/src/games/stendhal/server/maps/quests/CrownForTheWannaBeKing.java +++ b/src/games/stendhal/server/maps/quests/CrownForTheWannaBeKing.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2023 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -19,6 +19,7 @@ import games.stendhal.common.NotificationType; import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -295,13 +296,15 @@ public List getHistory(final Player player) { @Override public void addToWorld() { - step_1(); - step_2(); - step_3(); fillQuestInfo( "Crown for the Wannabe King", NPC_NAME + " wants to rule Kalavan ... and he needs a crown.", false); + setBaseHOFScore(HOFScore.MEDIUM); + + step_1(); + step_2(); + step_3(); } @Override diff --git a/src/games/stendhal/server/maps/quests/DragonLair.java b/src/games/stendhal/server/maps/quests/DragonLair.java index 5793d2dc93b..b2630633c95 100644 --- a/src/games/stendhal/server/maps/quests/DragonLair.java +++ b/src/games/stendhal/server/maps/quests/DragonLair.java @@ -15,6 +15,7 @@ import java.util.ArrayList; import java.util.List; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.SpeakerNPC; @@ -113,12 +114,13 @@ private void step_1() { @Override public void addToWorld() { - step_1(); fillQuestInfo( "Dragon Lair", "Wishman, storm trooper extraordinaire from Blordrough's dark legion, guards the remaining dragons... and lets visitors into their lair.", true); + setBaseHOFScore(HOFScore.MEDIUM); + step_1(); } @Override diff --git a/src/games/stendhal/server/maps/quests/ElfPrincess.java b/src/games/stendhal/server/maps/quests/ElfPrincess.java index 2b8d8c7be57..af37cc94a5b 100644 --- a/src/games/stendhal/server/maps/quests/ElfPrincess.java +++ b/src/games/stendhal/server/maps/quests/ElfPrincess.java @@ -20,6 +20,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.Entity; import games.stendhal.server.entity.item.StackableItem; import games.stendhal.server.entity.npc.ChatAction; @@ -279,6 +280,8 @@ public void addToWorld() { "Rhosyd for Elf Princess", "Tywysoga, the Elf Princess in Nalwor Tower, wants to fill her room with precious rhosyds.", false, 2); + setBaseHOFScore(HOFScore.MEDIUM); + offerQuestStep(); getFlowerStep(); bringFlowerStep(); diff --git a/src/games/stendhal/server/maps/quests/ElvishArmor.java b/src/games/stendhal/server/maps/quests/ElvishArmor.java index c780e34ac30..ff271568715 100644 --- a/src/games/stendhal/server/maps/quests/ElvishArmor.java +++ b/src/games/stendhal/server/maps/quests/ElvishArmor.java @@ -16,6 +16,7 @@ import java.util.List; import games.stendhal.common.grammar.Grammar; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.SpeakerNPC; @@ -85,6 +86,8 @@ public void addToWorld() { "Elvish Armor", "Lupos, an albino elf, wants to get the knowledge of how he can make elvish armor parts himself. Therefore, he asks young travellers to bring him some examples.", true); + setBaseHOFScore(HOFScore.MEDIUM); + offerSteps(); setupAbstractQuest(); } diff --git a/src/games/stendhal/server/maps/quests/EmotionCrystals.java b/src/games/stendhal/server/maps/quests/EmotionCrystals.java index ee21087a8c7..c73a7ff3cd8 100644 --- a/src/games/stendhal/server/maps/quests/EmotionCrystals.java +++ b/src/games/stendhal/server/maps/quests/EmotionCrystals.java @@ -1,5 +1,5 @@ /*************************************************************************** - * (C) Copyright 2003-2013 - Stendhal * + * Copyright © 2003-2024 - Faiumoni e. V. * *************************************************************************** *************************************************************************** * * @@ -17,6 +17,7 @@ import java.util.List; import games.stendhal.common.grammar.Grammar; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -424,6 +425,8 @@ public void addToWorld() { "Emotion Crystals", "Julius needs to get some crystals for his wife which are spread across Faiumoni.", false); + setBaseHOFScore(HOFScore.MEDIUM); + prepareRequestingStep(); prepareRiddlesStep(); prepareBringingStep(); diff --git a/src/games/stendhal/server/maps/quests/FindGhosts.java b/src/games/stendhal/server/maps/quests/FindGhosts.java index d777ee206b3..57082d464af 100644 --- a/src/games/stendhal/server/maps/quests/FindGhosts.java +++ b/src/games/stendhal/server/maps/quests/FindGhosts.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2023 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -21,6 +21,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -279,6 +280,8 @@ public void addToWorld() { "Find Ghosts", "Once upon a time, some travellers talked about some spirits which they visited on their way through Faiumoni. One of them, a young ghost called Carena, is hidden somewhere around Ados and needs some help...", true); + setBaseHOFScore(HOFScore.MEDIUM); + askingStep(); findingStep(); tellingStep(); diff --git a/src/games/stendhal/server/maps/quests/FindRatChildren.java b/src/games/stendhal/server/maps/quests/FindRatChildren.java index eafddd8adda..7b43e149a06 100644 --- a/src/games/stendhal/server/maps/quests/FindRatChildren.java +++ b/src/games/stendhal/server/maps/quests/FindRatChildren.java @@ -21,6 +21,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -288,6 +289,8 @@ public void addToWorld() { "Find Rat Children", "Agnus, who lives in Rat City, asks young heroes to find her children and look after them. They went down into the dark tunnels and haven't returned ...", true); + setBaseHOFScore(HOFScore.MEDIUM); + askingStep(); findingStep(); retrievingStep(); diff --git a/src/games/stendhal/server/maps/quests/HelpMrsYeti.java b/src/games/stendhal/server/maps/quests/HelpMrsYeti.java index 0917c1d41c7..5186cc0060c 100644 --- a/src/games/stendhal/server/maps/quests/HelpMrsYeti.java +++ b/src/games/stendhal/server/maps/quests/HelpMrsYeti.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2023 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -20,6 +20,7 @@ import org.apache.log4j.Logger; import games.stendhal.common.parser.Sentence; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.creature.Pet; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; @@ -341,6 +342,8 @@ public void addToWorld() { "Help Mrs. Yeti", "Mrs. Yeti is really unhappy with her current love life because her husband turned away from her. Now the couple is in deep trouble. Just a special love potion can help Mrs. Yeti to get her husband back.", true); + setBaseHOFScore(HOFScore.MEDIUM); + startQuest(); makePotion(); makeMagicKnife(); diff --git a/src/games/stendhal/server/maps/quests/HelpTomi.java b/src/games/stendhal/server/maps/quests/HelpTomi.java index fbbe108de34..2581165185f 100644 --- a/src/games/stendhal/server/maps/quests/HelpTomi.java +++ b/src/games/stendhal/server/maps/quests/HelpTomi.java @@ -16,6 +16,7 @@ import java.util.List; import games.stendhal.common.parser.Sentence; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -181,6 +182,8 @@ public void addToWorld() { "Help Tomi", "Tomi, a boy being tortured in the hot depths of hell, sweats all over his body. The only thing which can help him is... ICE!", true, null, 1); + setBaseHOFScore(HOFScore.MEDIUM); + questTrigger = ConversationPhrases.combine(ConversationPhrases.QUEST_MESSAGES, extraTrigger); step1(); } diff --git a/src/games/stendhal/server/maps/quests/ImperialPrincess.java b/src/games/stendhal/server/maps/quests/ImperialPrincess.java index 7465adc6714..f726a3c86e9 100644 --- a/src/games/stendhal/server/maps/quests/ImperialPrincess.java +++ b/src/games/stendhal/server/maps/quests/ImperialPrincess.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2010 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -18,6 +18,7 @@ import java.util.List; import games.stendhal.common.parser.Sentence; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -315,6 +316,8 @@ public void addToWorld() { "Gaining Citizenship of Kalavan", "To gain official citizenship for Kalavan City, one must first ask for the permission of the King. His daughter, Princess Ylflia, can help gain his ear.", true); + setBaseHOFScore(HOFScore.MEDIUM); + step_1(); step_2(); step_3(); diff --git a/src/games/stendhal/server/maps/quests/JailedBarbarian.java b/src/games/stendhal/server/maps/quests/JailedBarbarian.java index fb00999a0dd..a5250d496a4 100644 --- a/src/games/stendhal/server/maps/quests/JailedBarbarian.java +++ b/src/games/stendhal/server/maps/quests/JailedBarbarian.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2023 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -19,6 +19,7 @@ import org.apache.log4j.Logger; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -297,6 +298,8 @@ public void addToWorld() { "Jailed Barbarian", "Lorenz is a jailed barbarian on Amazon Island. It's a mystery why he is jailed there, but perhaps he needs help.", true); + setBaseHOFScore(HOFScore.MEDIUM); + step1(); step2(); step3(); diff --git a/src/games/stendhal/server/maps/quests/JailedDwarf.java b/src/games/stendhal/server/maps/quests/JailedDwarf.java index 9a8c1c61c47..75a6e17a4af 100644 --- a/src/games/stendhal/server/maps/quests/JailedDwarf.java +++ b/src/games/stendhal/server/maps/quests/JailedDwarf.java @@ -15,6 +15,7 @@ import java.util.ArrayList; import java.util.List; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.SpeakerNPC; @@ -100,6 +101,8 @@ public void addToWorld() { "Jailed Dwarf", "Down in Kanmararn is an afraid dwarf locked in a cell waiting for visitors. He is supposed to be the guard, but duergars have raided the prison. He might need some armor to survive once out of it.", false); + setBaseHOFScore(HOFScore.MEDIUM); + step_1(); } diff --git a/src/games/stendhal/server/maps/quests/KanmararnSoldiers.java b/src/games/stendhal/server/maps/quests/KanmararnSoldiers.java index b53692e95fe..b4e581296b4 100644 --- a/src/games/stendhal/server/maps/quests/KanmararnSoldiers.java +++ b/src/games/stendhal/server/maps/quests/KanmararnSoldiers.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2023 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -23,6 +23,7 @@ import games.stendhal.server.core.engine.SingletonRepository; import games.stendhal.server.core.engine.StendhalRPZone; import games.stendhal.server.core.events.TurnListener; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.Entity; import games.stendhal.server.entity.item.Corpse; import games.stendhal.server.entity.item.Item; @@ -462,6 +463,8 @@ public void addToWorld() { "Kanmararn Soldiers", "Some time ago, Sergeant James started with his crew of four brave soldiers on their adventure of finding a treasure in Kanmararn, the city of dwarves. They didn't return yet.", true); + setBaseHOFScore(HOFScore.MEDIUM); + prepareCowardSoldier(); prepareCorpses(); prepareSergeant(); diff --git a/src/games/stendhal/server/maps/quests/KillDarkElves.java b/src/games/stendhal/server/maps/quests/KillDarkElves.java index dc2d3b6f35c..e07d1f19b52 100644 --- a/src/games/stendhal/server/maps/quests/KillDarkElves.java +++ b/src/games/stendhal/server/maps/quests/KillDarkElves.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2023 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -16,6 +16,7 @@ import java.util.LinkedList; import java.util.List; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -242,6 +243,8 @@ public void addToWorld() { "Kill Dark Elves", "Maerion, leader of elves, wants to kill dark elves in the secret room to hide his plots and get back his amulet.", false); + setBaseHOFScore(HOFScore.MEDIUM); + step_1(); step_2(); step_3(); diff --git a/src/games/stendhal/server/maps/quests/KillDhohrNuggetcutter.java b/src/games/stendhal/server/maps/quests/KillDhohrNuggetcutter.java index 3b395017f7d..7b910b9cc64 100644 --- a/src/games/stendhal/server/maps/quests/KillDhohrNuggetcutter.java +++ b/src/games/stendhal/server/maps/quests/KillDhohrNuggetcutter.java @@ -18,6 +18,7 @@ import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; @@ -180,6 +181,8 @@ public void addToWorld() { "Kill Dhohr Nuggetcutter", "Zogfang, the orc who guards the entrance of the Abandoned Keep, isn't feeling safe while some dwarves still remain in the Keep.", false); + setBaseHOFScore(HOFScore.MEDIUM); + step_1(); step_2(); step_3(); diff --git a/src/games/stendhal/server/maps/quests/KillMonks.java b/src/games/stendhal/server/maps/quests/KillMonks.java index 27b3b3ea035..e2019792361 100644 --- a/src/games/stendhal/server/maps/quests/KillMonks.java +++ b/src/games/stendhal/server/maps/quests/KillMonks.java @@ -21,6 +21,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.StackableItem; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; @@ -200,6 +201,8 @@ public void addToWorld() { "Kill Monks", "Andy's wife was killed by monks, now he wants revenge on them.", false, 2); + setBaseHOFScore(HOFScore.MEDIUM); + step_1(); step_2(); step_3(); diff --git a/src/games/stendhal/server/maps/quests/KillSpiders.java b/src/games/stendhal/server/maps/quests/KillSpiders.java index 44dc71e82ea..b64a6d26731 100644 --- a/src/games/stendhal/server/maps/quests/KillSpiders.java +++ b/src/games/stendhal/server/maps/quests/KillSpiders.java @@ -17,6 +17,7 @@ import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; @@ -189,6 +190,8 @@ public void addToWorld() { "Kill Spiders", "Morgrin, groundskeeper of the magic school, is concerned about spiders in the school basement.", true); + setBaseHOFScore(HOFScore.MEDIUM); + step_1(); step_2(); step_3(); diff --git a/src/games/stendhal/server/maps/quests/MixtureForOrtiv.java b/src/games/stendhal/server/maps/quests/MixtureForOrtiv.java index a021ca70b8d..6a63fa272c9 100644 --- a/src/games/stendhal/server/maps/quests/MixtureForOrtiv.java +++ b/src/games/stendhal/server/maps/quests/MixtureForOrtiv.java @@ -18,6 +18,7 @@ import java.util.Map; import games.stendhal.common.grammar.Grammar; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -253,6 +254,8 @@ public void addToWorld() { "Mixture for Ortiv", "Ortiv needs some ingredients for a mixture which will help him to keep the assassins and bandits in the cellar.", true); + setBaseHOFScore(HOFScore.MEDIUM); + prepareRequestingStep(); prepareBringingStep(); } diff --git a/src/games/stendhal/server/maps/quests/ObsidianKnife.java b/src/games/stendhal/server/maps/quests/ObsidianKnife.java index 0aa9eca9e68..9de2373170d 100644 --- a/src/games/stendhal/server/maps/quests/ObsidianKnife.java +++ b/src/games/stendhal/server/maps/quests/ObsidianKnife.java @@ -22,6 +22,7 @@ import games.stendhal.common.Rand; import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.Entity; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ChatCondition; @@ -522,6 +523,8 @@ public void addToWorld() { "Obsidian Knife", "A skilled dwarf blacksmith in Wo'fol is getting hungry, and bored...", false); + setBaseHOFScore(HOFScore.MEDIUM); + prepareQuestOfferingStep(); bringFoodStep(); requestBookStep(); diff --git a/src/games/stendhal/server/maps/quests/SadScientist.java b/src/games/stendhal/server/maps/quests/SadScientist.java index 825db387fa2..fd75bc3f140 100644 --- a/src/games/stendhal/server/maps/quests/SadScientist.java +++ b/src/games/stendhal/server/maps/quests/SadScientist.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2023 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -22,6 +22,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ChatCondition; @@ -178,6 +179,8 @@ public void addToWorld() { "A Sad Scientist", "Vasi Elos, a lonely scientist, wants to deliver a present to his honey.", false); + setBaseHOFScore(HOFScore.MEDIUM); + prepareQuestSteps(); } diff --git a/src/games/stendhal/server/maps/quests/SevenCherubs.java b/src/games/stendhal/server/maps/quests/SevenCherubs.java index c64a66650fd..8eede8106e6 100644 --- a/src/games/stendhal/server/maps/quests/SevenCherubs.java +++ b/src/games/stendhal/server/maps/quests/SevenCherubs.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2010 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -25,6 +25,7 @@ import games.stendhal.server.core.engine.StendhalRPZone; import games.stendhal.server.core.pathfinder.FixedPath; import games.stendhal.server.core.pathfinder.Node; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; @@ -235,6 +236,8 @@ public void addToWorld() { "Seven Cherubs", "Seven cherubs stay on this world, and finding them all is rewarded with a prize.", false); + setBaseHOFScore(HOFScore.MEDIUM); + StendhalRPZone zone; SpeakerNPC npc; diff --git a/src/games/stendhal/server/maps/quests/Snowballs.java b/src/games/stendhal/server/maps/quests/Snowballs.java index 05fa406d414..c1a35de0bf4 100644 --- a/src/games/stendhal/server/maps/quests/Snowballs.java +++ b/src/games/stendhal/server/maps/quests/Snowballs.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2010 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -19,6 +19,7 @@ import games.stendhal.common.Rand; import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.StackableItem; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; @@ -273,6 +274,8 @@ public void addToWorld() { "Snowballs for Mr. Yeti", "The inhabitant of the icy region in Faiumoni needs your help to collect some snowballs for him.", false); + setBaseHOFScore(HOFScore.MEDIUM); + prepareRequestingStep(); prepareBringingStep(); } diff --git a/src/games/stendhal/server/maps/quests/SuntanCreamForZara.java b/src/games/stendhal/server/maps/quests/SuntanCreamForZara.java index 57650ec5358..5e93bc2a6fd 100644 --- a/src/games/stendhal/server/maps/quests/SuntanCreamForZara.java +++ b/src/games/stendhal/server/maps/quests/SuntanCreamForZara.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2010 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -17,6 +17,7 @@ import java.util.LinkedList; import java.util.List; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; @@ -215,6 +216,8 @@ public void addToWorld() { "Suntan Cream for Zara", "Zara is burning under the hot Athor sun.", false); + setBaseHOFScore(HOFScore.MEDIUM); + createRequestingStep(); createBringingStep(); } diff --git a/src/games/stendhal/server/maps/quests/UnicornHornsForZelan.java b/src/games/stendhal/server/maps/quests/UnicornHornsForZelan.java index b382a37293c..8b61f6e6634 100644 --- a/src/games/stendhal/server/maps/quests/UnicornHornsForZelan.java +++ b/src/games/stendhal/server/maps/quests/UnicornHornsForZelan.java @@ -11,6 +11,7 @@ ***************************************************************************/ package games.stendhal.server.maps.quests; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.action.EquipItemAction; import games.stendhal.server.entity.npc.action.IncreaseKarmaAction; import games.stendhal.server.entity.npc.action.IncreaseXPAction; @@ -99,6 +100,8 @@ public BringItemQuestBuilder story() { .rewardWith(new EquipItemAction("soup", 3)) .rewardWith(new EquipItemAction("money", 20000)); + quest.setBaseHOFScore(HOFScore.MEDIUM); + return quest; } } diff --git a/src/games/stendhal/server/maps/quests/VampireSword.java b/src/games/stendhal/server/maps/quests/VampireSword.java index e7eca0de79c..a127fe0dced 100644 --- a/src/games/stendhal/server/maps/quests/VampireSword.java +++ b/src/games/stendhal/server/maps/quests/VampireSword.java @@ -39,6 +39,7 @@ import java.util.Map; import java.util.TreeMap; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.SpeakerNPC; @@ -46,6 +47,8 @@ import games.stendhal.server.entity.npc.behaviour.impl.ProducerBehaviour; import games.stendhal.server.entity.player.Player; import games.stendhal.server.maps.Region; + + /** * QUEST: The Vampire Sword *

@@ -297,6 +300,8 @@ public void addToWorld() { "Vampire Sword", "Hogart tells a thrilling story of vampires and betrayal. This inspires the idea of a life stealing sword he can forge.", false); + setBaseHOFScore(HOFScore.MEDIUM); + prepareQuestOfferingStep(); prepareGobletFillingStep(); prepareForgingStep(); diff --git a/src/games/stendhal/server/maps/quests/WeaponsCollector.java b/src/games/stendhal/server/maps/quests/WeaponsCollector.java index 4658ef8c018..ed7131e6984 100644 --- a/src/games/stendhal/server/maps/quests/WeaponsCollector.java +++ b/src/games/stendhal/server/maps/quests/WeaponsCollector.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2010 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -17,6 +17,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.SpeakerNPC; @@ -73,6 +74,8 @@ public void addToWorld() { "Weapon Collector", "Balduin, the hermit who is living on Ados rock, wants to expand his weapons collection.", true); + setBaseHOFScore(HOFScore.MEDIUM); + setupAbstractQuest(); } diff --git a/src/games/stendhal/server/maps/quests/WeaponsCollector2.java b/src/games/stendhal/server/maps/quests/WeaponsCollector2.java index 6872e54bcd1..80e3596dedd 100644 --- a/src/games/stendhal/server/maps/quests/WeaponsCollector2.java +++ b/src/games/stendhal/server/maps/quests/WeaponsCollector2.java @@ -1,6 +1,6 @@ /* $Id$ */ /*************************************************************************** - * (C) Copyright 2003-2023 - Stendhal * + * (C) Copyright 2003-2024 - Stendhal * *************************************************************************** *************************************************************************** * * @@ -20,6 +20,7 @@ import games.stendhal.common.grammar.Grammar; import games.stendhal.common.parser.Sentence; import games.stendhal.server.core.engine.SingletonRepository; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.npc.ChatAction; import games.stendhal.server.entity.npc.ConversationPhrases; @@ -307,6 +308,8 @@ public void addToWorld() { "Weapon Collector 2", "Balduin, the hermit who is living on Ados rock, has heard of more weapons he can collect.", true); + setBaseHOFScore(HOFScore.MEDIUM); + step_1(); step_2(); step_3(); diff --git a/src/games/stendhal/server/maps/quests/ZekielsPracticalTestQuest.java b/src/games/stendhal/server/maps/quests/ZekielsPracticalTestQuest.java index ab26a013951..f9cd58e1702 100644 --- a/src/games/stendhal/server/maps/quests/ZekielsPracticalTestQuest.java +++ b/src/games/stendhal/server/maps/quests/ZekielsPracticalTestQuest.java @@ -17,6 +17,7 @@ import java.util.List; import games.stendhal.common.Direction; +import games.stendhal.server.core.rp.HOFScore; import games.stendhal.server.entity.npc.ConversationPhrases; import games.stendhal.server.entity.npc.ConversationStates; import games.stendhal.server.entity.npc.SpeakerNPC; @@ -342,6 +343,7 @@ public void addToWorld() { "Zekiels Practical Test", "Zekiel, the guardian of the magic tower, knows all about the wizards domain and history.", true); + setBaseHOFScore(HOFScore.MEDIUM); prepareQuestOfferingStep(); bringItemsStep();