상속: BaseCreature
예제 #1
0
        public override void OnCast()
        {
            if (CheckSequence())
            {
                TimeSpan duracao = TimeSpan.FromSeconds(4.0 * Caster.Skills[CastSkill].Value);

                int quantidade = getQuantidade();
                for(int i =0; i < quantidade; i++) {
                    Dog cachorro = new Dog();
                    SpellHelper.Summon(cachorro, Caster, 0x215, duracao, false, false);
                }
            }

            FinishSequence();
        }
예제 #2
0
        public override bool OnBeforeDeath()
        {	
            foreach( Mobile m in m_sheep )
            {
                if (m is ShepherdsSheep && m.Alive && ((ShepherdsSheep)m).ControlMaster == null)
                {
                    Point3D sheeploc = m.Location;
                    Sheep sheepa = new Sheep();
                    sheepa.Location = sheeploc;
                    sheepa.MoveToWorld(sheeploc, m.Map);
                    sheepa.Hue = m.Hue;
                    m.Delete();
                }
            }

            foreach (Mobile m in m_dog)
            {
                if (m is ShepherdsDog && m.Alive && ((ShepherdsDog)m).ControlMaster == null)
                {
                    Point3D dogloc = m.Location;
                    Dog doga = new Dog();
                    doga.Location = dogloc;
                    doga.MoveToWorld(dogloc, m.Map);
                    doga.Hue = m.Hue;
                    m.Delete();
                }
            }
			
            return base.OnBeforeDeath();
        }