public override void OnDoubleClick(Mobile from) { if (from.AccessLevel == AccessLevel.Player) { return; } if (m_Mobiles.Count < MaxSpawnCount) { if (SpawnAllAvailable) { PerformSpawns(MaxSpawnCount - m_Mobiles.Count); from.SendMessage("Spawning All Available."); } else { PerformSpawns(1); from.SendMessage("Spawned: " + m_Mobiles.Count + " / " + MaxSpawnCount.ToString()); } } else { from.SendMessage("Spawn Count at Maximum. Deleting All Spawns."); DeleteAllInstances(); } }
public override void OnSingleClick(Mobile from) { if (from.AccessLevel == AccessLevel.Player) { return; } LabelTo(from, Name); if (!Activated) { LabelTo(from, "Inactive: " + m_Mobiles.Count + " / " + MaxSpawnCount.ToString()); return; } LabelTo(from, "Spawned: " + m_Mobiles.Count + " / " + MaxSpawnCount.ToString()); if (GetAvailableSpawnAmount() > 0) { LabelTo(from, "(Next Spawn in " + Utility.CreateTimeRemainingString(DateTime.UtcNow, m_LastActivity + m_NextActivity, true, true, true, true, true) + ")"); } }