diff options
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r-- | npc/functions/siege.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt new file mode 100644 index 000000000..010ef0da3 --- /dev/null +++ b/npc/functions/siege.txt @@ -0,0 +1,19 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// Description: +// Town Siege utilities + +// Siege Spawn +// Can be used anywhere to spawn on the whole map, margins respected. +// siege_spawn( map, mobID, Amount, eventID ) +function script siege_spawn { + .@mp$=getarg(0); + .@mid=getarg(1); + .@qnt=getarg(2); + .@ev$=getarg(3); + + areamonster(.@mp$, 20, 20, getmapinfo(MAPINFO_SIZE_X, .@mp$)-20, getmapinfo(MAPINFO_SIZE_Y, .@mp$)-20, strmobinfo(1, .@mid), .@mid, .@qnt, .@ev$); + return; +} + |