Skip to content

Commit

Permalink
Set quests with medium scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jul 24, 2024
1 parent e1ef477 commit c76a636
Show file tree
Hide file tree
Showing 33 changed files with 123 additions and 25 deletions.
3 changes: 3 additions & 0 deletions src/games/stendhal/server/maps/quests/AmazonPrincess.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -92,6 +93,8 @@ public BringItemQuestBuilder story() {
.rewardWith(new PlaySoundAction("kiss-female-01"))
.rewardWith(new InflictStatusOnNPCAction("pina colada"));

quest.setBaseHOFScore(HOFScore.MEDIUM);

return quest;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -99,6 +100,8 @@ public KillCreaturesQuestBuilder story() {
.rewardWith(new IncreaseKarmaAction(10.0))
.rewardWith(new EquipItemAction("greater potion", 10));

quest.setBaseHOFScore(HOFScore.MEDIUM);

return quest;
}

Expand Down
2 changes: 2 additions & 0 deletions src/games/stendhal/server/maps/quests/CloakCollector.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -85,6 +86,7 @@ public void addToWorld() {
"Cloaks Collector",
"Josephine wants cloaks in many colors.",
false);
setBaseHOFScore(HOFScore.MEDIUM);

npcs.get("Josephine").addKnownChatOptions("cloaks");
}
Expand Down
11 changes: 7 additions & 4 deletions src/games/stendhal/server/maps/quests/CloaksForBario.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2010 - Stendhal *
* (C) Copyright 2003-2024 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down
9 changes: 6 additions & 3 deletions src/games/stendhal/server/maps/quests/CollectEnemyData.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2023 - Stendhal *
* (C) Copyright 2003-2024 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -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;
Expand Down Expand Up @@ -295,13 +296,15 @@ public List<String> 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
Expand Down
4 changes: 3 additions & 1 deletion src/games/stendhal/server/maps/quests/DragonLair.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/games/stendhal/server/maps/quests/ElfPrincess.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions src/games/stendhal/server/maps/quests/ElvishArmor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down
5 changes: 4 additions & 1 deletion src/games/stendhal/server/maps/quests/EmotionCrystals.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* (C) Copyright 2003-2013 - Stendhal *
* Copyright © 2003-2024 - Faiumoni e. V. *
***************************************************************************
***************************************************************************
* *
Expand All @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
5 changes: 4 additions & 1 deletion src/games/stendhal/server/maps/quests/FindGhosts.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2023 - Stendhal *
* (C) Copyright 2003-2024 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions src/games/stendhal/server/maps/quests/FindRatChildren.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
5 changes: 4 additions & 1 deletion src/games/stendhal/server/maps/quests/HelpMrsYeti.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2023 - Stendhal *
* (C) Copyright 2003-2024 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions src/games/stendhal/server/maps/quests/HelpTomi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down
5 changes: 4 additions & 1 deletion src/games/stendhal/server/maps/quests/ImperialPrincess.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2010 - Stendhal *
* (C) Copyright 2003-2024 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
5 changes: 4 additions & 1 deletion src/games/stendhal/server/maps/quests/JailedBarbarian.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2023 - Stendhal *
* (C) Copyright 2003-2024 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions src/games/stendhal/server/maps/quests/JailedDwarf.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}

Expand Down
Loading

0 comments on commit c76a636

Please sign in to comment.