summaryrefslogtreecommitdiff
path: root/world
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-01-30 16:45:06 -0300
committerJesusaves <cpntb1@ymail.com>2022-03-07 22:20:41 -0300
commitf64a23064f64fc534e7cdf7afebc3c4e7060a2ee (patch)
tree2c61eee9245eff50a533fbe4a90e0aee0c2376d6 /world
parent6c40ba0f81d27f1cf4839a80a33febcabf44195b (diff)
downloadserverdata-f64a23064f64fc534e7cdf7afebc3c4e7060a2ee.tar.gz
serverdata-f64a23064f64fc534e7cdf7afebc3c4e7060a2ee.tar.bz2
serverdata-f64a23064f64fc534e7cdf7afebc3c4e7060a2ee.tar.xz
serverdata-f64a23064f64fc534e7cdf7afebc3c4e7060a2ee.zip
When Prsm is online, and only when Prsm is online, Bob can warp you back.
This is to prevent abuse e.g. talk to Bob to quick travel to Swamps.
Diffstat (limited to 'world')
-rw-r--r--world/map/npc/009-1/constable.txt23
-rw-r--r--world/map/npc/annuals/2022.txt10
2 files changed, 33 insertions, 0 deletions
diff --git a/world/map/npc/009-1/constable.txt b/world/map/npc/009-1/constable.txt
index d1c71f34..fe2e75e5 100644
--- a/world/map/npc/009-1/constable.txt
+++ b/world/map/npc/009-1/constable.txt
@@ -2,6 +2,7 @@
009-1,55,34,0|script|Constable Bob|419
{
+ if ($@PRSM_ONLINE && $@PRSM_PARTY) goto L_Party;
npctalk strnpcinfo(0), "I've acquired mass warp powers; Right after the day of the fool, wear something cool.";
mes "[Constable Bob]";
mes "\"Hello.\"";
@@ -11,6 +12,28 @@
close;
/* 2022 Blackbox */
+L_Party:
+ mes "[Constable Bob]";
+ mes "\"I'm holding a party for Prsm, do you want to come? You won't be eligible for any prizes, though.\"";
+ next;
+ menu
+ "Yeah", L_P22Y,
+ "Nah", L_P22N;
+
+L_P22Y:
+ warp "003-1", 45, 24;
+ mapmask 1 | 2;
+ close;
+
+L_P22N:
+ mes "[Constable Bob]";
+ mes "\"A pity. Anyway.\"";
+ mes "\"I've been getting complaints of lawlessness in Hurnscald recently, so I thought I'd come down here myself and explain the rules.\"";
+ mes "\"Please make sure that you follow them!\"";
+ next;
+ callfunc "GameRules";
+ close;
+
L_End:
end;
diff --git a/world/map/npc/annuals/2022.txt b/world/map/npc/annuals/2022.txt
index d1e473fa..31b48971 100644
--- a/world/map/npc/annuals/2022.txt
+++ b/world/map/npc/annuals/2022.txt
@@ -17,6 +17,7 @@ L_Warn:
goto L_Prompt;
L_Prompt:
+ if (strcharinfo(0) == "Prsm") set $@PRSM_ONLINE, 0;
next;
menu
"I'll stay a bit longer.", L_Close,
@@ -80,6 +81,7 @@ L_Candor:
close;
}
+////////////////////////////////////////////////
function|script|P22Login
{
if (gettime(7) != 2022) goto L_Return;
@@ -92,12 +94,20 @@ L_Warp:
set #X21, 5;
warp "003-1", 45, 24;
mapmask 1 | 2;
+ if (strcharinfo(0) == "Prsm") goto L_Prsm;
+ return;
+
+L_Prsm:
+ npctalk "Constable Bob#P21", "Prsm, congratulations for 11 years in TMW Staff! \o/";
+ set $@PRSM_ONLINE, 1;
+ sc_end(SC_HIDE);
return;
L_Return:
return;
}
+////////////////////////////////////////////////
003-1,41,24,0|script|Constable Bob#P21|419
{
if (!$@PRSM_PARTY) goto L_Over;