summaryrefslogtreecommitdiff
path: root/npc/functions/siege.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r--npc/functions/siege.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index 49c9fd5f9..261492ac2 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -125,3 +125,19 @@ function script siege_selectmob {
}
+// Prepare a siege with optional announce
+// siege_setup ( map{, announce} )
+function script siege_setup {
+ debugmes "Cast";
+ .@m$=getarg(0);
+ .@msg$=getarg(1, "");
+
+ addmapmask .@m$, MASK_MATTACK;
+ changemusic .@m$, any("mythica.ogg", "eric_matyas_ghouls.ogg", "misuse.ogg", "Arabesque.ogg");
+ disablenpc("Mana Stone");
+ pvpon(.@m$);
+ if (.@msg$ != "")
+ kamibroadcast(col(.@msg$,1));
+ return;
+}
+