Example #1
0
            protected override void OnTick()
            {
                if (_count++ <= 10 && (_mobile != null && _mobile.Alive))
                {
                    _mobile.FixedParticles(0x3709, 10, 30, 5052, EffectLayer.LeftFoot);

                    if ((_count % 2) == 0)
                    {
                        _mobile.PlaySound((_mobile.Female ? 814 : 1088));
                    }
                    else
                    {
                        _mobile.PlaySound(0x208);
                    }

                    AOS.Damage(_mobile, null, Utility.RandomMinMax(6, 12), 0, 100, 0, 0, 0, true);
                }
                else
                {
                    _mobile.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head);
                    _mobile.PlaySound((_mobile.Female ? 814 : 1088));

                    _mobile.PublicOverheadMessage(Server.Network.MessageType.Emote, 0x38A, false, "*screams in total agony*");

                    _cmd.Kill(_mobile, true, true, true);
                    _cmd.TimedCorpse.Hue  = 1175;
                    _cmd.TimedCorpse.Name = String.Format("the charred remains of {0}", _mobile.RawName);

                    Stop();
                }
            }
Example #2
0
            protected override void OnTick()
            {
                if (_mobile == null)
                {
                    Stop();
                    return;
                }
                else if (!_mobile.Alive || _mobile.Blessed || _mobile.Map == null || _mobile.Map == Map.Internal)
                {
                    Stop();
                    return;
                }

                _cmd.Kill(_mobile, true, false, true);

                new Server.Items.TimedItem(300.0, 4650).MoveToWorld(_mobile.Location, _mobile.Map);                     //blood
                new Server.Items.TimedItem(300.0, 7407).MoveToWorld(_mobile.Location, _mobile.Map);                     //entrails

                Stop();
            }