#W# Added: There is now a delay setting for the dungeon bounty timers in Settings.cs.

This commit is contained in:
WarrentyExpired 2026-10-11 08:59:37 -04:00
parent ad38314ca7
commit c630502c8d
4 changed files with 17 additions and 7 deletions

View file

@ -131,7 +131,7 @@ public class BountyBoardGump : Gump
// Reset Profile and trigger the 60 minute cooldown
profile.ActiveBountyID = -1;
profile.CurrentKills = 0;
profile.NextAvailableTime = DateTime.UtcNow + TimeSpan.FromMinutes(60);
profile.NextAvailableTime = DateTime.UtcNow + TimeSpan.FromMinutes(ValidSettings.BountyBoardDelay());
}
}
}
@ -146,7 +146,7 @@ public class BountyBoardGump : Gump
{
profile.ActiveBountyID = -1;
profile.CurrentKills = 0;
profile.NextAvailableTime = DateTime.UtcNow + TimeSpan.FromMinutes(60);
profile.NextAvailableTime = DateTime.UtcNow + TimeSpan.FromMinutes(ValidSettings.BountyBoardDelay());
_player.SendMessage(33, $"You paid the {cost} gold refusal fee and abandoned the bounty.");
}
else

View file

@ -73,23 +73,23 @@ public static class BountyRegistry
// ==========================================
// TIER 2: Estimable Hunter (Fame 1250) - Rewards: 15 Tokens, 1200g
// ==========================================
Add(2, new BountyDefinition(4, "Skeletal Knights in the Dungeon Deceit", new[] { typeof(SkeletalKnight) }, 10, 1250, 15, 1200, "Deceit"));
Add(2, new BountyDefinition(5, "Drakes in the Dungeon Destard", new[] { typeof(Drake) }, 10, 1250, 15, 1200, "Destard"));
Add(2, new BountyDefinition(5, "Skeletal Knights in the Dungeon Deceit", new[] { typeof(SkeletalKnight) }, 10, 1250, 15, 1200, "Deceit"));
Add(2, new BountyDefinition(6, "Drakes in the Dungeon Destard", new[] { typeof(Drake) }, 10, 1250, 15, 1200, "Destard"));
// ==========================================
// TIER 3: Great Slayer (Fame 2500) - Rewards: 30 Tokens, 2500g
// ==========================================
Add(3, new BountyDefinition(6, "Despise Titans", new[] { typeof(Titan) }, 8, 2500, 30, 2500, "Despise"));
Add(3, new BountyDefinition(7, "Despise Titans", new[] { typeof(Titan) }, 8, 2500, 30, 2500, "Despise"));
// ==========================================
// TIER 4: Illustrious Champion (Fame 5000) - Rewards: 60 Tokens, 5000g
// ==========================================
Add(4, new BountyDefinition(7, "Destard Dragons", new[] { typeof(Dragon) }, 3, 5000, 60, 5000, "Destard"));
Add(4, new BountyDefinition(8, "Destard Dragons", new[] { typeof(Dragon) }, 3, 5000, 60, 5000, "Destard"));
// ==========================================
// TIER 5: Glorious Lord (Fame 10000) - Rewards: 100 Tokens, 10000g
// ==========================================
Add(5, new BountyDefinition(8, "Hythloth Balrons", new[] { typeof(Balron) }, 2, 10000, 100, 10000, "Hythloth"));
Add(5, new BountyDefinition(9, "Hythloth Balrons", new[] { typeof(Balron) }, 2, 10000, 100, 10000, "Hythloth"));
}
private static void Add(int tier, BountyDefinition bounty)

View file

@ -46,5 +46,14 @@ namespace Server
return stable;
}
public static double BountyBoardDelay()
{
int mins = Settings.S_DungeonBountyBoardDelay;
if ( mins > 1440 )
mins = 1440;
if (mins < 1 )
mins = 1;
return (double)mins;
}
}
}

View file

@ -7,5 +7,6 @@ namespace Server
public static bool S_LineOfSight = true; // Mobs are hidden in Dungeons
public static int S_BondDays = 1; // 1-30 Days to bond with pet
public static int S_Stables = 3; // 0-20 Extra stable slots
public static int S_DungeonBountyBoardDelay = 60; //1440 minutes delay between bountie quests
}
}