From ba8e167c4237e91dbd009c21577c815cc5435d42 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 30 Jan 2022 16:17:59 -0300 Subject: Work with mapmasks and set variable as the event duration is now two days. The event had to be extended because Prsm usually doesn't logins on Saturdays. --- world/map/npc/003-1/npcs.txt | 1 + world/map/npc/annuals/2022.txt | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/world/map/npc/003-1/npcs.txt b/world/map/npc/003-1/npcs.txt index 1aa0aff9..833c8ffd 100644 --- a/world/map/npc/003-1/npcs.txt +++ b/world/map/npc/003-1/npcs.txt @@ -1,5 +1,6 @@ 003-1,27,73,0|script|Tybalt#2006|184 { + if ($@PRSM_PARTY) message strcharinfo(0), strnpcinfo(1) + " : Prsm is one of the eldest clients on The Mana World Bank, of course I would come to his party."; set @npcname$, "Tybalt"; callfunc "Banker"; close; diff --git a/world/map/npc/annuals/2022.txt b/world/map/npc/annuals/2022.txt index 16dfa948..d1e473fa 100644 --- a/world/map/npc/annuals/2022.txt +++ b/world/map/npc/annuals/2022.txt @@ -91,6 +91,7 @@ function|script|P22Login L_Warp: set #X21, 5; warp "003-1", 45, 24; + mapmask 1 | 2; return; L_Return: @@ -99,6 +100,8 @@ L_Return: 003-1,41,24,0|script|Constable Bob#P21|419 { + if (!$@PRSM_PARTY) goto L_Over; + mapmask 1 | 2; 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; @@ -110,6 +113,11 @@ L_Return: 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; +L_Over: + mes "[Constable Bob]"; + mes "\"The party is over; Please leave with the south gate before the developers seal it off again.\""; + close; + OnInit: goto OnClock0000; -- cgit v1.2.3-70-g09d2