diff options
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r-- | npc/functions/siege.txt | 11 |
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; } |