switch (m_TreasureMap.Level)
{
case 0:
spawns = 3;
break;
case 1:
spawns = 0;
break;
default:
spawns = 4;
break;
}
for (int i = 0; i < spawns; ++i)
{
BaseCreature bc = Spawn(m_TreasureMap.Level, m_Chest.Location, m_Chest.Map, null, true);
if (bc != null)
{
m_Chest.Guardians.Add(bc);
}
}
private class DeleteTimer : Timer
{
private readonly Item m_Item;
public DeleteTimer(Item item, DateTime time)
: base(time - DateTime.UtcNow)
private class DeleteTimer : Timer
{
private readonly Item m_Item;
public DeleteTimer( Item item, DateTime time ) : base( time - DateTime.Now )
{
m_Item = item;
Priority = TimerPriority.OneMinute;
}
protected override void OnTick()
{
m_Item.Delete();
}
public TreasureMapChest( Mobile owner, int level, bool temporary ) : base( 0xE40 )
{
m_Owner = owner;
m_Level = level;
m_DeleteTime = DateTime.Now + TimeSpan.FromMinutes( 30.0 );
m_Temporary = temporary;
m_Guardians = new List<Mobile>();
m_Timer = new DeleteTimer( this, m_DeleteTime );
m_Timer.Start();
Fill( this, level );
}
I did yes, i changed to 3 min and it didnt got removed, i really dont feel like waiting 3hours .
Im 99% sure i saved the changes hahaha
Thank you
to tell you the truth, idk how to use itThank you i will try that, you should use codes, to make it easy to read
to tell you the truth, idk how to use it
Hehe, just click the cross [+] then , code and paste there the code
Hmmmm after chest gets deleted guardians stay there, i wish they get removed too...
We use essential cookies to make this site work, and optional cookies to enhance your experience.