summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/042-2/boss.txt27
1 files changed, 11 insertions, 16 deletions
diff --git a/npc/042-2/boss.txt b/npc/042-2/boss.txt
index a5e46b574..d9f11a795 100644
--- a/npc/042-2/boss.txt
+++ b/npc/042-2/boss.txt
@@ -22,27 +22,22 @@ OnTouch:
end;
OnArrival:
- debugmes "Arrival detected";
+ //debugmes "Arrival detected";
.@m$=instance_mapname("042-2");
.@g=getcharid(2);
if (.@g < 1)
percentheal -100, -100;
- debugmes getmap();
+ //debugmes getmap();
if (getmap() != "042-2@"+.@g)
end;
- debugmes $@KAMELOT_WAVE[.@g];
+ //debugmes $@KAMELOT_WAVE[.@g];
if ($@KAMELOT_WAVE[.@g] > 3)
end;
$@KAMELOT_WAVE[.@g]=100;
setd("$@GTEMP2_"+.@m$, $KAMELOT_PC[.@g]);
setd("$@GTEMP3_"+.@m$, $KAMELOT_MX[.@g]);
initnpctimer;
- debugmes "Timer Started";
- //if ($@KAMELOT_WAVE == 0)
- // goto OnKillMob;
- // TODO: Fire dialog
- // TODO: Stun yourself for cutscene
- // ...
+ //debugmes "Timer Started";
end;
OnEmergency:
@@ -119,7 +114,7 @@ OnTimer180000:
.@avg=getd("$@GTEMP3_"+.@m$);
kdoor0422Spawn(.@gcount*3, 20, 24, 59, 59);
.@avg=getd("$@GTEMP3_"+.@m$);
- debugmes "BOSS - %d, map %s (power %d)", .@gcount, .@m$, .@avg;
+ //debugmes "BOSS - %d, map %s (power %d)", .@gcount, .@m$, .@avg;
.@mob=monster(.@m$, 34, 26, strmobinfo(1, GeneralKrukan), GeneralKrukan, 1, .@n$+"::OnKillBoss");
// Reconfigure the monster
setunitdata(.@mob, UDT_LEVEL, .@avg);
@@ -150,18 +145,18 @@ OnTimer180000:
end;
OnTimer185000:
- debugmes "Timer Running";
+ //debugmes "Timer Running";
.@m$=instance_mapname("042-2");
.@mob=getd("$@GTEMP_"+.@m$);
.@gdcount=getd("$@GTEMP2_"+.@m$);
.@ratio=getunitdata(.@mob, UDT_HP)*10/getunitdata(.@mob, UDT_MAXHP);
- debugmes "Ratio %d/%d", .@ratio, getd("$@GTEMP1_"+.@m$);
+ //debugmes "Ratio %d/%d", .@ratio, getd("$@GTEMP1_"+.@m$);
if (.@ratio < getd("$@GTEMP1_"+.@m$)) {
mapannounce .@m$, "General Krukan : "+any("Charge!", "To the Abyss with you already!", "Kill them already!", "More of them are coming!", "Minions, ATTACK!"), 0;
kdoor0422Spawn(.@gcount*2, 20, 24, 59, 59);
setd("$@GTEMP1_"+.@m$, .@ratio);
}
- debugmes "Restart timer";
+ //debugmes "Restart timer";
setnpctimer 180001;
end;
@@ -233,7 +228,7 @@ OnKillBoss:
end;
function kdoor0422Spawn {
- debugmes "Spawning";
+ //debugmes "Spawning";
.@label$=instance_npcname(.name$)+"::OnKillMob";
.@gcount=getarg(0);
.@x1=getarg(1);
@@ -242,7 +237,7 @@ function kdoor0422Spawn {
.@y2=getarg(4);
.@avg=getd("$@GTEMP3_"+.@m$);
.@m$=instance_mapname("042-2");
- debugmes "Total %d, map %s (power %d)", .@gcount, .@m$, .@avg;
+ //debugmes "Total %d, map %s (power %d)", .@gcount, .@m$, .@avg;
freeloop(true);
for (.@i=0; .@i < .@gcount; .@i++) {
.@mobId=any(CursedSoldier, CursedArcher); // 50-50 ratio
@@ -273,7 +268,7 @@ function kdoor0422Spawn {
// Loop through
}
freeloop(false);
- debugmes "Done spawn 042-2";
+ //debugmes "Done spawn 042-2";
return;
}