summaryrefslogtreecommitdiff
path: root/npc/001-10
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-10')
-rw-r--r--npc/001-10/mapflags.txt1
-rw-r--r--npc/001-10/scripts.txt18
2 files changed, 17 insertions, 2 deletions
diff --git a/npc/001-10/mapflags.txt b/npc/001-10/mapflags.txt
index ac4e7b798..b67365957 100644
--- a/npc/001-10/mapflags.txt
+++ b/npc/001-10/mapflags.txt
@@ -1 +1,2 @@
001-10 mapflag zone MMO
+001-10 mapflag pvp
diff --git a/npc/001-10/scripts.txt b/npc/001-10/scripts.txt
index b144fe178..09bb4f0c9 100644
--- a/npc/001-10/scripts.txt
+++ b/npc/001-10/scripts.txt
@@ -5,19 +5,33 @@
// Description:
// Scripts for 001-10: Snipers, Bottles and Warps
+// Boss room
001-10,89,43,0 script #COD_BossRoomCheck NPC_NO_SPRITE,0,0,{
end;
OnTouch:
if (!@COD_CHECKPOINT) {
dispbottom l("Magic Barrier is active. You must give a whole circle on the desert to break it.");
} else {
- // warp
+ deltimer("#COD_BossRoomCheck::OnTimeDefeat");
+ addtimer(300000,"#COD_BossManager::OnTimeDefeat");
+ // You can't return now!
+ warp "001-10-1", any(57, 58, 59), any(74, 75);
dispbottom l("A dangerous boss room, keep your guard up!");
}
end;
+
+OnTimeDefeat:
+ @COD_CHECKPOINT=0;
+ if (getmap() ~= "001-10") {
+ warp "018-2-1", 24, 29;
+ dispbottom l("COD: Ran out of time!");
+ }
+ end;
+
}
-001-10,132,106,0 script #COD_Checkpoint106 NPC_NO_SPRITE,0,0,{
+// Magic Barrier
+001-10,132,106,0 script #COD_Checkpoint106 NPC_NO_SPRITE,0,7,{
end;
OnTouch:
@COD_CHECKPOINT=1;