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