Example #1
0
        public override void OnMovement(Mobile m, Point3D oldLocation)
        {
            if (!m.Frozen && DateTime.Now >= m_NextResurrect && InRange(m, 4) && !InRange(oldLocation, 4) && InLOS(m))
            {
                if (m.IsDeadBondedPet)
                {
                    m_NextResurrect = DateTime.Now + ResurrectDelay;

                    if (m.Map == null || !m.Map.CanFit(m.Location, 16, false, false))
                    {
                        Say("I sense a spirt of an animal...somewhere.");
                    }
                    else
                    {
                        BaseCreature bc = m as BaseCreature;

                        bc.PlaySound(0x214);
                        bc.FixedEffect(0x376A, 10, 16);

                        bc.ResurrectPet();

                        Say("Rise my friend. I wish I could save every unfortunate animal.");
                    }
                }
            }
        }
Example #2
0
        public virtual void OfferResurrection(BaseCreature p, Mobile master)
        {
            Direction = GetDirectionTo(p);

            master = p.ControlMaster;

            p.PlaySound(0x214);
            p.FixedEffect(0x376A, 10, 16);

            master.CloseGump(typeof(FactionPetResurrectGump));
            master.SendGump(new FactionPetResurrectGump(master, p, m_Price));
        }
        public virtual void OfferResurrection(BaseCreature p, Mobile master)
        {
            Direction = GetDirectionTo(p);

            master = p.ControlMaster;

            p.PlaySound(0x214);
            p.FixedEffect(0x376A, 10, 16);

            master.CloseGump(typeof (FactionPetResurrectGump));
            master.SendGump(new FactionPetResurrectGump(master, p, m_Price));
        }