Skip to content

Commit

Permalink
Set Respawn Time of MissionMaster to 2 min
Browse files Browse the repository at this point in the history
  • Loading branch information
NetDwarf committed Sep 25, 2022
1 parent 9a91b1d commit 2a1ec1a
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions GameServer/keeps/Gameobjects/Guards/MissionMaster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,21 +281,10 @@ protected override void SetBlockEvadeParryChance()
}
}

protected override void SetRespawnTime()
{
if (Realm == eRealm.None && (GameServer.Instance.Configuration.ServerType == eGameServerType.GST_PvE ||
GameServer.Instance.Configuration.ServerType == eGameServerType.GST_PvP))
{
// In PvE & PvP servers, lords are really just mobs farmed for seals.
int iVariance = 1000 * Math.Abs(ServerProperties.Properties.GUARD_RESPAWN_VARIANCE);
int iRespawn = 60 * ((Math.Abs(ServerProperties.Properties.GUARD_RESPAWN) * 1000) +
(Util.Random(-iVariance, iVariance)));

RespawnInterval = (iRespawn > 1000) ? iRespawn : 1000; // Make sure we don't end up with an impossibly low respawn interval.
}
else
RespawnInterval = 10000; // 10 seconds
}
protected override void SetRespawnTime()
{
RespawnInterval = 120000;
}

protected override void SetAggression()
{
Expand Down

0 comments on commit 2a1ec1a

Please sign in to comment.