summaryrefslogtreecommitdiff
path: root/npc/boss/throne.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/boss/throne.txt')
-rw-r--r--npc/boss/throne.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/boss/throne.txt b/npc/boss/throne.txt
index 784c51d4f..c34cbf6cd 100644
--- a/npc/boss/throne.txt
+++ b/npc/boss/throne.txt
@@ -2,7 +2,7 @@
// Author:
// Jesusalva
// Description:
-// Monster King Throne
+// Monster King Throne ($@MK_CHALLENGE)
boss,45,45,0 script #monsterthrone NPC_HIDDEN,0,0,{
end;
@@ -17,6 +17,7 @@ OnTouch:
// Controls the Event
OnBegin:
.CYCLES=0;
+ $@MK_CHALLENGE=true;
.MK=monster("boss", 45, 45, "The Monster King", MonsterKing, 1, .name$+"::OnVictory");
.@bhp=getunitdata(.MK, UDT_MAXHP);
setunitdata(.MK, UDT_MAXHP, .@bhp+50000+2000*.FAILS);
@@ -37,6 +38,7 @@ function CheckFinalAssault {
if (!siege_calcdiff(5)) {
kamibroadcast("You noobs, you all deserve to die!", "Monster King");
stopnpctimer;
+ $@MK_CHALLENGE=false;
// Clean Up
mapwarp("boss", "017-1", 120, 88);
killmonsterall("boss");
@@ -102,6 +104,7 @@ OnVictory:
// Not killed by a player? It doesn't counts, then
if (!playerattached())
end;
+ $@MK_CHALLENGE=false;
kamibroadcast("has just defeated the Monster King.", strcharinfo(0));
stopnpctimer;
mapwarp("boss", "017-1", 120, 88);