public HenchmanFighterItem()
        {
            ItemID = 0x1419;

            if (HenchGearColor > 0)
            {
                Hue = HenchGearColor;
            }
            else
            {
                Hue = Utility.RandomList(0, 0x973, 0x966, 0x96D, 0x972, 0x8A5, 0x979, 0x89F, 0x8AB, 0x492, 0x5B4, 0x48F, 0xB93, 0xB92, 0x497, 0x4AC, 0x5B5, 0x5B6, 0x48B, 0x48E); HenchGearColor = Hue;
            }

            if (HenchArmorType > 0)
            {
            }
            else
            {
                HenchArmorType = Utility.RandomMinMax(1, 3);
            }
            if (HenchWeaponType > 0)
            {
            }
            else
            {
                HenchWeaponType = Utility.RandomMinMax(1, 3);
            }

            HenchCloak      = Utility.RandomMinMax(1, 2);
            HenchCloakColor = HenchmanFunctions.GetHue(Utility.Random(19));

            if (HenchWeaponID > 0)
            {
            }
            else
            {
                if (HenchWeaponType != 1)                   // SWORDS
                {
                    switch (Utility.Random(8))
                    {
                    case 0: HenchWeaponID = 0x1441; break;

                    case 1: HenchWeaponID = 0x13FF; break;

                    case 2: HenchWeaponID = 0x1401; break;

                    case 3: HenchWeaponID = 0xF61; break;

                    case 4: HenchWeaponID = 0x13B6; break;

                    case 5: HenchWeaponID = 0x13B8; break;

                    case 6: HenchWeaponID = 0x13B9; break;

                    case 7: HenchWeaponID = 0xF5E; break;
                    }
                }
                else                 // MACES
                {
                    switch (Utility.Random(4))
                    {
                    case 0: HenchWeaponID = 0x1407; break;

                    case 1: HenchWeaponID = 0x143D; break;

                    case 2: HenchWeaponID = 0xF5C; break;

                    case 3: HenchWeaponID = 0x143B; break;
                    }
                }
            }
            if (HenchShieldID > 0)
            {
            }
            else
            {
                switch (Utility.Random(14))
                {
                case 0: HenchShieldID = 0x1BC3; break;

                case 1: HenchShieldID = 0x1B73; break;

                case 2: HenchShieldID = 0x1B72; break;

                case 3: HenchShieldID = 0x1B7A; break;

                case 4: HenchShieldID = 0x1B79; break;

                case 5: HenchShieldID = 0x1BC4; break;

                case 6: HenchShieldID = 0x1B7B; break;

                case 7: HenchShieldID = 0x1B74; break;

                case 8: HenchShieldID = 0x1B76; break;

                case 9: HenchShieldID = 0x2FCB; break;

                case 10: HenchShieldID = 0x2FCA; break;

                case 11: HenchShieldID = 0x2FC9; break;

                case 12: HenchShieldID = 0x2B74; break;

                case 13: HenchShieldID = 0x2B75; break;
                }
            }
            if (HenchHelmID > 0)
            {
            }
            else
            {
                switch (Utility.Random(5))
                {
                case 0: HenchHelmID = 0x1412; break;

                case 1: HenchHelmID = 0x140A; break;

                case 2: HenchHelmID = 0x140C; break;

                case 3: HenchHelmID = 0x1408; break;

                case 4: HenchHelmID = 0; break;
                }
            }

            Name = "fighter henchman";
        }
示例#2
0
        public HenchmanWizardItem()
        {
            ItemID = 0xE2D;

            if (HenchGearColor > 0)
            {
                Hue = HenchGearColor;
            }
            else
            {
                int color = Utility.Random(19);
                HenchGearColor  = HenchmanFunctions.GetHue(color);
                Hue             = HenchGearColor;
                HenchGloves     = Utility.RandomMinMax(1, 2);
                HenchCloakColor = HenchmanFunctions.GetHue(color);
                HenchCloak      = Utility.RandomMinMax(1, 2);
                HenchRobe       = Utility.RandomMinMax(1, 2);
                if (Utility.Random(2) == 1)
                {
                    HenchHatColor = HenchGearColor;
                }
                else
                {
                    HenchHatColor = HenchCloakColor;
                }
            }

            if (HenchWeaponID > 0)
            {
            }
            else
            {
                switch (Utility.Random(3))
                {
                case 0: HenchWeaponID = 0xE89; break;

                case 1: HenchWeaponID = 0x13F8; break;

                case 2: HenchWeaponID = 0xDF0; break;
                }
            }
            if (HenchHelmID > 0)
            {
            }
            else
            {
                switch (Utility.Random(10))
                {
                case 0: HenchHelmID = 5914; break;

                case 1: HenchHelmID = 5911; break;

                case 2: HenchHelmID = 5910; break;

                case 3: HenchHelmID = 5908; break;

                case 4: HenchHelmID = 5912; break;

                case 5: HenchHelmID = 5907; break;

                case 6: HenchHelmID = 5444; break;

                case 7: HenchHelmID = 0x1540; break;

                case 8: HenchHelmID = 0; break;

                case 9: HenchHelmID = 0x2B6E; break;
                }
            }

            Name = "wizard henchman";
        }
示例#3
0
        public HenchmanArcherItem() : base()
        {
            ItemID = 0xF50;

            if (HenchGearColor > 0)
            {
                Hue = HenchGearColor;
            }
            else
            {
                Hue = Utility.RandomList(0, 0x8AC, 0x845, 0x851, 0x47E, 0x4AA, 0xB85, 0x497, 0x89F, 0x483); HenchGearColor = Hue;
            }

            HenchCloak      = Utility.RandomMinMax(1, 2);
            HenchCloakColor = HenchmanFunctions.GetHue(Utility.Random(19));

            if (HenchArmorType > 0)
            {
            }
            else
            {
                HenchArmorType = Utility.RandomMinMax(1, 2);
            }
            if (HenchWeaponType > 0)
            {
            }
            else
            {
                HenchWeaponType = Utility.RandomMinMax(1, 2);
            }

            if (HenchWeaponID > 0)
            {
            }
            else
            {
                if (HenchWeaponType != 1)                   // BOW
                {
                    switch (Utility.Random(4))
                    {
                    case 0: HenchWeaponID = 0x13B2; break;

                    case 1: HenchWeaponID = 0x2D2B; break;

                    case 2: HenchWeaponID = 0x26C2; break;

                    case 3: HenchWeaponID = 0x2D1E; break;
                    }
                }
                else                 // CROSSBOW
                {
                    switch (Utility.Random(3))
                    {
                    case 0: HenchWeaponID = 0x26C3; break;

                    case 1: HenchWeaponID = 0xF50; break;

                    case 2: HenchWeaponID = 0x13FD; break;
                    }
                }
            }
            if (HenchHelmID > 0)
            {
            }
            else
            {
                switch (Utility.Random(5))
                {
                case 0: HenchHelmID = 0x2B6E; break;

                case 1: HenchHelmID = 0x13BB; break;

                case 2: HenchHelmID = 0x1DB9; break;

                case 3: HenchHelmID = 0x1DB9; break;

                case 4: HenchHelmID = 0; break;
                }
            }

            Name = "archer henchman";
        }