ServUO Version
Publish Unknown
Ultima Expansion
Stygian Abyss
So i want this stone to list how many things have been killed in this dungeon

Kill Counter:
public override void GetProperties(ObjectPropertyList list)
 {
            base.GetProperties(list);

            list.Add( "Kills: {0}", m_RegularKillCount.ToString());
           
 }

it shows the kills but doesnt reset the kills back to 0 on the stone when the final boss is killed

Boss Death:
else if ( this.m_CurrentBoss is Hades && !this.m_CurrentBoss.Alive )
 {
                    World.Broadcast( 1150, true, "Hades has fallen. The Underworld Gauntlet is completed! Exit through the healer room" );
                    WipeGates();
                    this.GenerateSpawnNodes();
                    this.m_RegularKillCount = 0;
                    this.m_CurrentStage = 1;
                    this.m_CurrentBoss = null;
 }

how do i reset the number on the stone when the boss dies?
 

Attachments

  • UnderworldSystem.cs
    24.9 KB · Views: 5
  • Kills.jpg
    Kills.jpg
    149.1 KB · Views: 11
changing the itemid probably would have worked but i solved it by doing this

C#:
public override void GetProperties(ObjectPropertyList list)
{
       base.GetProperties(list);
           
        if ( m_RegularKillCount <= 149 )
        {
            list.Add( "Kills: {0}", m_RegularKillCount.ToString());
        }
        else if ( m_RegularKillCount >= 150 )
        {
            list.Add( "Kills: {0}", 0);
        }
}
 
Back