summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-29 08:40:09 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-29 08:40:09 -0300
commitdf24e30846bba3398a1f4a635523155b0ad49cdc (patch)
tree089c40c63df36aa4f6aadaafb4ddda00f50365d1 /npc/functions
parent96e3f4212f361a02b4c6d0330fc41b9b0dea5daf (diff)
downloadserverdata-df24e30846bba3398a1f4a635523155b0ad49cdc.tar.gz
serverdata-df24e30846bba3398a1f4a635523155b0ad49cdc.tar.bz2
serverdata-df24e30846bba3398a1f4a635523155b0ad49cdc.tar.xz
serverdata-df24e30846bba3398a1f4a635523155b0ad49cdc.zip
Experiment - Deprecate areamonster and use siege_spawn
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/siege.txt19
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;
+}
+