示例#1
0
        public override bool OnBeforeDeath()
        {
            Item item = null;

            switch (Utility.Random(8))
            {
            case 0:
                item      = new SpecialLeggings();
                item.Name = "Azothu's Leggings";
                break;          // Leggings

            case 1:
                item      = new SpecialArms();
                item.Name = "Azothu's Arms";
                break;          // arms

            case 2:
                item      = new SpecialTunic();
                item.Name = "Azothu's Tunic";
                break;          // Chest

            case 3:
                item      = new SpecialArmor();
                item.Name = "Azothu's Armor";
                break;          // Female Chest

            case 4:
                item      = new SpecialGorget();
                item.Name = "Azothu's Gorget";
                break;          // gorget

            case 5:
                item      = new SpecialGloves();
                item.Name = "Azothu's Gloves";
                break;          // gloves

            case 6:
                item      = new SpecialHelm();
                item.Name = "Azothu's Helm";
                break;          // helm

            case 7:
                item      = new MetalChest();
                item.Name = "Azothu's Locker";
                break;          // helm
            }

            if (item != null)
            {
                item.Hue = 0x84A;
                PackItem(item);
            }

            return(base.OnBeforeDeath());
        }
示例#2
0
        public override void GenerateLoot()
        {
            if (Core.UOAI || Core.UOAR)
            {
                Item item = null;
                switch (Utility.Random(8))
                {
                case 0:
                    item      = new SpecialLeggings();
                    item.Name = "Azothu's Leggings";
                    break;                              // Leggings

                case 1:
                    item      = new SpecialArms();
                    item.Name = "Azothu's Arms";
                    break;                              // arms

                case 2:
                    item      = new SpecialTunic();
                    item.Name = "Azothu's Tunic";
                    break;                              // Chest

                case 3:
                    item      = new SpecialArmor();
                    item.Name = "Azothu's Armor";
                    break;                              // Female Chest

                case 4:
                    item      = new SpecialGorget();
                    item.Name = "Azothu's Gorget";
                    break;                              // gorget

                case 5:
                    item      = new SpecialGloves();
                    item.Name = "Azothu's Gloves";
                    break;                              // gloves

                case 6:
                    item      = new SpecialHelm();
                    item.Name = "Azothu's Helm";
                    break;                              // helm

                case 7:
                    item      = new MetalChest();
                    item.Name = "Azothu's Locker";
                    break;                              // helm
                }

                if (item != null)
                {
                    item.Hue = 0x84A;
                    PackItem(item);
                }
            }
            else
            {
                if (Core.UOSP || Core.UOMO)
                {                       // ai special
                    if (Spawning)
                    {
                        PackGold(0);
                    }
                    else
                    {
                    }
                }
                else
                {                       // Standard RunUO
                                        // ai special
                }
            }
        }