Пример #1
0
        public static void PseudoseerChat_Command(CommandEventArgs e)
        {
            if (HasAnyPossessPermissions(e.Mobile))
            {
                if (PseudoSeerStone.Instance == null)
                {
                    e.Mobile.SendMessage("No pseudoseerstone exists... cannot chat.");
                    return;
                }
                PlayerMobile player = GetAssociatedPlayerMobile(e.Mobile);

                string name;
                if (player == null)
                {
                    name = null;
                }
                else
                {
                    name = player.Name;
                }
                foreach (Mobile mob in PseudoSeersControlGump.PseudoseerControlledMobiles())
                {
                    if (mob.Deleted || mob.NetState == null)
                    {
                        continue;
                    }
                    mob.SendMessage(38, "[PS] " + name + ": " + e.ArgString);
                }
            }
            else
            {
                e.Mobile.SendMessage("You do not have access to that command.");
            }
        }
Пример #2
0
        public static List <Mobile> BuildList(Mobile owner)
        {
            if (PseudoSeerStone.Instance == null)
            {
                return(new List <Mobile>());
            }
            List <Mobile> list = PseudoSeersControlGump.PseudoseerControlledMobiles();

            list.Sort(InternalComparer.Instance);

            return(list);
        }
Пример #3
0
        protected override void OnTick()
        {
            if (PseudoSeerStone.Instance == null)
            {
                return;
            }

            List <Mobile> list = PseudoSeersControlGump.PseudoseerControlledMobiles();

            foreach (Mobile mob in list)
            {
                if (mob is BaseCreature)
                {
                    try
                    {
                        LoggingCustom.Log("LOG_PseudoseerMobs.txt", DateTime.UtcNow + "\t" + mob + "\t" + mob.Account + "\t" + mob.Region.Name + "\t" + mob.Location);
                    }
                    catch {}
                }
            }
        }