summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-07 23:27:25 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-07 23:27:25 -0300
commit0dd6b9f6a0085aa85e0c83422607fe66413f9d24 (patch)
tree5b22f8f7a22de53b13bd06704860520bc45dc8e9 /npc
parentda7debe1622f98b60aa56c7702ce2c855ab0357c (diff)
downloadserverdata-0dd6b9f6a0085aa85e0c83422607fe66413f9d24.tar.gz
serverdata-0dd6b9f6a0085aa85e0c83422607fe66413f9d24.tar.bz2
serverdata-0dd6b9f6a0085aa85e0c83422607fe66413f9d24.tar.xz
serverdata-0dd6b9f6a0085aa85e0c83422607fe66413f9d24.zip
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.
Diffstat (limited to 'npc')
-rw-r--r--npc/018-6-3/main.txt2
-rw-r--r--npc/functions/main.txt1
2 files changed, 3 insertions, 0 deletions
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$;
}