From d91c487c8c925831e385d62f2509652b64fbe1e4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 12 Jun 2018 11:05:33 -0300 Subject: Fix a bug, and aid players with an extra guard every round, as Saulc is spawning his share of monsters, but is (should) not (be) fighting. --- npc/012-1/guards.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'npc') diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt index c16b8b2b6..ad1d62921 100644 --- a/npc/012-1/guards.txt +++ b/npc/012-1/guards.txt @@ -304,10 +304,11 @@ OnDoEvent: OnSkip: end; -OnTimer210000: +OnTimer300000: .@Pl=getmapusers("012-1")+mobcount("012-1", "Cassia:OnSkip")-1; + .@Pla=getmapusers("012-1"); .@Mb=mobcount("012-1", "Hurnsguard:OnSkip")+mobcount("012-1", "Hurnsguard::OnXtreem")+2; // Saulc GM is an enemy for server code - for (.@i = 0; .@i < .@Pl; .@i++) + for (.@i = 0; .@i < .@Pla; .@i++) bg_monster($@FK_Team1, "012-1", rand(131, 141), rand(64, 80), "Friendly Guard", FallenGuard1, "Cassia::OnSkip"); // See if we need extra guards, depending on how outnumbered allied forces are. @@ -333,9 +334,9 @@ OnTimer210000: initnpctimer; end; -OnTimer15000: +OnTimer30000: OnTimer120000: -OnTimer180000: +OnTimer240000: .@Pl=getmapusers("012-1"); for (.@i = 0; .@i < .@Pl; .@i++) { .@mid=rand(1,13); @@ -368,6 +369,7 @@ OnTimer180000: .@monsterId = Yeti ; break; } areamonster("012-1", 52, 45, 127, 80, "Monster Soldier", .@monsterId, 1, "Hurnsguard::OnSkip"); + bg_monster($@FK_Team1, "012-1", rand(131, 141), rand(64, 80), "Additional Guard", FallenGuard2, "Cassia::OnSkip"); } end; -- cgit v1.2.3-70-g09d2