From 6fc1e2fc43d1dc217df402d2a196dd06b3512f39 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 29 Apr 2019 11:02:36 -0300 Subject: More optmizations --- npc/functions/siege.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'npc/functions/siege.txt') 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; +} + -- cgit v1.2.3-70-g09d2