示例#1
0
            protected override void OnTarget(Mobile from, object targ)
            {
                AddOnEditor_Att addoneditor = (AddOnEditor_Att)XmlAttach.FindAttachment(from, typeof(AddOnEditor_Att));

                if (targ is AddonComponent)
                {
                    AddonComponent component = (AddonComponent)targ;
                    addoneditor.SelectedAddon = component.Addon;
                    addoneditor.Resend(from);
                }
                else
                {
                    from.SendMessage("That is not an Addon.");
                    from.Target = new Select_Target(from);
                }
            }