private static void JoinDeathCam(PlayerMobile cam) { if (cam == null) { return; } if (DeathCamsEvents.Remove(cam)) { cam.SendMessage("You have been removed from the battle death cameras list."); } if (DeathCams.ContainsKey(cam)) { return; } DeathCams.Add(cam, DateTime.UtcNow); cam.BodyValue = 0; cam.Blessed = true; cam.SendMessage("You are now a regular 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); }