diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-04-29 11:02:36 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-04-29 11:02:36 -0300 |
commit | 6fc1e2fc43d1dc217df402d2a196dd06b3512f39 (patch) | |
tree | 566e90cbf96bd8f030975f5af05f3288506c687a /npc/functions/siege.txt | |
parent | bd503ad7d569b1eb3213ca817af869f890ea8d88 (diff) | |
download | serverdata-6fc1e2fc43d1dc217df402d2a196dd06b3512f39.tar.gz serverdata-6fc1e2fc43d1dc217df402d2a196dd06b3512f39.tar.bz2 serverdata-6fc1e2fc43d1dc217df402d2a196dd06b3512f39.tar.xz serverdata-6fc1e2fc43d1dc217df402d2a196dd06b3512f39.zip |
More optmizations
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r-- | npc/functions/siege.txt | 16 |
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; +} + |