private static void JoinDeathCamEvent(PlayerMobile cam) { if (cam == null) { return; } if (DeathCams.Remove(cam)) { cam.SendMessage("You have been removed from the regular death cameras list."); } if (DeathCamsEvents.ContainsKey(cam)) { return; } DeathCamsEvents.Add(cam, DateTime.UtcNow); cam.BodyValue = 0; cam.Blessed = true; cam.SendMessage("You are now a battle death camera. Type [DCquit to stop."); cam.CloseAllGumps(); RefreshUI(cam); }
private static void QuitDeathCam(PlayerMobile cam) { if (cam == null) { return; } if (DeathCams.Remove(cam)) { cam.BodyValue = cam.Race.Body(cam); cam.SendMessage("You have been removed from the regular death cameras list."); } if (DeathCamsEvents.Remove(cam)) { cam.BodyValue = cam.Race.Body(cam); cam.SendMessage("You have been removed from the battles death cameras list."); } CurrentlyViewing.Remove(cam); CloseUI(cam); }