summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-06 20:23:46 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-06 20:23:46 -0300
commit775a9189eef5c5c87363566f4bb13e450791f6e4 (patch)
tree2a6c45b9e4a895c1201a2c3b7da616daef4646d4 /npc/functions
parent04f85d61c72383a1dd554f0e918f0e38700c40eb (diff)
downloadserverdata-775a9189eef5c5c87363566f4bb13e450791f6e4.tar.gz
serverdata-775a9189eef5c5c87363566f4bb13e450791f6e4.tar.bz2
serverdata-775a9189eef5c5c87363566f4bb13e450791f6e4.tar.xz
serverdata-775a9189eef5c5c87363566f4bb13e450791f6e4.zip
Siege: Always spawn boss near the Soul Menhir
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/siege.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index 9e43ca601..4fe0bebf7 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -220,8 +220,17 @@ function script siege_boss {
Exception("ERROR, TOO FEW MOBS ON DATABASE, whaaaaaaat", RB_DEBUGMES|RB_IRCBROADCAST);
}
+ // We want spawn point to be fixed
+ .@lx=array_find($@LOCMASTER_MAP$, .@m$);
+ .@xm=$@LOCMASTER_X[.@lx];
+ .@ym=$@LOCMASTER_Y[.@lx];
+
// Announce and spawn
- siege_spawn(.@m$, .@mobId, 1, "#SiegeCtrl::On"+.@ts$+"Death");
+ areamonster(.@m$, .@xm-1, .@ym-1, .@xm+1, .@ym+1, .@ts$+" "+strmobinfo(1, .@mobId), .@mobId, 1, "#SiegeCtrl::On"+.@ts$+"Death");
+
+ // Spawn some scouts
+ areamonster(.@m$, .@xm-1, .@ym-1, .@xm+1, .@ym+1, "Scout", any(GreenSlime,RedSlime,AngryYellowSlime), 3);
+
announce("##1The Monster "+.@ts$+" arrived! It is a "+strmobinfo(1, .@mobId), bc_all);
return;
}