From e13dbed4e1fd416a35f7f449c6a4e7813fec005e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 29 Jul 2019 20:51:11 -0300 Subject: Add the Airship to LoF Village, officially allowing Monster King Challenge. --- npc/017-1/town.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'npc/017-1') diff --git a/npc/017-1/town.txt b/npc/017-1/town.txt index a475d1400..585d58860 100644 --- a/npc/017-1/town.txt +++ b/npc/017-1/town.txt @@ -8,3 +8,33 @@ OnTouch: EnterTown("LoF"); end; } + + +017-1,86,62,0 script #Airship NPC_AIRSHIP,{ + if ($@MK_CHALLENGE) { + mesc l("The following players are currently challenging the Monster King:"), 1; + .@c = getunits(BL_PC, .@players, false, "boss"); + for (.@i = 0; .@i < .@c; .@i++) { + mes "* "+strcharinfo(0, "", .@players[.@i]); + } + close; + } + mesc l("Challenge the Monster King?"), 1; + mesc l("Everyone in a 15x15 radius from this NPC will be warped!"), 1; + mesc l("This NPC is at coordinates 86,62"); + next; + if (askyesno() == ASK_YES) { + if (!$@MK_CHALLENGE) { + areawarp("017-1", 71, 47, 101, 77, "boss", 34, 32, 41, 35); + donpcevent("#monsterthrone::OnBegin"); + } + closeclientdialog; + } + close; + +OnInit: + .distance=15; + end; + +} + -- cgit v1.2.3-70-g09d2