From 16c835f1024befb454709f7ee81958c7e9c68309 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 24 Dec 2018 12:21:28 -0200 Subject: Knit Hat quest, based on Luffyx Summer Shorts quest. Fix bugs on the later. --- npc/020-1/serge.txt | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) (limited to 'npc/020-1') 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); -- cgit v1.2.3-60-g2f50