summaryrefslogtreecommitdiff
path: root/npc/042-1/door.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/042-1/door.txt')
-rw-r--r--npc/042-1/door.txt27
1 files changed, 24 insertions, 3 deletions
diff --git a/npc/042-1/door.txt b/npc/042-1/door.txt
index 110a0321d..fd1386b6c 100644
--- a/npc/042-1/door.txt
+++ b/npc/042-1/door.txt
@@ -43,7 +43,7 @@ OnKillBoss:
end;
OnKillMob:
- .@label$=instance_npcname(.name$)+"::OnKillMob");
+ .@label$=instance_npcname(.name$)+"::OnKillMob";
// Oh noes! No player attached D:
// This kill is meaningless, RESPAWN IT, RESPAWN IT
if (!playerattached()) {
@@ -76,7 +76,7 @@ OnKillMob:
// Maybe we should advance the wave
if ($@KAMELOT_WAVE == 3) {
- debugmes "Boss Spawn";
+ debugmes "Kamelot %d: Boss Spawn", .@g;
initnpctimer;
setd("$@GTEMP_"+getmap(), .@avg);
.@mcount=.@gcount;
@@ -136,7 +136,7 @@ OnTimer5000:
end;
OnTimer10000:
- .@label$=instance_npcname(.name$)+"::OnKillBoss");
+ .@label$=instance_npcname(.name$)+"::OnKillBoss";
.@m$=instance_mapname("042-1");
mapannounce .@m$, "I'll get rid of you myself!!", 0;
.@mobId=any(CursedSoldier, CursedArcher);
@@ -168,5 +168,26 @@ OnTimer10000:
setunitdata(.@mob, UDT_CRIT, rand2(.@min, .@max));
stopnpctimer;
end;
+
+OnArrival:
+ if ($@KAMELOT_WAVE == 0)
+ goto OnKillMob;
+ end;
+}
+
+
+// Required exit
+042-1,55,100,0 script #KDoor0421B NPC_HIDDEN,0,0,{
+ end;
+
+OnTouch:
+ .@g=getcharid(2);
+ if ($KAMELOT_KEYMASK[.@g] & 16) {
+ dispbottom l("WARNING: If you walk out the main gate you WON'T be able to return!");
+ warp "042-0@"+.@g, 69, 25;
+ } else {
+ dispbottom l("Oh noes! The guards locked the door!");
+ }
+ end;
}