summaryrefslogtreecommitdiff
path: root/npc/011-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-09 21:51:44 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-09 21:51:44 -0300
commit10b87795e7d26114c75074ad4b1164dff8ae7ff0 (patch)
tree22eff6033bb721c0c7398bee16d59e0f3ef0e4a1 /npc/011-4
parent63c8045dcaafacb51d6a108411b5ed0b6d108694 (diff)
downloadserverdata-10b87795e7d26114c75074ad4b1164dff8ae7ff0.tar.gz
serverdata-10b87795e7d26114c75074ad4b1164dff8ae7ff0.tar.bz2
serverdata-10b87795e7d26114c75074ad4b1164dff8ae7ff0.tar.xz
serverdata-10b87795e7d26114c75074ad4b1164dff8ae7ff0.zip
This is actually a very lame code (incl. cost logic). Anyway, Zambacutou released
Diffstat (limited to 'npc/011-4')
-rw-r--r--npc/011-4/chest.txt21
1 files changed, 16 insertions, 5 deletions
diff --git a/npc/011-4/chest.txt b/npc/011-4/chest.txt
index 0d273f946..4db26ee45 100644
--- a/npc/011-4/chest.txt
+++ b/npc/011-4/chest.txt
@@ -19,14 +19,25 @@
switch (season())
{
case SUMMER: .@item=any(CherryCocktail, CactusCocktail, AppleCocktail); .@prize=0; break;
- case WINTER: .@item=any(Snowflake, CaramelCandy, GingerBreadMan, ChocolateBiscuit); .@prize=0; break;
+ case WINTER: .@item=any(Snowflake, CaramelCandy); .@prize=0; break;
case SPRING: .@item=any(Rose, Tulip, Blueberries); .@prize=0; break;
- case AUTUMN: .@item=any(Lawncandy, Saulcandy, Poocandy, Mashmallow); .@prize=0; break;
+ case AUTUMN: .@item=any(Lawncandy, Saulcandy, Poocandy); .@prize=Zambacutou; break;
}
mesc l("Maybe %s %s will do it.", fnum(1000), .@item);
- next;
- mesn l("Elli");
- mesq l("Not today, I still haven't decided the prize!");
+ if (!.@prize) {
+ next;
+ mesn l("Elli");
+ mesq l("Not today, I still haven't decided the prize!");
+ close;
+ }
+ if (countitem(.@item) < 1000) close;
+ mesc l("Deliver the items to the Chest?"), 1;
+ if (askyesno() == ASK_NO) close;
+ delitem .@item, 1000;
+ getitem .@prize, 1;
+ setq SQuest_ElliChest, (getq(SQuest_ElliChest) | .@season);
+ mes "";
+ mesc l("You found a(n) %s inside.", getitemlink(.@prize));
close;
OnInit: