summaryrefslogtreecommitdiff
path: root/npc/030-2/empty_boxes_helper.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
commitcf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch)
treef9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/030-2/empty_boxes_helper.txt
parent8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff)
downloadserverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip
Override
Diffstat (limited to 'npc/030-2/empty_boxes_helper.txt')
-rwxr-xr-xnpc/030-2/empty_boxes_helper.txt63
1 files changed, 63 insertions, 0 deletions
diff --git a/npc/030-2/empty_boxes_helper.txt b/npc/030-2/empty_boxes_helper.txt
new file mode 100755
index 00000000..d1ae18b0
--- /dev/null
+++ b/npc/030-2/empty_boxes_helper.txt
@@ -0,0 +1,63 @@
+
+030-2,140,41,0 script Urmas NPC328,{
+ callfunc "XmasStates";
+
+ if($@xmas_time)
+ goto L_XmasMain;
+ goto L_OffSeason;
+
+L_OffSeason:
+ mes "[Urmas]";
+ mes "\"It's nice to not need to find logs in such a hurry. I always seem to have problems every year.\"";
+ goto L_close;
+
+L_XmasMain:
+ if (@xmas_helper_bit) goto L_Helping;
+
+ mes "[Urmas]";
+ mes "\"Don't stand in the way! We have some serious problems here.\"";
+ goto L_close;
+
+L_Helping:
+ mes "[Urmas]";
+ mes "\"Ah, I see you're one of the seasonal helpers. Ok, listen to me.";
+ mes "\"We have a shortage on the empty present boxes. Don't ask me how that can happen!";
+ mes "Those paper-shufflers up there probably messed up the ordering or something. Pah.\"";
+ next;
+ mes "\"However, we need to fix it. I have only a few boxes left.";
+ mes "Bring me some wood, so I can make new boxes out of it.";
+ mes $@xmas_log_amount + " Raw Logs will do for one box.\"";
+ mes "";
+ if (countitem("RawLog") < $@xmas_log_amount)
+ mes "\"But I see you do not have enough with you anyway. Come back with some material please.\"";
+ if (countitem("RawLog") < $@xmas_log_amount) goto L_close;
+ next;
+ mes "\"How many boxes do you need?\"";
+ input @Amount;
+ if (@Amount <= 0)
+ goto L_close;
+ if (countitem("RawLog") < (@Amount * $@xmas_log_amount))
+ goto L_NoItems;
+ getinventorylist;
+ if (@inventorylist_count > 100)
+ goto L_FullInv;
+ delitem "RawLog", (@Amount * $@xmas_log_amount);
+ mes "[Urmas]";
+ mes "\"Alright! Good job, kid. I'll start to make some more boxes now.";
+ mes "Here, take this in the meanwhile and put some toys in it.\"";
+ getitem "OpenPresentBox", @Amount;
+ goto L_close;
+
+L_FullInv:
+ mes "\"You need some space to put the empty boxes.\"";
+ goto L_close;
+
+L_NoItems:
+ mes "[Urmas]";
+ mes "\"Eh? Are you kidding?\"";
+ goto L_close;
+
+L_close:
+ @Amount = 0;
+ close;
+}