コード例 #1
0
        public override void OnDamagedBySpell(Mobile caster)
        {
            base.OnDamagedBySpell(caster);
            if ((DoSpawnWyvern && caster != this))
            {
                BaseCreature spawn = new DecayingWyvern(this);

                spawn.Team = this.Team;
                spawn.MoveToWorld(caster.Location, caster.Map);
                spawn.Combatant = caster;

                Say("*{0} summons a Wyvern to help him!*", Name);
            }
        }
コード例 #2
0
        	public override void OnDamagedBySpell(Mobile caster)
        	{
            		base.OnDamagedBySpell(caster);
            		if ((DoSpawnWyvern && caster != this))
			{
				BaseCreature spawn = new DecayingWyvern( this );

				spawn.Team = this.Team;
				spawn.MoveToWorld( caster.Location, caster.Map );
				spawn.Combatant = caster;

				Say("*{0} summons a Wyvern to help him!*",Name);
			}
        	}
コード例 #3
0
        public override void OnDamagedBySpell(Mobile caster)
        {
            if (caster != this)
            {
                BaseCreature spawn = new DecayingWyvern(this);

                spawn.Team = this.Team;
                spawn.MoveToWorld(caster.Location, caster.Map);
                spawn.Combatant = caster;

                Say("*Borkarth summons a Wyvern to help him!*");
            }

            base.OnDamagedBySpell(caster);
        }
コード例 #4
0
        public override void OnDamagedBySpell(Mobile caster)
        {
            base.OnDamagedBySpell(caster);

            if (0.25 >= Utility.RandomDouble() && DoTeleport)
            {
                Teleport(caster);
            }

            if (caster != this && DoSpawnWyvern)
            {
                BaseCreature spawn = new DecayingWyvern(this);

                spawn.Team = this.Team;
                spawn.MoveToWorld(caster.Location, caster.Map);
                spawn.Combatant = caster;

                Say("*Borkarth summons a Wyvern to help him!*");
            }

            if (0.1 >= Utility.RandomDouble() && DoSpawnMobile)
            {
                BaseCreature spawn = new DecayingSpawn(this);

                spawn.BodyValue   = this.BodyValue;
                spawn.Hue         = this.Hue;
                spawn.BaseSoundID = this.BaseSoundID;
                spawn.Team        = this.Team;
                spawn.MoveToWorld(caster.Location, caster.Map);
                spawn.Combatant = caster;
                spawn.Say("I am here my master!");
            }

            if (0.05 >= Utility.RandomDouble() && CanCastReflect > 0)
            {
                this.Say("In Jux Sanct");
                this.FixedParticles(0x375A, 10, 15, 5037, EffectLayer.Waist);
                this.PlaySound(0x1E9);
                this.MagicDamageAbsorb = CanCastReflect;
            }

            if (0.1 >= Utility.RandomDouble() && ThrowAtomicBomb)
            {
                Effects.SendMovingEffect(this, caster, 0xF0D & 0x3FFF, 7, 0, false, false, 1161, 0);
                Effects.SendMovingEffect(this, caster, 0xF0D & 0x3FFF, 7, 0, false, false, 349, 0);
                Timer.DelayCall(TimeSpan.FromSeconds(1.0), new TimerStateCallback(Bomb), caster);
            }
        }
コード例 #5
0
        public override void OnDamagedBySpell(Mobile caster)
        {
            if (caster != this)
            {
                BaseCreature spawn = new DecayingWyvern(this);

                spawn.Team = this.Team;
                spawn.MoveToWorld(caster.Location, caster.Map);
                spawn.Combatant = caster;

                Say("*Borkarth summons a Wyvern to help him!*");
            }

            base.OnDamagedBySpell(caster);
        }