summaryrefslogtreecommitdiff
path: root/world/map/npc/030-2/shipping_helper.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2013-12-26 07:57:21 -0800
committerwushin <pasekei@gmail.com>2013-12-26 07:57:21 -0800
commit06c8dd894939d096bc75f3b1c298cf310be7e5fe (patch)
tree1122db272deff33e017afd9011e6c92ffd3eea59 /world/map/npc/030-2/shipping_helper.txt
parent91498af8d7e3f347ef5bcc3a9b1dc7d91d52fd61 (diff)
parentcd71949def7c2c9b86991b92f4462136671757a3 (diff)
downloadserverdata-06c8dd894939d096bc75f3b1c298cf310be7e5fe.tar.gz
serverdata-06c8dd894939d096bc75f3b1c298cf310be7e5fe.tar.bz2
serverdata-06c8dd894939d096bc75f3b1c298cf310be7e5fe.tar.xz
serverdata-06c8dd894939d096bc75f3b1c298cf310be7e5fe.zip
Merge pull request #62 from wushin/Xmas-Annual
Annual Xmas Event
Diffstat (limited to 'world/map/npc/030-2/shipping_helper.txt')
-rw-r--r--world/map/npc/030-2/shipping_helper.txt119
1 files changed, 119 insertions, 0 deletions
diff --git a/world/map/npc/030-2/shipping_helper.txt b/world/map/npc/030-2/shipping_helper.txt
new file mode 100644
index 00000000..573ed2fc
--- /dev/null
+++ b/world/map/npc/030-2/shipping_helper.txt
@@ -0,0 +1,119 @@
+// Annual Xmas
+// Author: Jenalya, wushin
+
+030-2.gat,30,88,0|script|Mo|328,
+{
+ set $@npc_name$, "Mo";
+ callfunc "helpersPacking";
+ close;
+}
+
+030-2.gat,33,88,0|script|Lorrie|329,
+{
+ set $@npc_name$, "Lorrie";
+ callfunc "helpersPacking";
+ close;
+}
+
+030-2.gat,37,88,0|script|Curlee|329,
+{
+ set $@npc_name$, "Curlee";
+ callfunc "helpersPacking";
+ close;
+}
+
+function|script|helpersPacking|,
+{
+ callfunc "XmasStates";
+
+ if($@xmas_time)
+ goto L_XmasMain;
+ goto L_OffSeason;
+
+L_OffSeason:
+ mes "[" + $@npc_name$ + "]";
+ mes "\"Boy it sure is grand to goof off all day with no presents to wrap.\"";
+ goto L_Close;
+
+L_XmasMain:
+ mes "[" + $@npc_name$ + "]";
+ mes "Hello, hello, hello!";
+
+ if(@xmas_helper_bit) goto L_Helping;
+
+ mes "\"Real busy now, gotta go or the boss will have my head. Back to work knuckleheads!\"";
+ goto L_Close;
+
+L_Helping:
+ mes "\"I am " + $@npc_name$ + ". We are in charge of getting all the presents together, but we messed up and now all our supplies are ruined. Can you help us out?\"";
+ mes "\"We need wrapping paper and empty boxes! We can provide the gifts!\"";
+ next;
+
+L_Main:
+ mes "\"Do you have any supplies we can use?\"";
+ next;
+ menu
+ "What? err... I just wanted to say hello.",-,
+ "Purple Wrapping Paper and an empty box.",L_Purple,
+ "Blue Wrapping Paper and an empty box.",L_Blue,
+ "Green Wrapping Paper and an empty box.",L_Green,
+ "Yellow Wrapping Paper and an empty box.",L_Yellow,
+ "White Wrapping Paper and an empty box.",L_White;
+ goto L_Close;
+
+L_Purple:
+ set @wrap$, "PurpleWrap";
+ set @present_name$, "PurplePresentBox";
+ goto L_Gift;
+
+L_Blue:
+ set @wrap$, "BlueWrap";
+ set @present_name$, "BluePresentBox";
+ goto L_Gift;
+
+L_Green:
+ set @wrap$, "GreenWrap";
+ set @present_name$, "GreenPresentBox";
+ goto L_Gift;
+
+L_Yellow:
+ set @wrap$, "YellowWrap";
+ set @present_name$, "YellowPresentBox";
+ goto L_Gift;
+
+L_White:
+ set @wrap$, "WhiteWrap";
+ set @present_name$, "WhitePresentBox";
+ goto L_Gift;
+
+L_Gift:
+ if ($@xmas_wrap_amount > countitem(@wrap$))
+ goto L_NotEnough;
+ if ($@xmas_empty_box_amount > countitem("OpenPresentBox"))
+ goto L_NotEnough;
+ getinventorylist;
+ if ((@inventorylist_count == 100) || (checkweight(@present_name$, $@xmas_wrap_reward) == 0))
+ goto L_FullInv;
+ delitem "OpenPresentBox", $@xmas_empty_box_amount;
+ delitem @wrap$, $@xmas_wrap_amount;
+ getitem @present_name$, $@xmas_ship_present_amount;
+ goto L_Give;
+
+L_Give:
+ mes "\"Ok, here is the present. Make sure to drop these off at the warehouse.\"";
+ goto L_Main;
+
+L_NotEnough:
+ mes "\"O wiseguy, huh? Why don't you come back when you got all the supplies you knucklehead.\"";
+ goto L_Main;
+
+L_FullInv:
+ mes "\"Where you going to put this? In your ear? Come back when you have more space in your inventory.\"";
+ goto L_Main;
+
+L_Close:
+ mes "\"Ok, back to work you two, we have to make up lost time for your antics.\"";
+ set @wrap$, "";
+ set @present_name$, "";
+ close;
+}