summaryrefslogtreecommitdiff
path: root/npc/014-4
diff options
context:
space:
mode:
Diffstat (limited to 'npc/014-4')
-rw-r--r--npc/014-4/_import.txt1
-rw-r--r--npc/014-4/thorn.txt91
2 files changed, 92 insertions, 0 deletions
diff --git a/npc/014-4/_import.txt b/npc/014-4/_import.txt
index b744dbcc3..4a11db4f5 100644
--- a/npc/014-4/_import.txt
+++ b/npc/014-4/_import.txt
@@ -4,3 +4,4 @@
"npc/014-4/_warps.txt",
"npc/014-4/mapflags.txt",
"npc/014-4/slide.txt",
+"npc/014-4/thorn.txt",
diff --git a/npc/014-4/thorn.txt b/npc/014-4/thorn.txt
new file mode 100644
index 000000000..911fe2b65
--- /dev/null
+++ b/npc/014-4/thorn.txt
@@ -0,0 +1,91 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// Description:
+// Spring Quest, disabled during Easter
+//
+// SQuest_SPring
+
+014-4,149,98,0 script Thorn NPC_THORN_NPC,{
+ if (season() != SPRING)
+ goto L_OutOfSeason;
+ if ($EVENT$ == "Easter")
+ goto L_QuestDisabled;
+
+ .@q=getq(SQuest_Spring);
+ mesn;
+ mesq l("Brrrr... I'm freezing! The spring at Woodlands is so harsh!!");
+ if (.@q < 1)
+ goto L_springQuest;
+
+L_Main:
+ close;
+
+L_OutOfSeason:
+ mesn;
+ mesq l("Hmm, Woodlands is a wonderful place to live in! Although it is a tad too cold on spring...");
+ goto L_Main;
+
+L_QuestDisabled:
+ mesn;
+ mesq l("Happy Easter!");
+ mesc l("The @@ quest is disabled during Easter event.", getitemlink(Wreath));
+ next;
+ goto L_Main;
+
+L_springQuest:
+ next;
+ mesn;
+ mesq l("Hey, do you know what is good on this harsh spring? A @@!", getitemlink(Wreath));
+ next;
+ mesn;
+ mes l("What about you bring me:");
+ mes l("@@/120 @@", countitem(Snowflake), getitemlink(Snowflake));
+ mes l("@@/80 @@", countitem(CaramelCandy), getitemlink(CaramelCandy));
+ mes l("@@/40 @@", countitem(GingerBreadMan), getitemlink(GingerBreadMan));
+ mes l("@@/10 @@", countitem(ChocolateBiscuit), getitemlink(ChocolateBiscuit)); // Found at Chocolate Slime: 4.00%
+ next;
+ select
+ l("Not now, thanks"),
+ l("To be honest, I have that with me!");
+
+ mes "";
+ if (@menu == 1)
+ goto L_Main;
+ if (@menu == 2) {
+ if (
+ countitem(Snowflake) < 120 ||
+ countitem(CaramelCandy) < 80 ||
+ countitem(GingerBreadMan) < 40 ||
+ countitem(ChocolateBiscuit) < 10
+ ) goto L_Lying;
+
+ inventoryplace Wreath, 1;
+ delitem Snowflake, 120;
+ delitem CaramelCandy, 80;
+ delitem GingerBreadMan, 40;
+ delitem ChocolateBiscuit, 10;
+ getitem Wreath, 1;
+ getexp 6500, 120;
+ setq1 SQuest_Spring, 1;
+ mesn;
+ mesq l("Yay yay! Many thanks! Here, take the reward as promised!");
+ next;
+ mesn;
+ mesq l("We can do this again on next spring!");
+ goto L_Main;
+ }
+
+ close;
+
+L_Lying:
+ mesn;
+ mesq l("Please don't lie to me...");
+ goto L_Main;
+
+OnInit:
+ .sex=G_MALE;
+ .distance=4;
+ end;
+
+}