#W# Added: Added a [mystats command to view the stuff i'm tracking.

This commit is contained in:
WarrentyExpired 2026-10-04 12:35:56 -04:00
parent d7f998cf6b
commit 7ca5cd3a4e
3 changed files with 87 additions and 2 deletions

View file

@ -3646,7 +3646,6 @@ namespace Server.Mobiles
if (c != null)
{
// Identify the killer (this naturally routes credit from tamed pets to their owner)
Mobile killer = this.LastKiller;
if (killer is BaseCreature pet && pet.ControlMaster != null)
{
@ -3655,7 +3654,6 @@ namespace Server.Mobiles
if (killer is PlayerMobile pm)
{
// Scan the newly generated corpse for the exact amount of gold created
int goldFound = c.GetAmount(typeof(Gold));
if (goldFound > 0)
@ -3666,6 +3664,7 @@ namespace Server.Mobiles
if (points > 0)
{
pm.MonsterKillPoints += points;
pm.LifetimeKillPoints += points;
}
}
}

View file

@ -754,6 +754,14 @@ namespace Server.Mobiles
set => m_TotalMonstersKilled = value;
}
private int m_LifetimeKillPoints;
[CommandProperty(AccessLevel.GameMaster)]
public int LifetimeKillPoints
{
get => m_LifetimeKillPoints;
set => m_LifetimeKillPoints = value;
}
private int m_TotalPlayerDeaths;
[CommandProperty(AccessLevel.GameMaster)]
public int TotalPlayerDeaths
@ -2808,6 +2816,7 @@ namespace Server.Mobiles
{
case 35:
{
m_LifetimeKillPoints = reader.ReadInt();
m_TotalPlayerDeaths = reader.ReadInt();
m_TotalMonstersKilled = reader.ReadInt();
m_TotalGoldLooted = reader.ReadInt();
@ -3163,6 +3172,7 @@ namespace Server.Mobiles
writer.Write(35); // version
writer.Write(m_LifetimeKillPoints);
writer.Write(m_TotalPlayerDeaths);
writer.Write(m_TotalMonstersKilled);
writer.Write(m_TotalGoldLooted);