Example #1
0
        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);
        }
Example #2
0
 public static bool IsCamera(PlayerMobile pm)
 {
     return(pm != null && (DeathCams.ContainsKey(pm) || DeathCamsEvents.ContainsKey(pm)));
 }