Beispiel #1
0
        public Syth() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            SpeechHue = Utility.RandomTalkHue();
            Title     = "the Syth";
            Hue       = Utility.RandomSkinColor();
            if (Utility.RandomBool())
            {
                Hue = Utility.RandomList(0x6F6, 0x97F, 0x99B, 0x6E4, 0x5E0, 0xB38, 0xB2B);
            }

            if (this.Female = Utility.RandomBool())
            {
                Body = 0x191;
                Name = NameList.RandomName("dark_elf_prefix_male") + NameList.RandomName("dark_elf_suffix_female");
                Utility.AssignRandomHair(this);
                HairHue = Utility.RandomHairHue();
            }
            else
            {
                Body = 0x190;
                Name = NameList.RandomName("dark_elf_prefix_female") + NameList.RandomName("dark_elf_suffix_male");
                Utility.AssignRandomHair(this);
                int HairColor = Utility.RandomHairHue();
                FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269);
                HairHue          = HairColor;
                FacialHairHue    = HairColor;
            }

            SetStr(350, 400);
            SetDex(177, 255);
            SetInt(350, 400);

            SetHits(502, 531);

            SetDamage(22, 29);

            SetDamageType(ResistanceType.Physical, 50);
            SetDamageType(ResistanceType.Energy, 50);

            SetResistance(ResistanceType.Physical, 45, 55);
            SetResistance(ResistanceType.Fire, 30, 40);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 40, 50);
            SetResistance(ResistanceType.Energy, 60, 70);

            SetSkill(SkillName.EvalInt, 100.5, 150.0);
            SetSkill(SkillName.Magery, 100.5, 150.0);
            SetSkill(SkillName.Meditation, 100.5, 150.0);
            SetSkill(SkillName.MagicResist, 100.5, 150.0);

            SetSkill(SkillName.Anatomy, 100.5, 150.0);
            SetSkill(SkillName.MagicResist, 100.5, 150.0);
            SetSkill(SkillName.Wrestling, 100.5, 150.0);
            SetSkill(SkillName.Swords, 100.5, 150.0);
            SetSkill(SkillName.Tactics, 100.5, 150.0);

            Fame  = 14000;
            Karma = -14000;

            int color = Utility.RandomList(0xB80, 0xB5E, 0xB39, 0xB3A, 0xA9F, 0x99E, 0x997, 0x8D9, 0x8DA, 0x8DB, 0x8DC, 0x8B9);

            VirtualArmor = 90;

            Item robe = new AssassinRobe(color);

            robe.Name = "Syth robe";
            AddItem(robe);
            if (Utility.RandomMinMax(1, 10) == 1)
            {
                SpecialItem(robe, this);
            }

            Item boots = new ElvenBoots(color);

            boots.Name = "Syth boots";
            AddItem(boots);
            if (Utility.RandomMinMax(1, 10) == 1)
            {
                SpecialItem(boots, this);
            }

            if (Utility.RandomBool())
            {
                Item cloak = new Cloak(color);
                cloak.Name = "Syth cloak";
                AddItem(cloak);
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    SpecialItem(cloak, this);
                }
            }

            if (Utility.RandomBool())
            {
                Item gloves = new LeatherGloves();
                gloves.Hue  = color;
                gloves.Name = "Syth gloves";
                AddItem(gloves);
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    SpecialItem(gloves, this);
                }
            }

            Item hood = new FloppyHat(color);

            hood.Name   = "Syth hood";
            hood.ItemID = 0x4CDA;
            if (Utility.RandomMinMax(1, 4) == 1)
            {
                hood.Name = "Syth cowl"; hood.ItemID = 0x4CDC;
            }
            AddItem(hood);
            if (Utility.RandomMinMax(1, 10) == 1)
            {
                SpecialItem(hood, this);
            }

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                if (Utility.RandomMinMax(1, 5) == 1)
                {
                    Item sword = new DoubleLaserSword();
                    sword.Name = "Syth double laser sword";
                    ((BaseWeapon)sword).Attributes.SpellChanneling = 1;
                    AddItem(sword);
                    if (Utility.RandomMinMax(1, 10) == 1)
                    {
                        SpecialItem(sword, this);
                    }
                }
                else
                {
                    Item sword = new LightSword();
                    sword.Name = "Syth laser sword";
                    ((BaseWeapon)sword).Attributes.SpellChanneling = 1;
                    AddItem(sword);
                    if (Utility.RandomMinMax(1, 10) == 1)
                    {
                        SpecialItem(sword, this);
                    }
                }
            }
            else
            {
                Item sword = new Longsword();
                sword.Name = "Syth sword";
                ((BaseWeapon)sword).Attributes.SpellChanneling = 1;
                AddItem(sword);
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    SpecialItem(sword, this);
                }
                if (Server.Misc.MaterialInfo.IsMetalItem(sword) && Utility.RandomMinMax(1, 20) == 1)
                {
                    ((BaseWeapon)sword).Resource = CraftResource.Xormite;
                }
                else if (Server.Misc.MaterialInfo.IsMetalItem(sword))
                {
                    Server.Misc.MorphingTime.MakeSpaceAceMetalArmorWeapon(sword, null);
                }
            }
        }
Beispiel #2
0
        public CosmicGargoyle() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = NameList.RandomName("drakkul");
            Title       = "the cosmic gargoyle";
            Body        = 127;
            BaseSoundID = 0x174;

            SetStr(360, 550);
            SetDex(102, 150);
            SetInt(152, 200);

            SetHits(282, 385);

            SetDamage(7, 14);

            SetResistance(ResistanceType.Physical, 40, 60);
            SetResistance(ResistanceType.Fire, 15, 25);
            SetResistance(ResistanceType.Cold, 15, 25);
            SetResistance(ResistanceType.Poison, 15, 25);
            SetResistance(ResistanceType.Energy, 60, 70);

            SetSkill(SkillName.Wrestling, 90.1, 100.0);
            SetSkill(SkillName.Tactics, 90.1, 100.0);
            SetSkill(SkillName.MagicResist, 120.4, 160.0);
            SetSkill(SkillName.Anatomy, 50.5, 100.0);
            SetSkill(SkillName.Swords, 90.1, 100.0);
            SetSkill(SkillName.Macing, 90.1, 100.0);
            SetSkill(SkillName.Fencing, 90.1, 100.0);
            SetSkill(SkillName.Magery, 90.1, 100.0);
            SetSkill(SkillName.EvalInt, 90.1, 100.0);
            SetSkill(SkillName.Meditation, 90.1, 100.0);

            Fame  = 10000;
            Karma = -10000;

            VirtualArmor = 50;

            bool keepSword = true;

            if (Utility.RandomMinMax(1, 20) == 1)
            {
                keepSword = false;
            }

            if (Utility.RandomBool())
            {
                Item sword = new LightSword(); if (keepSword)
                {
                    sword.LootType = LootType.Blessed;
                }
                AddItem(sword);
            }
            else
            {
                Item swords = new DoubleLaserSword(); if (keepSword)
                {
                    swords.LootType = LootType.Blessed;
                }
                AddItem(swords);
            }
        }
Beispiel #3
0
        public Jedi() : base(AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4)
        {
            SpeechHue = Utility.RandomTalkHue();
            Title     = "the Jedi";
            Hue       = Utility.RandomSkinColor();

            if (this.Female = Utility.RandomBool())
            {
                Body = 0x191;
                Name = NameList.RandomName("female");
                Utility.AssignRandomHair(this);
                HairHue = Utility.RandomHairHue();
            }
            else
            {
                Body = 0x190;
                Name = NameList.RandomName("male");
                Utility.AssignRandomHair(this);
                int HairColor = Utility.RandomHairHue();
                FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269);
                HairHue          = HairColor;
                FacialHairHue    = HairColor;
            }

            SetStr(350, 400);
            SetDex(177, 255);
            SetInt(350, 400);

            SetHits(502, 531);

            SetDamage(22, 29);

            SetDamageType(ResistanceType.Physical, 50);
            SetDamageType(ResistanceType.Energy, 50);

            SetResistance(ResistanceType.Physical, 45, 55);
            SetResistance(ResistanceType.Fire, 30, 40);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 40, 50);
            SetResistance(ResistanceType.Energy, 60, 70);

            SetSkill(SkillName.EvalInt, 100.5, 150.0);
            SetSkill(SkillName.Magery, 100.5, 150.0);
            SetSkill(SkillName.Meditation, 100.5, 150.0);
            SetSkill(SkillName.MagicResist, 100.5, 150.0);

            SetSkill(SkillName.Anatomy, 100.5, 150.0);
            SetSkill(SkillName.MagicResist, 100.5, 150.0);
            SetSkill(SkillName.Wrestling, 100.5, 150.0);
            SetSkill(SkillName.Swords, 100.5, 150.0);
            SetSkill(SkillName.Tactics, 100.5, 150.0);

            Fame  = 14000;
            Karma = 14000;

            int color = Utility.RandomNeutralHue();

            VirtualArmor = 90;

            Item robe = new Robe(color);

            robe.Name = "Jedi robe";
            AddItem(robe);
            if (Utility.RandomMinMax(1, 10) == 1)
            {
                SpecialItem(robe, this);
            }

            Item boots = new ElvenBoots();

            boots.Name = "Jedi boots";
            AddItem(boots);
            if (Utility.RandomMinMax(1, 10) == 1)
            {
                SpecialItem(boots, this);
            }

            if (Utility.RandomBool())
            {
                Item cloak = new Cloak(Utility.RandomNeutralHue());
                cloak.Name = "Jedi cloak";
                AddItem(cloak);
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    SpecialItem(cloak, this);
                }
            }

            if (Utility.RandomBool())
            {
                Item gloves = new LeatherGloves();
                gloves.Name = "Jedi gloves";
                AddItem(gloves);
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    SpecialItem(gloves, this);
                }
            }

            Item hood = new ClothHood(color);

            hood.Name = "Jedi hood";
            AddItem(hood);
            if (Utility.RandomMinMax(1, 10) == 1)
            {
                SpecialItem(hood, this);
            }

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                if (Utility.RandomMinMax(1, 5) == 1)
                {
                    Item sword = new DoubleLaserSword();
                    sword.Name = "Jedi double laser sword";
                    ((BaseWeapon)sword).Attributes.SpellChanneling = 1;
                    AddItem(sword);
                    if (Utility.RandomMinMax(1, 10) == 1)
                    {
                        SpecialItem(sword, this);
                    }
                }
                else
                {
                    Item sword = new LightSword();
                    sword.Name = "Jedi laser sword";
                    ((BaseWeapon)sword).Attributes.SpellChanneling = 1;
                    AddItem(sword);
                    if (Utility.RandomMinMax(1, 10) == 1)
                    {
                        SpecialItem(sword, this);
                    }
                }
            }
            else
            {
                Item sword = new Longsword();
                sword.Name = "Jedi sword";
                ((BaseWeapon)sword).Attributes.SpellChanneling = 1;
                AddItem(sword);
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    SpecialItem(sword, this);
                }
                if (Server.Misc.MaterialInfo.IsMetalItem(sword) && Utility.RandomMinMax(1, 20) == 1)
                {
                    ((BaseWeapon)sword).Resource = CraftResource.Xormite;
                }
                else if (Server.Misc.MaterialInfo.IsMetalItem(sword))
                {
                    Server.Misc.MorphingTime.MakeSpaceAceMetalArmorWeapon(sword, null);
                }
            }
        }