summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-01-30 16:13:18 -0300
committerJesusaves <cpntb1@ymail.com>2022-03-07 22:20:40 -0300
commitd527711f2d72e4806d96132e99433eba68a44a8a (patch)
tree81133b7219f2b917f01394742d6cff86513652a0
parent314f816a2aa4e27dca82415c63cd2858eacacac3 (diff)
downloadclassic-serverdata-d527711f2d72e4806d96132e99433eba68a44a8a.tar.gz
classic-serverdata-d527711f2d72e4806d96132e99433eba68a44a8a.tar.bz2
classic-serverdata-d527711f2d72e4806d96132e99433eba68a44a8a.tar.xz
classic-serverdata-d527711f2d72e4806d96132e99433eba68a44a8a.zip
Add the party host
-rw-r--r--world/map/npc/annuals/2022.txt48
-rw-r--r--world/map/npc/functions/global_event_handler.txt1
2 files changed, 49 insertions, 0 deletions
diff --git a/world/map/npc/annuals/2022.txt b/world/map/npc/annuals/2022.txt
index a097faf1..16dfa948 100644
--- a/world/map/npc/annuals/2022.txt
+++ b/world/map/npc/annuals/2022.txt
@@ -80,4 +80,52 @@ L_Candor:
close;
}
+function|script|P22Login
+{
+ if (gettime(7) != 2022) goto L_Return;
+ if (gettime(6) != 4) goto L_Return;
+ if (gettime(5) != 2 && gettime(5) != 3) goto L_Return;
+ if (#X21 < 5) goto L_Warp;
+ return;
+
+L_Warp:
+ set #X21, 5;
+ warp "003-1", 45, 24;
+ return;
+
+L_Return:
+ return;
+}
+
+003-1,41,24,0|script|Constable Bob#P21|419
+{
+ mes "[Constable Bob]";
+ mes "\"Hello, and welcome to the celebration I've prepared for my best friend and comrade in keeping The Mana World safe: ##BPrsm##b.\"";
+ next;
+ mes "[Constable Bob]";
+ mes "\"Prsm has enforced the laws for ##Beleven years##b, that's way longer than me. Not to say how he have been around for at least fifteen.\"";
+ mes "\"This may be just my seventh year on staff, but I must admit that working with Prsm made the most wonderful years I had. I couldn't ask for a better partner.\"";
+ next;
+ mes "[Constable Bob]";
+ mes "\"Which is why I asked the admins for mass warp powers and the devs to prepare a party; this is the least I could do for my friend. Please enjoy yourself while you're here, and once you're done, you can leave with the south gate.\"";
+ close;
+
+OnInit:
+ goto OnClock0000;
+
+OnClock0000:
+ if (gettime(7) != 2022) goto L_None;
+ if (gettime(6) != 4) goto L_None;
+ if (gettime(5) != 2 && gettime(5) != 3) goto L_Off;
+ set $@PRSM_PARTY, 1;
+ end;
+
+L_Off:
+ set $@PRSM_PARTY, 0;
+ end;
+
+L_None:
+ end;
+}
+
diff --git a/world/map/npc/functions/global_event_handler.txt b/world/map/npc/functions/global_event_handler.txt
index 8497ef29..00a22e27 100644
--- a/world/map/npc/functions/global_event_handler.txt
+++ b/world/map/npc/functions/global_event_handler.txt
@@ -17,6 +17,7 @@ OnPCLoginEvent:
callfunc "MaybeGiveBirthday";
callfunc "MiriamExpire"; // force the speed skill quest to expire
callfunc "ConvertChristmas21"; // Christmas 2021
+ callfunc "P22Login"; // Party 2022
// add more here
set @login_event, 2;
end;