summaryrefslogtreecommitdiff
path: root/world/map/npc/items/tmwgift.txt
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-04-08 16:47:30 -0400
committergumi <git@gumi.ca>2019-04-08 16:47:34 -0400
commit6b9477145428ef2aa9bd1b146ab43e9f365fa70d (patch)
treebd96fb8b37ddac3438c3ca8df2eb0af2c1f0c582 /world/map/npc/items/tmwgift.txt
parent604d1c7945c0ecab7a1651f24a9f970210834a22 (diff)
downloadserverdata-6b9477145428ef2aa9bd1b146ab43e9f365fa70d.tar.gz
serverdata-6b9477145428ef2aa9bd1b146ab43e9f365fa70d.tar.bz2
serverdata-6b9477145428ef2aa9bd1b146ab43e9f365fa70d.tar.xz
serverdata-6b9477145428ef2aa9bd1b146ab43e9f365fa70d.zip
add the anniversary hatstmp
Co-authored-by: Jesusaves <cpntb1@ymail.com> Co-authored-by: Micksha <Micksha@users.noreply.github.com>
Diffstat (limited to 'world/map/npc/items/tmwgift.txt')
-rw-r--r--world/map/npc/items/tmwgift.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/world/map/npc/items/tmwgift.txt b/world/map/npc/items/tmwgift.txt
new file mode 100644
index 00000000..ebc3f7b6
--- /dev/null
+++ b/world/map/npc/items/tmwgift.txt
@@ -0,0 +1,32 @@
+function|script|MaybeAnnounceBirthday
+{
+ if (gettime(7) == 2019 && gettime(6) == 4 && gettime(5) == 11)
+ goto L_B15;
+ return;
+
+L_B15:
+ announce "It is TMW's 15th Anniversary! Log out and log back in to [@@https://themanaworld.org/15|receive your present@@]", 0;
+ return;
+}
+
+function|script|MaybeGiveBirthday
+{
+ if ((gettime(7) == 2019) && (gettime(6) == 4) &&
+ ((gettime(5) == 11) || (gettime(5) == 12) || (gettime(5) == 13)) &&
+ #TMW15 == 0)
+ goto L_Give;
+ return;
+
+L_Give:
+ set #TMW15, gettimetick(2);
+ getitem "TMWBirthdayGift", 1;
+ message strcharinfo(0), "Server : ##BIt's TMW's 15th Anniversary! You have [@@https://themanaworld.org/15|received a present@@]!";
+ return;
+}
+
+function|script|TMWBirthdayGift
+{
+ setarray .@gifts$, "RedPresentHat", "GreenPresentHat", "BluePresentHat", "YellowPresentHat";
+ getitem .@gifts$[rand(4)], 1;
+ return;
+}