From 66203e9bba74774457133d8df8e0f7dd7e11c566 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 29 Jul 2019 20:43:40 -0300 Subject: $@MK_CHALLENGE control variable and NPC_AIRSHIP --- npc/boss/throne.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'npc/boss/throne.txt') 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); -- cgit v1.2.3-60-g2f50