Example #1
0
        public override bool OnBeforeDeath()
        {
            BlackKnightBox MyChest = new BlackKnightBox();

            Map map = this.Map;

            bool    validLocation = false;
            Point3D loc           = this.Location;

            for (int j = 0; !validLocation && j < 10; ++j)
            {
                int x = X + Utility.Random(3) - 1;
                int y = Y + Utility.Random(3) - 1;
                int z = map.GetAverageZ(x, y);

                if (validLocation = map.CanFit(x, y, this.Z, 16, false, false))
                {
                    loc = new Point3D(x, y, Z);
                }
                else if (validLocation = map.CanFit(x, y, z, 16, false, false))
                {
                    loc = new Point3D(x, y, z);
                }
            }

            MyChest.MoveToWorld(loc, map);
            QuestGlow MyGlow = new QuestGlow();

            MyGlow.MoveToWorld(loc, map);

            return(base.OnBeforeDeath());
        }
Example #2
0
        public override bool OnBeforeDeath()
        {
            Effects.SendLocationParticles(EffectItem.Create(this.Location, this.Map, EffectItem.DefaultDuration), 0x3728, 10, 10, 2023);
            this.PlaySound(0x1FE);

            string bSay = "I will return!";

            switch (Utility.Random(5))
            {
            case 0: bSay = "You will never defeat me!"; break;

            case 1: bSay = "I will be back!"; break;

            case 2: bSay = "You can never stop me!"; break;

            case 3: bSay = "I will return!"; break;

            case 4: bSay = "You could never vanquish me!"; break;
            }
            ;

            BardMangarPack MyChest = new BardMangarPack();

            MyChest.MoveToWorld(Location, Map);

            QuestGlow MyGlow = new QuestGlow();

            MyGlow.MoveToWorld(Location, Map);

            MyChest.PublicOverheadMessage(MessageType.Regular, 0, false, string.Format(bSay));

            m_MoonTimer = new InternalTimer(this);
            m_MoonTimer.Start();
            return(base.OnBeforeDeath());
        }
Example #3
0
        public override bool OnBeforeDeath()
        {
            VulcrumChest MyChest = new VulcrumChest();

            MyChest.MoveToWorld(Location, Map);

            QuestGlow MyGlow = new QuestGlow();

            MyGlow.MoveToWorld(Location, Map);

            return(base.OnBeforeDeath());
        }
Example #4
0
        public override bool OnBeforeDeath()
        {
            Server.Misc.IntelligentAction.BeforeMyDeath(this);
            Server.Misc.IntelligentAction.DropItem(this, this.LastKiller);

            SurtazChest MyChest = new SurtazChest();

            MyChest.MoveToWorld(Location, Map);

            QuestGlow MyGlow = new QuestGlow();

            MyGlow.MoveToWorld(Location, Map);

            return(base.OnBeforeDeath());
        }