summaryrefslogtreecommitdiff
path: root/world/map/npc/009-1/milly.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/009-1/milly.txt')
-rw-r--r--world/map/npc/009-1/milly.txt38
1 files changed, 16 insertions, 22 deletions
diff --git a/world/map/npc/009-1/milly.txt b/world/map/npc/009-1/milly.txt
index a6b505cc..00a63939 100644
--- a/world/map/npc/009-1/milly.txt
+++ b/world/map/npc/009-1/milly.txt
@@ -6,7 +6,8 @@
//
// Inspector quest
-009-1.gat,81,41,0|script|Milly|114,{
+009-1.gat,81,41,0|script|Milly|114,
+{
callfunc "ClearVariables";
set @inspector, ((QUEST_Hurnscald & NIBBLE_3_MASK) >> NIBBLE_3_SHIFT);
@@ -29,8 +30,7 @@
mes "[Milly]";
mes "\"Hello traveler, welcome to Hurnscald.\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"Have you met Kfahr yet? He is the greatest hero that ever walked the land of Hurnscald!\"";
menu
@@ -61,8 +61,7 @@ L_NoKnifeYet:
mes "[Milly]";
mes "\"Hi again.\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"Have you talked to Kfahr lately?\"";
menu
@@ -109,8 +108,7 @@ L_GotBoneKnife:
mes "[Milly]";
mes "\"Hi there.\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"I heard that you got an exotic knife from Kfahr.";
mes "Would you kindly show it to me?\"";
@@ -159,8 +157,7 @@ L_SavedRossy:
mes "[Milly]";
mes "\"Hi friend!\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"Word of your fame has spread throughout all Hurnscald of your great heroism by helping my friends Rossy and Julia!\"";
next;
@@ -195,8 +192,7 @@ L_SavedCindy:
mes "[Milly]";
mes "\"Hi!\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"Are the rumors true?\"";
next;
@@ -234,8 +230,7 @@ L_GotSetzer:
mes "[Milly]";
mes "\"Hello!\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"I heard that you got hold of a Setzer!\"";
next;
@@ -266,8 +261,7 @@ L_OfferCap:
mes "[Milly]";
mes "\"Hi there, hero of Hurnscald!\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"You really have proven yourself over and over. There is no way anyone could possibly say, you are not the equal of Kfahr!\"";
next;
@@ -326,8 +320,7 @@ L_FinishedGood:
mes "[Milly]";
mes "\"Hi there friend, my hero!\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"Wear the copter beany cap in good health, mana and wealth! See you around!\"";
goto L_Close;
@@ -336,8 +329,7 @@ L_FinishedBad:
mes "[Milly]";
mes "\"Oh, it's you. I suppose you're here to make fun of my hat again.\"";
next;
- if (@inspector == 1)
- callsub S_InspectorQuest;
+ callsub S_InspectorMaybe;
mes "\"Won't you continue your travels soon?\"";
menu
"That's what I'm going to do.", -,
@@ -368,7 +360,9 @@ L_Close:
set @inspector, 0;
close;
-S_InspectorQuest:
+S_InspectorMaybe:
+ if (@inspector != 1)
+ return;
menu
"Have you seen anything strange lately?", L_NohMask_Strange,
"Do you know anything about the recent robberies?", L_NohMask_Robbery,
@@ -390,8 +384,8 @@ L_Return:
return;
}
-009-1.gat,82,41,0|script|MillyDebugHelper|114,{
-
+009-1.gat,82,41,0|script|MillyDebugHelper|114,
+{
mes "You can set certain quests as finished or not finished. What would you like to do?";
menu
"Bone Knife Quest done.", L_DBoneKnife,