summaryrefslogtreecommitdiff
path: root/npc/020-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-24 12:21:28 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-24 12:21:28 -0200
commit16c835f1024befb454709f7ee81958c7e9c68309 (patch)
treeb2d882286e058dd31a956ceaf2ab4977a40f56e5 /npc/020-1
parent3c134f89c339151a938555ef786fb04869e61f41 (diff)
downloadserverdata-16c835f1024befb454709f7ee81958c7e9c68309.tar.gz
serverdata-16c835f1024befb454709f7ee81958c7e9c68309.tar.bz2
serverdata-16c835f1024befb454709f7ee81958c7e9c68309.tar.xz
serverdata-16c835f1024befb454709f7ee81958c7e9c68309.zip
Knit Hat quest, based on Luffyx Summer Shorts quest. Fix bugs on the later.
Diffstat (limited to 'npc/020-1')
-rw-r--r--npc/020-1/serge.txt52
1 files changed, 51 insertions, 1 deletions
diff --git a/npc/020-1/serge.txt b/npc/020-1/serge.txt
index dd921e1aa..da67dff3c 100644
--- a/npc/020-1/serge.txt
+++ b/npc/020-1/serge.txt
@@ -27,7 +27,7 @@ L_Main:
L_OutOfSeason:
mesn;
mesq l("Hmm, Nivalis is a wonderful place to live in! Although it is a tad too cold on Winter...");
- close;
+ goto L_Main;
L_QuestDisabled:
mesn;
@@ -35,6 +35,56 @@ L_QuestDisabled:
mesc l("The @@ quest is disabled during Christmas event.", getitemlink(KnitHat));
close;
+L_WinterQuest:
+ next;
+ mesn;
+ mesq l("Hey, do you know what is good on this harsh winter? A @@!", getitemlink(KnitHat));
+ 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 KnitHat, 1;
+ delitem Snowflake, 120;
+ delitem CaramelCandy, 80;
+ delitem GingerBreadMan, 40;
+ delitem ChocolateBiscuit, 10;
+ getitem KnitHat, 1;
+ getexp 6500, 120;
+ setq1 SQuest_Winter, 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 winter!");
+ goto L_Main;
+ }
+
+ close;
+
+L_Lying:
+ mesn;
+ mesq l("Please don't lie to me...");
+ goto L_Main;
+
OnInit:
.@npcId = getnpcid(.name$);
setunitdata(.@npcId, UDT_HEADTOP, CommunityShirt);