Example #1
0
        public static void CheckMobFactions_OnCommand(CommandEventArgs e)
        {
            // get the mob factions attachment
            XmlMobFactions x = XmlAttach.FindAttachment(e.Mobile, typeof(XmlMobFactions), "Standard") as XmlMobFactions;

            if (x != null)
            {
                e.Mobile.SendMessage("{0}", x.OnIdentify(e.Mobile));
            }
        }
Example #2
0
        public static void CheckMobFactions_OnCommand(CommandEventArgs e)
        {
            // get the mob factions attachment
            ArrayList list = XmlAttach.FindAttachments(XmlAttach.MobileAttachments, e.Mobile, typeof(XmlMobFactions), "Standard");

            if (list != null && list.Count > 0)
            {
                XmlMobFactions x = list[0] as XmlMobFactions;
                e.Mobile.SendMessage("{0}", x.OnIdentify(e.Mobile));
            }
        }