From 775a9189eef5c5c87363566f4bb13e450791f6e4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 6 May 2019 20:23:46 -0300 Subject: Siege: Always spawn boss near the Soul Menhir --- npc/functions/siege.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'npc') 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; } -- cgit v1.2.3-60-g2f50