summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/constants.conf1
-rw-r--r--npc/boss/throne.txt5
2 files changed, 5 insertions, 1 deletions
diff --git a/db/constants.conf b/db/constants.conf
index c46df610b..e9319f9db 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -4157,6 +4157,7 @@ constants_db: {
NPC_YETI: 457
NPC_MONSTERKING: 500
+ NPC_AIRSHIP: 501
NPC_SOUL_NORMAL: 700
NPC_SOUL_DESERT: 701
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);