summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-29 20:51:11 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-29 20:51:11 -0300
commite13dbed4e1fd416a35f7f449c6a4e7813fec005e (patch)
tree086453cd76e890dafe90950c8abbffadb5238c96
parent3af9de993f36b69fb7da3c4eacae5e16a5fcc2ec (diff)
downloadserverdata-e13dbed4e1fd416a35f7f449c6a4e7813fec005e.tar.gz
serverdata-e13dbed4e1fd416a35f7f449c6a4e7813fec005e.tar.bz2
serverdata-e13dbed4e1fd416a35f7f449c6a4e7813fec005e.tar.xz
serverdata-e13dbed4e1fd416a35f7f449c6a4e7813fec005e.zip
Add the Airship to LoF Village, officially allowing Monster King Challenge.
-rw-r--r--npc/017-1/town.txt30
-rw-r--r--npc/boss/throne.txt5
2 files changed, 33 insertions, 2 deletions
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;
+
+}
+
diff --git a/npc/boss/throne.txt b/npc/boss/throne.txt
index c34cbf6cd..048105a79 100644
--- a/npc/boss/throne.txt
+++ b/npc/boss/throne.txt
@@ -9,8 +9,8 @@ boss,45,45,0 script #monsterthrone NPC_HIDDEN,0,0,{
OnTouch:
if (strcharinfo(2) == "Monster King") end;
- warp "boss", 45, 48;
- percentheal -15,0;
+ //warp "boss", 45, 48;
+ percentheal -5,0;
dispbottom "The throne is cursed, only the Monster King may seat on it.";
end;
@@ -109,6 +109,7 @@ OnVictory:
stopnpctimer;
mapwarp("boss", "017-1", 120, 88);
$GAME_STORYLINE=5;
+ disablenpc "#Airship";
// Without the Monster King to rule monsters... TODO Isbamuth
setbattleflag("monster_ai", 0x209);
setbattleflag("monster_active_enable", false);