summaryrefslogtreecommitdiff
path: root/npc/001-1/bernard.txt
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-06-01 15:27:26 -0600
committerJared Adams <jaxad0127@gmail.com>2011-06-01 15:37:09 -0600
commit3d0823d5c9b56be5c3892c0a4e717f961cb93e69 (patch)
tree6545b29dbd08d81b57f9cb1f9f83df57ead489c2 /npc/001-1/bernard.txt
parentc6e448824925eec18edffffc7342399b73b6feb4 (diff)
downloadserverdata-3d0823d5c9b56be5c3892c0a4e717f961cb93e69.tar.gz
serverdata-3d0823d5c9b56be5c3892c0a4e717f961cb93e69.tar.bz2
serverdata-3d0823d5c9b56be5c3892c0a4e717f961cb93e69.tar.xz
serverdata-3d0823d5c9b56be5c3892c0a4e717f961cb93e69.zip
Change the Converter to use different folder names
And update everything to use it.
Diffstat (limited to 'npc/001-1/bernard.txt')
-rw-r--r--npc/001-1/bernard.txt117
1 files changed, 117 insertions, 0 deletions
diff --git a/npc/001-1/bernard.txt b/npc/001-1/bernard.txt
new file mode 100644
index 00000000..1c5ee328
--- /dev/null
+++ b/npc/001-1/bernard.txt
@@ -0,0 +1,117 @@
+//
+
+001-1.gat,37,44,0 script Bernard 117,{
+ if(TMW_Quest >= 4) goto L_Done2;
+ if(TMW_Quest == 3) goto L_Progress2;
+ if(TMW_Quest == 2) goto L_Done1;
+ if(TMW_Quest == 1) goto L_Progress;
+
+ set @TEMP, rand(2);
+ if(@TEMP == 0) goto L_Opening0;
+ if(@TEMP == 1) goto L_Opening1;
+
+L_Opening0:
+ mes "[Bernard]";
+ mes "\"Tulimshar is crawling with maggots. Hey, I need a favor, could you help me a bit?\"";
+ next;
+ goto L_Ask;
+
+L_Opening1:
+ mes "[Bernard]";
+ mes "\"The taste of maggots in soup is... unforgettable, they taste simply divine! Would you help me kill some?\"";
+ next;
+ goto L_Ask;
+
+L_Ask:
+ menu
+ "Yes.", L_Yes,
+ "No.", L_No;
+
+L_Yes:
+ set @TEMP, rand(2);
+ if(@TEMP == 0) goto L_Req0;
+ if(@TEMP == 1) goto L_Req1;
+
+L_Req0:
+ mes "[Bernard]";
+ mes "\"Great! I need a [Roasted Maggot] for my soup.\"";
+ next;
+ goto L_Set;
+
+L_Req1:
+ mes "[Bernard]";
+ mes "\"Bring me a [Roasted Maggot]. I'll give you something if you do.\"";
+ next;
+ goto L_Set;
+
+L_Set:
+ set TMW_Quest,1;
+ mes "[Bernard]";
+ mes "\"Please bring it to me!\"";
+ close;
+
+L_Progress:
+ if (countitem("RoastedMaggot") < 1) goto L_NotEnough;
+ mes "[Bernard]";
+ mes "\"Oooh, perfect! It's perfect!";
+ mes "You brought me my [Roasted Maggot]! Here, have some cake for your troubles.\"";
+ getinventorylist;
+ if (@inventorylist_count - (countitem("RoastedMaggot") == 1) > 99 - (countitem("CherryCake") == 0) ) goto L_TooMany;
+ delitem "RoastedMaggot", 1;
+ getexp 100, 0;
+ getitem "CherryCake", 5;
+ set TMW_Quest, 2;
+ close;
+
+L_Progress2:
+ if (countitem("MaggotSlime") < 3) goto L_NotEnough1;
+ mes "[Bernard]";
+ mes "\"Nice! They're perfect, just perfect!";
+ mes "You brought me the 3 [Maggot Slimes]! Here, have some beer as reward.\"";
+ getinventorylist;
+ if ((@inventorylist_count - (countitem("MaggotSlime") == 3) > 99 - (countitem("Beer") == 0) )) goto L_TooMany;
+ delitem "MaggotSlime", 3;
+ getexp 100, 0;
+ getitem "Beer", 3;
+ set TMW_Quest, 4;
+ close;
+
+
+L_NotEnough:
+ mes "[Bernard]";
+ mes "\"Oh, please hurry and bring me a [Roasted Maggot]. I'm yearning for maggot soup!\"";
+ close;
+
+L_NotEnough1:
+ mes "[Bernard]";
+ mes "\"Please do hurry and bring me 3 [Maggot Slime]s, so I can finish my soup!\"";
+ close;
+
+
+L_Done1:
+ mes "[Bernard]";
+ mes "\"Thank you so much!\"";
+ mes "\"But... something is missing to make the soup creamy.\"";
+ next;
+ mes "\"I need 3 [Maggot Slime]s for that.\"";
+ mes "\"Bring them to me, and I'll give you something nice.\"";
+ set TMW_Quest,3;
+ close;
+
+L_Done2:
+ mes "[Bernard]";
+ mes "\"I didn't mention it before, but I also put beer in my soup. I hope you like beer as much as I do, because, you see...\"";
+ next;
+ mes "\"Beer is life!\"";
+ close;
+
+
+L_No:
+ close;
+
+L_TooMany:
+ next;
+ mes "[Bernard]";
+ mes "\"You don't have room for my reward. I'll wait until you do.\"";
+ close;
+}