From 0dd6b9f6a0085aa85e0c83422607fe66413f9d24 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Sep 2019 23:27:25 -0300 Subject: How did I ignored the existence of unequipbyid and getmapname? Anyway, add boss fight music to 018-6-3. Hopefully this will become a norm. --- npc/018-6-3/main.txt | 2 ++ npc/functions/main.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/npc/018-6-3/main.txt b/npc/018-6-3/main.txt index 0017093cc..2820ca592 100644 --- a/npc/018-6-3/main.txt +++ b/npc/018-6-3/main.txt @@ -206,6 +206,7 @@ OnFinalRoom: .@x2=106; .@y2=97; .@id=256; + changemusic getmap(), "let_the_battles_begin.ogg"; mapannounce getmap(), col(l("FINAL BOSS FIGHT - WATCH OUT!"), 1), bc_map|bc_pc; .@mi=NightDragon; @boss=monster(getmap(), 90, 89, strmobinfo(1, .@mi), .@mi, 1, instance_npcname(.name$)+"::OnKillBoss"); @@ -272,6 +273,7 @@ OnKill256: end; OnKillBoss: + changemusic getmap(), "Misty_Shrine.ogg"; if (playerattached()) { enablenpc instance_npcname("???#01863"); getexp 200000, 10000; diff --git a/npc/functions/main.txt b/npc/functions/main.txt index b54401e02..2bfb6e29a 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -282,6 +282,7 @@ function script msObjective { function script getmap { if (getmapxy(.@mapName$, .@xpos, .@ypos, getarg(0,0)) != 0) return false; + // TODO: Maybe use getmapname() instead of getmapxy? return .@mapName$; } -- cgit v1.2.3-60-g2f50