Ejemplo n.º 1
0
        protected override void OnTarget(Mobile from, object targeted)
        {
            if (m_Deed.Deleted || !m_Deed.IsChildOf(from.Backpack))
            {
                return;
            }

            if (targeted is BaseCreature)
            {
                BaseCreature c = (BaseCreature)targeted;
                if (c.IsBonded == true && c.ControlMaster == from)
                {
                    from.SendMessage("You cannot bring yourself to get rid of just a trusted friend.");
                }
                else if (c.Summoned == true)
                {
                    from.SendMessage("You cannot add summoned creatures to this bulk order.");
                }
                else if (c.ControlMaster == from)
                {
                    m_Deed.EndMobileCombine(from, targeted);
                }
                else
                {
                    from.SendMessage("Only pets that you control can be added to this deed.");
                }
            }
        }
Ejemplo n.º 2
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            if (m_Deed.Deleted || !m_Deed.IsChildOf(m_From.Backpack))
            {
                return;
            }

            if (info.ButtonID == 2)               // Combine
            {
                m_From.SendGump(new SmallMobileBODGump(m_From, m_Deed));
                m_Deed.BeginMobileCombine(m_From);
            }
        }