summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-29 11:26:36 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-29 11:26:36 -0300
commit3d09c81da1d9940c1682333ee07c293d00a7be24 (patch)
tree0d740aee8de4739f0f4f1afbd3127b4f43f5efd7
parentcbbf95462972c3a8274f3fef6a3f3a258e41a5e7 (diff)
downloadserverdata-3d09c81da1d9940c1682333ee07c293d00a7be24.tar.gz
serverdata-3d09c81da1d9940c1682333ee07c293d00a7be24.tar.bz2
serverdata-3d09c81da1d9940c1682333ee07c293d00a7be24.tar.xz
serverdata-3d09c81da1d9940c1682333ee07c293d00a7be24.zip
Just kidding, boss death should be handled by a global NPC imho
-rw-r--r--npc/012-1/guards.txt16
-rw-r--r--npc/functions/siege.txt21
2 files changed, 22 insertions, 15 deletions
diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt
index 8039a5ca3..4e72678fe 100644
--- a/npc/012-1/guards.txt
+++ b/npc/012-1/guards.txt
@@ -601,20 +601,6 @@ OnRespawn:
makeitem StrangeCoin, 1, .@m$, .@x, .@y;
end;
-// Boss Death Labels
-OnLieutenantDeath:
- getitem StrangeCoin, 1;
- mapannounce("012-1", l("##2The Monster Lieutenant was defeated by @@!", strcharinfo(0)), bc_map);
- $MK_TEMPVAR+=1;
- end;
-
-OnColonelDeath:
- getitem StrangeCoin, 5;
- $MOST_HEROIC$=strcharinfo(0);
- mapannounce("012-1", l("##2The Monster Colonel was defeated by @@!", strcharinfo(0)), bc_map);
- $MK_TEMPVAR+=10;
- end;
-
// Begin Siege
OnMKSiege:
siege_setup("014-3");
@@ -699,7 +685,7 @@ OnTimer120000:
}
// Announce and spawn
- siege_spawn("012-1", .@mobId, 1, "#HurnscaldSiege::On"+.@ts$+"Death");
+ siege_spawn("012-1", .@mobId, 1, "#SiegeCtrl::On"+.@ts$+"Death");
mapannounce("012-1", "##1The Monster "+.@ts$+" arrived! It is a "+strmobinfo(1, .@mobId), bc_map);
// Clear $@SIEGE_TMPMOBS and start casting
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index 1a0d92dbe..bf8d8ce0b 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -190,3 +190,24 @@ function script siege_cast {
return;
}
+
+// Utility NPC
+- script #SiegeCtrl NPC_HIDDEN,{
+ end;
+
+// Boss Death Labels
+OnLieutenantDeath:
+ getitem StrangeCoin, 1;
+ mapannounce(getmap(), l("##2The Monster Lieutenant was defeated by @@!", strcharinfo(0)), bc_map);
+ $MK_TEMPVAR+=1;
+ end;
+
+OnColonelDeath:
+ getitem StrangeCoin, 5;
+ $MOST_HEROIC$=strcharinfo(0);
+ mapannounce(getmap(), l("##2The Monster Colonel was defeated by @@!", strcharinfo(0)), bc_map);
+ $MK_TEMPVAR+=10;
+ end;
+
+}
+