summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-12 11:05:33 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-12 11:05:33 -0300
commitd91c487c8c925831e385d62f2509652b64fbe1e4 (patch)
tree7ac2b3f425bc15ea4dfe1837df06c741c7d0c486
parent993998dd8eaf4738802903f8200419f7e4e87826 (diff)
downloadserverdata-d91c487c8c925831e385d62f2509652b64fbe1e4.tar.gz
serverdata-d91c487c8c925831e385d62f2509652b64fbe1e4.tar.bz2
serverdata-d91c487c8c925831e385d62f2509652b64fbe1e4.tar.xz
serverdata-d91c487c8c925831e385d62f2509652b64fbe1e4.zip
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.
-rw-r--r--npc/012-1/guards.txt10
1 files changed, 6 insertions, 4 deletions
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;