summaryrefslogtreecommitdiff
path: root/npc/boss/throne.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-29 20:43:40 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-29 20:43:40 -0300
commit66203e9bba74774457133d8df8e0f7dd7e11c566 (patch)
tree4cf2864135dccf008f3d32bac17734aae04aa9eb /npc/boss/throne.txt
parent0a54c5c7cce42237a4403153666e7126112d14f2 (diff)
downloadserverdata-66203e9bba74774457133d8df8e0f7dd7e11c566.tar.gz
serverdata-66203e9bba74774457133d8df8e0f7dd7e11c566.tar.bz2
serverdata-66203e9bba74774457133d8df8e0f7dd7e11c566.tar.xz
serverdata-66203e9bba74774457133d8df8e0f7dd7e11c566.zip
$@MK_CHALLENGE control variable and NPC_AIRSHIP
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);