summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-18 10:32:57 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-18 10:32:57 -0300
commit10d1802d06a48eb062e5b51ff6f84407ce5c1f1b (patch)
tree795eab6fad133e62a8fea4b01f51d0cf13d875b4
parentc32016cbc79eaf3be380490fdc7a31d5df3357a2 (diff)
downloadserverdata-10d1802d06a48eb062e5b51ff6f84407ce5c1f1b.tar.gz
serverdata-10d1802d06a48eb062e5b51ff6f84407ce5c1f1b.tar.bz2
serverdata-10d1802d06a48eb062e5b51ff6f84407ce5c1f1b.tar.xz
serverdata-10d1802d06a48eb062e5b51ff6f84407ce5c1f1b.zip
Peter warns players when they are running out of time
-rw-r--r--npc/002-1/peter.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/002-1/peter.txt b/npc/002-1/peter.txt
index cf91ed1ab..1da6a26d0 100644
--- a/npc/002-1/peter.txt
+++ b/npc/002-1/peter.txt
@@ -60,6 +60,12 @@ L_NoCountDown:
doevent "Peter::OnReturnWin";
close;
+OnLowTime:
+ getmapxy(.@m$, .@x, .@y, 0);
+ if (.@m$ == "002-2")
+ dispbottom l("Time is running out... Hurry up!");
+ end;
+
L_Stop:
doevent "Peter::OnStop";
@@ -214,6 +220,7 @@ OnStartOutside:
$@RAT_SAILOR_DEATHS = PC_DIE_COUNTER;
initnpctimer;
warp "002-2", 48, 28;
+ addtimer(100000, "Peter::OnLowTime");
doevent "RattosControl::OnSpawn";
goto L_Quit;