#W# Feature: Added a Dungeon of the Day! [dotd command. Increased gold/skill gain/ and rare drops.

This commit is contained in:
WarrentyExpired 2026-10-07 10:52:08 -04:00
parent b6fa2cea69
commit cb5906025a
4 changed files with 120 additions and 1 deletions

View file

@ -26,6 +26,7 @@ using Server.Spells.Necromancy;
using Server.Spells.Sixth;
using Server.Spells.Spellweaving;
using Server.Targeting;
using Server.Custom;
namespace Server.Mobiles
{
@ -3652,6 +3653,23 @@ namespace Server.Mobiles
killer = pet.ControlMaster;
}
Region deathRegion = Region.Find(c.Location, c.Map);
if (DailyDungeonManager.IsActive(deathRegion))
{
c.DropItem(new Server.Items.Gold(Utility.RandomMinMax(100, 300)));
if (Utility.RandomDouble() <= 0.05)
{
c.DropItem(new Server.Items.SpecialHairDye());
}
if (killer != null)
{
killer.SendMessage(38, "You have killed a daily mob and earned bonus loot!");
}
}
if (killer is PlayerMobile pm)
{
int goldFound = c.GetAmount(typeof(Gold));