public Jailor() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8) { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the jailor"; Name = NameList.RandomName(Female ? "female" : "male"); Hue = Utility.RandomSkinHue(); SetStr(96, 110); SetDex(96, 110); SetInt(71, 85); Karma = Utility.RandomMinMax(13, -45); SetSkill(SkillName.Tactics, 75, 97.5); SetSkill(SkillName.MagicResist, 75, 97.5); SetSkill(SkillName.Parry, 75, 97.5); SetSkill(SkillName.Swords, 15, 37.5); SetSkill(SkillName.Macing, 15, 37.5); SetSkill(SkillName.Fencing, 15, 37.5); SetSkill(SkillName.Wrestling, 15, 37.5); Item item = null; if (!Female) { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair(item.Hue); item = new ChainChest(); AddItem(item); item = new ChainLegs(); AddItem(item); item = new BronzeShield(); AddItem(item); item = new Boots(); item.Hue = Utility.RandomNeutralHue(); AddItem(item); item = new VikingSword(); AddItem(item); PackGold(15, 100); } else { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = new ChainChest(); AddItem(item); item = new ChainLegs(); AddItem(item); item = new BronzeShield(); AddItem(item); item = new Boots(); item.Hue = Utility.RandomNeutralHue(); AddItem(item); item = new VikingSword(); AddItem(item); PackGold(15, 100); } }
public DummySword() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Swordsman int iHue = 20 + Team * 40; // int jHue = 25 + Team * 40; // Skills and Stats this.InitStats(125, 125, 90); this.Skills[SkillName.Swords].Base = 120; this.Skills[SkillName.Anatomy].Base = 120; this.Skills[SkillName.Healing].Base = 120; this.Skills[SkillName.Tactics].Base = 120; this.Skills[SkillName.Parry].Base = 120; // Name this.Name = "Swordsman"; // Equip Katana kat = new Katana(); kat.Crafter = this; kat.Movable = true; kat.Quality = WeaponQuality.Regular; AddItem(kat); Boots bts = new Boots(); bts.Hue = iHue; AddItem(bts); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Newbied; cht.Crafter = this; cht.Quality = ArmorQuality.Regular; AddItem(cht); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Newbied; chl.Crafter = this; chl.Quality = ArmorQuality.Regular; AddItem(chl); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Newbied; pla.Crafter = this; pla.Quality = ArmorQuality.Regular; AddItem(pla); Bandage band = new Bandage(50); AddToBackpack(band); }
public DummyMace() : base(AIType.AI_Melee, FightMode.All | FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Macer int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats this.InitStats(125, 125, 90); this.Skills[SkillName.Macing].Base = 120; this.Skills[SkillName.Anatomy].Base = 120; this.Skills[SkillName.Healing].Base = 120; this.Skills[SkillName.Tactics].Base = 120; // Name this.Name = "Macer"; // Equip WarHammer war = new WarHammer(); war.Movable = true; war.Crafter = this; war.Quality = WeaponQuality.Regular; AddItem(war); Boots bts = new Boots(); bts.Hue = iHue; AddItem(bts); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Newbied; cht.Crafter = this; cht.Quality = ArmorQuality.Regular; AddItem(cht); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Newbied; chl.Crafter = this; chl.Quality = ArmorQuality.Regular; AddItem(chl); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Newbied; pla.Crafter = this; pla.Quality = ArmorQuality.Regular; AddItem(pla); Bandage band = new Bandage(50); AddToBackpack(band); }
public DummyFence() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Fencer int iHue = 20 + Team * 40; // int jHue = 25 + Team * 40; // Skills and Stats this.InitStats(125, 125, 90); this.Skills[SkillName.Fencing].Base = 120; this.Skills[SkillName.Anatomy].Base = 120; this.Skills[SkillName.Healing].Base = 120; this.Skills[SkillName.Tactics].Base = 120; // Name this.Name = "Fencer"; // Equip Spear ssp = new Spear(); ssp.Movable = true; ssp.Crafter = this; ssp.Quality = WeaponQuality.Regular; AddItem(ssp); Boots snd = new Boots(); snd.Hue = iHue; snd.LootType = LootType.Newbied; AddItem(snd); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Newbied; cht.Crafter = this; cht.Quality = ArmorQuality.Regular; AddItem(cht); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Newbied; chl.Crafter = this; chl.Quality = ArmorQuality.Regular; AddItem(chl); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Newbied; pla.Crafter = this; pla.Quality = ArmorQuality.Regular; AddItem(pla); Bandage band = new Bandage(50); AddToBackpack(band); }
public ArmyBaseMace(int Team) : base(Team, AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // An ArmyBase Hammerman int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats this.InitStats((90 + Utility.Random(35)), (90 + Utility.Random(35)), (75 + Utility.Random(15))); this.Skills[SkillName.Macing].Base = (90 + Utility.Random(30)); this.Skills[SkillName.Anatomy].Base = (90 + Utility.Random(30)); this.Skills[SkillName.Healing].Base = (90 + Utility.Random(30)); this.Skills[SkillName.Tactics].Base = (90 + Utility.Random(30)); // Name this.Name = "Hammerman"; // Equip WarHammer war = new WarHammer(); war.Movable = true; war.Crafter = this; war.Quality = WeaponQuality.Regular; AddItem(war); Boots bts = new Boots(); bts.Hue = iHue; AddItem(bts); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Newbied; cht.Crafter = this; cht.Quality = ArmorQuality.Regular; AddItem(cht); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Newbied; chl.Crafter = this; chl.Quality = ArmorQuality.Regular; AddItem(chl); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Newbied; pla.Crafter = this; pla.Quality = ArmorQuality.Regular; AddItem(pla); Bandage band = new Bandage(50); AddToBackpack(band); }
public DummyFence() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Fencer var iHue = 20 + Team * 40; var jHue = 25 + Team * 40; // Skills and Stats InitStats(125, 125, 90); Skills.Fencing.Base = 120; Skills.Anatomy.Base = 120; Skills.Healing.Base = 120; Skills.Tactics.Base = 120; // Equip var ssp = new Spear(); ssp.Movable = true; ssp.Crafter = this; ssp.Quality = WeaponQuality.Regular; AddItem(ssp); var snd = new Boots(); snd.Hue = iHue; snd.LootType = LootType.Newbied; AddItem(snd); var cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Newbied; cht.Crafter = this; cht.Quality = ArmorQuality.Regular; AddItem(cht); var chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Newbied; chl.Crafter = this; chl.Quality = ArmorQuality.Regular; AddItem(chl); var pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Newbied; pla.Crafter = this; pla.Quality = ArmorQuality.Regular; AddItem(pla); var band = new Bandage(50); AddToBackpack(band); }
public DummySword() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Swordsman var iHue = 20 + Team * 40; var jHue = 25 + Team * 40; // Skills and Stats InitStats(125, 125, 90); Skills.Swords.Base = 120; Skills.Anatomy.Base = 120; Skills.Healing.Base = 120; Skills.Tactics.Base = 120; Skills.Parry.Base = 120; // Equip var kat = new Katana(); kat.Crafter = this; kat.Movable = true; kat.Quality = WeaponQuality.Regular; AddItem(kat); var bts = new Boots(); bts.Hue = iHue; AddItem(bts); var cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Newbied; cht.Crafter = this; cht.Quality = ArmorQuality.Regular; AddItem(cht); var chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Newbied; chl.Crafter = this; chl.Quality = ArmorQuality.Regular; AddItem(chl); var pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Newbied; pla.Crafter = this; pla.Quality = ArmorQuality.Regular; AddItem(pla); var band = new Bandage(50); AddToBackpack(band); }
private void CreateClassic() { m_MoveSound = 821; m_CaptureSound = 1094; m_DeathSound = 1059; m_Piece.Female = false; m_Piece.BodyValue = 0x190; if (m_BChessboard.OverrideMinorHue) { m_Piece.Hue = Hue; } else { m_Piece.Hue = m_BChessboard.SkinHue; } m_Piece.AddItem(new ShortHair(m_BChessboard.OverrideMinorHue ? Hue : m_BChessboard.HairHue)); Item item = null; if (m_Color == ChessColor.White) { item = new OrderShield(); m_Piece.AddItem(item); } else { item = new ChaosShield(); m_Piece.AddItem(item); } item = new ChainChest(); item.Hue = Hue; m_Piece.AddItem(item); item = new ChainLegs(); item.Hue = MinorHue; m_Piece.AddItem(item); item = new Boots(); item.Hue = Hue; m_Piece.AddItem(item); item = new Scimitar(); m_Piece.AddItem(item); }
private void CreateClassic() { m_MoveSound = 821; m_CaptureSound = 1094; m_DeathSound = 1059; m_Piece.Female = false; m_Piece.BodyValue = 0x190; if (m_BChessboard.OverrideMinorHue) { m_Piece.Hue = Hue; } else { m_Piece.Hue = m_BChessboard.SkinHue; } m_Piece.HairItemID = 0x203B; //Short Hair m_Piece.HairHue = m_BChessboard.OverrideMinorHue ? Hue : m_BChessboard.HairHue; Item item = null; item = new ChainChest(); item.Hue = Hue; m_Piece.AddItem(item); item = new ChainLegs(); item.Hue = MinorHue; m_Piece.AddItem(item); item = new Boots(); item.Hue = Hue; m_Piece.AddItem(item); item = new Buckler(); item.Hue = MinorHue; m_Piece.AddItem(item); item = new Scimitar(); item.Hue = MinorHue; m_Piece.AddItem(item); }
public override void InitOutfit() { WipeLayers(); int Valorite = 0x8AB; EmoteHue = Utility.RandomYellowHue(); ChainChest chest = new ChainChest(); chest.Resource = CraftResource.Valorite; chest.LootType = LootType.Newbied; AddItem(chest); ChainLegs legs = new ChainLegs(); legs.Resource = CraftResource.Valorite; legs.LootType = LootType.Newbied; AddItem(legs); FeatheredHat hat = new FeatheredHat(); hat.Hue = Valorite; hat.LootType = LootType.Regular; AddItem(hat); AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new PageboyHair(Utility.RandomHairHue())); Runebook runebook = new Runebook(); runebook.Hue = Utility.RandomMetalHue(); runebook.Name = "Collections"; runebook.LootType = LootType.Newbied; AddItem(runebook); AddItem(new GoldRing()); PackItem(new Bandage(Utility.RandomMinMax(VirtualArmor, VirtualArmor * 2))); PackStrongPotions(6, 12); PackItem(new Pouch()); PackGold(50, 60); }
public BarFlyWarriorWest() : base( ) { if (Utility.RandomMinMax(1, 2) == 1) { Body = 401; Name = NameList.RandomName("female"); } else { Body = 400; Name = NameList.RandomName("male"); FacialHairItemID = Utility.RandomList(0, 0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); } Direction = Direction.West; Blessed = true; CantWalk = true; Title = TavernPatrons.GetTitle(); Hue = Utility.RandomSkinHue(); Utility.AssignRandomHair(this); SpeechHue = Utility.RandomDyedHue(); NameHue = Utility.RandomOrangeHue(); SetStr(386, 400); SetDex(151, 165); SetInt(161, 175); SetHits(300, 400); SetDamage(8, 10); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 35, 45); SetResistance(ResistanceType.Fire, 25, 30); SetResistance(ResistanceType.Cold, 25, 30); SetResistance(ResistanceType.Poison, 10, 20); SetResistance(ResistanceType.Energy, 10, 20); SetSkill(SkillName.DetectHidden, 80.0); SetSkill(SkillName.Anatomy, 125.0); SetSkill(SkillName.Poisoning, 60.0, 82.5); SetSkill(SkillName.MagicResist, 83.5, 92.5); SetSkill(SkillName.Swords, 125.0); SetSkill(SkillName.Tactics, 125.0); SetSkill(SkillName.Wrestling, 100); Fame = 0; Karma = 0; VirtualArmor = 30; PackItem(new Longsword()); AddItem(new Boots(Utility.RandomNeutralHue())); if (1 == Utility.RandomMinMax(1, 2)) { AddItem(new Cloak(RandomThings.GetRandomColor(0))); } int aHue = Utility.RandomList(0x973, 0x966, 0x96D, 0x972, 0x8A5, 0x979, 0x89F, 0x8AB, 0, Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue()); int lHue = Utility.RandomList(0x8AC, 0x845, 0x851, 0x47E, 0x4AA, 0xB85, 0x497, 0x89F, 0x483, 0, Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue()); int iArmor = Utility.RandomMinMax(1, 4); if (iArmor == 1) { Item cloth1 = new PlateArms(); cloth1.Hue = aHue; AddItem(cloth1); Item cloth2 = new PlateGorget(); cloth2.Hue = aHue; AddItem(cloth2); Item cloth3 = new PlateLegs(); cloth3.Hue = aHue; AddItem(cloth3); Item cloth4 = new PlateChest(); cloth4.Hue = aHue; AddItem(cloth4); } else if (iArmor == 2) { Item cloth1 = new ChainChest(); cloth1.Hue = aHue; AddItem(cloth1); Item cloth2 = new ChainLegs(); cloth2.Hue = aHue; AddItem(cloth2); Item cloth3 = new RingmailArms(); cloth3.Hue = aHue; AddItem(cloth3); Item cloth4 = new PlateGorget(); cloth4.Hue = aHue; AddItem(cloth4); } else if (iArmor == 3) { Item cloth1 = new StuddedChest(); cloth1.Hue = lHue; AddItem(cloth1); Item cloth2 = new StuddedArms(); cloth2.Hue = lHue; AddItem(cloth2); Item cloth3 = new StuddedLegs(); cloth3.Hue = lHue; AddItem(cloth3); Item cloth4 = new StuddedGorget(); cloth4.Hue = lHue; AddItem(cloth4); } else { Item cloth1 = new LeatherArms(); cloth1.Hue = lHue; AddItem(cloth1); Item cloth2 = new LeatherChest(); cloth2.Hue = lHue; AddItem(cloth2); Item cloth3 = new LeatherGorget(); cloth3.Hue = lHue; AddItem(cloth3); Item cloth4 = new LeatherLegs(); cloth4.Hue = lHue; AddItem(cloth4); } int HairColor = Utility.RandomHairHue(); HairHue = HairColor; FacialHairHue = HairColor; }
public Werewolf(string name) : base(name, 277, 0x3e91, AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) //mounted nightmare { Title = "The Werewolf"; Hue = Utility.RandomList(0, 2310, 1175, 1109); BaseSoundID = 1248; if (this.Female = Utility.RandomBool()) //this is the random sex of unmounted mobile { Body = 0x191; Name = NameList.RandomName("female"); } else { Body = 0x190; Name = NameList.RandomName("male"); } SetStr(496, 525); SetDex(86, 105); SetInt(86, 125); SetHits(298, 315); SetDamage(16, 22); SetDamageType(ResistanceType.Physical, 40); SetDamageType(ResistanceType.Fire, 40); SetDamageType(ResistanceType.Energy, 20); SetResistance(ResistanceType.Physical, 55, 65); SetResistance(ResistanceType.Fire, 30, 40); SetResistance(ResistanceType.Cold, 30, 40); SetResistance(ResistanceType.Poison, 30, 40); SetResistance(ResistanceType.Energy, 20, 30); SetSkill(SkillName.EvalInt, 10.4, 50.0); SetSkill(SkillName.Magery, 10.4, 50.0); SetSkill(SkillName.MagicResist, 85.3, 100.0); SetSkill(SkillName.Tactics, 97.6, 100.0); SetSkill(SkillName.Wrestling, 80.5, 92.5); Fame = 5; Karma = 5; VirtualArmor = 70; Tamable = true; ControlSlots = 4; MinTameSkill = 95.1; AddItem(new Sandals(1)); //This is their only rare drop Unless you comment out the movable : false int hue = Utility.RandomMinMax(1410, 1450); //Random Zog Green Item chest = new ChainChest(); chest.Hue = hue; chest.Movable = false; //can remove this to make Zog Green colored armored drop AddItem(chest); Item gloves = new LeatherGloves(); gloves.Hue = hue; gloves.Movable = false; //can remove this to make Zog Green colored armored drop AddItem(gloves); Item legs = new ChainLegs(); legs.Hue = hue; legs.Movable = false; //can remove this to make Zog Green colored armored drop AddItem(legs); Item hair = new Item(Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2049)); hair.Hue = 0; hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); Container pack = Backpack; if (pack != null) { pack.Delete(); } pack = new StrongBackpack(); pack.Movable = false; AddItem(pack); }
public DupresSquire() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("male"); Title = "The Squire"; Body = 0x190; Hue = Utility.RandomSkinHue(); Female = false; SetStr(190, 200); SetDex(50, 75); SetInt(150, 250); SetHits(3900, 4100); SetDamage(22, 28); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 50, 70); SetResistance(ResistanceType.Fire, 50, 70); SetResistance(ResistanceType.Cold, 50, 70); SetResistance(ResistanceType.Poison, 50, 70); SetResistance(ResistanceType.Energy, 50, 70); SetSkill(SkillName.EvalInt, 195.0, 220.0); SetSkill(SkillName.Magery, 195.0, 220.0); SetSkill(SkillName.Meditation, 195.0, 200.0); SetSkill(SkillName.MagicResist, 100.0, 120.0); SetSkill(SkillName.Tactics, 195.0, 220.0); SetSkill(SkillName.Wrestling, 195.0, 220.0); VirtualArmor = 70; Item vikingsword = new VikingSword(); vikingsword.LootType = LootType.Blessed; SetWearable(vikingsword); Item cc = new ChainChest(); cc.LootType = LootType.Blessed; SetWearable(cc); Item cl = new ChainLegs(); cl.LootType = LootType.Blessed; SetWearable(cl); Item ch = new CloseHelm(); ch.LootType = LootType.Blessed; SetWearable(ch); Item boots = new Boots(1); boots.LootType = LootType.Blessed; SetWearable(boots); Item pgl = new PlateGloves(); pgl.LootType = LootType.Blessed; SetWearable(pgl); Item mks = new MetalKiteShield(); mks.LootType = LootType.Blessed; mks.Hue = 0x776; SetWearable(mks); Item bs = new BodySash(0x794); // dark purple bs.LootType = LootType.Blessed; SetWearable(bs); PackGold(400, 600); }
public FamousPiratesSword() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A FamousPirates Swordsman int Hue = 1107; // Skills and Stats this.InitStats(350, 350, 310); this.Skills[SkillName.Swords].Base = 150; this.Skills[SkillName.Anatomy].Base = 150; this.Skills[SkillName.Healing].Base = 150; this.Skills[SkillName.Tactics].Base = 150; this.Skills[SkillName.Parry].Base = 150; // Name this.Name = "Elizabeth Swann"; // Equip Katana kat = new Katana(); kat.Crafter = this; kat.Movable = true; kat.Quality = WeaponQuality.Exceptional; AddItem(kat); Boots bts = new Boots(); bts.Movable = false; bts.Hue = Hue; AddItem(bts); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Regular; cht.Crafter = this; cht.Quality = ArmorQuality.Exceptional; AddItem(cht); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Regular; chl.Crafter = this; chl.Quality = ArmorQuality.Exceptional; AddItem(chl); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Regular; pla.Crafter = this; pla.Quality = ArmorQuality.Exceptional; AddItem(pla); TricorneHat tch = new TricorneHat(); tch.Movable = false; tch.Hue = Hue; AddItem(tch); FancyShirt fst = new FancyShirt(); fst.Movable = false; fst.Hue = Hue; AddItem(fst); Skirt srt = new Skirt(); srt.Movable = false; srt.Hue = Hue; AddItem(srt); Bandage band = new Bandage(50); AddToBackpack(band); }
public DarkElfWarrior() : base(AIType.AI_Archer, FightMode.Closest, 10, 3, 0.2, 0.4) { Title = "the Dark Elf"; Hue = 0x0597; Body = 0x190; Name = NameList.RandomName("golem controller"); AddItem(new Goatee(0)); AddItem(new LongHair(0)); Item temp; temp = new BoneChest(); temp.Hue = 0x0455; temp.Movable = false; AddItem(temp); temp = new BoneGloves(); temp.Hue = 0x0455; temp.Movable = false; AddItem(temp); temp = new BoneHelm(); temp.Hue = 0x0455; temp.Movable = false; AddItem(temp); temp = new ThighBoots(); temp.Hue = 0x0455; temp.Movable = false; AddItem(temp); temp = new ChainLegs(); temp.Hue = 0x0455; temp.Movable = false; AddItem(temp); temp = new Cloak(); temp.Hue = 0x0455; temp.Movable = false; AddItem(temp); temp = new FancyShirt(); temp.Hue = 0x0455; temp.Movable = false; AddItem(temp); SetStr(70, 90); SetDex(81, 95); SetInt(70, 100); SetHits(80, 110); SetStam(81, 95); SetDamage(15, 30); SetSkill(SkillName.Archery, 75.0, 100.0); SetSkill(SkillName.Tactics, 75.0, 100.0); SetSkill(SkillName.MagicResist, 15.0, 38.0); SetSkill(SkillName.Macing, 75.0, 100.0); SetSkill(SkillName.Parry, 40.0, 50.0); SetSkill(SkillName.Swords, 75.0, 100.0); SetSkill(SkillName.Wrestling, 25.0, 40.0); VirtualArmor = 19; Fame = Utility.RandomMinMax(3000, 4000); Karma = Utility.RandomMinMax(-5000, -3000); switch (Utility.Random(2)) { case 0: AddItem(new TwoHandedAxe()); break; case 1: AddItem(new VikingSword()); AddItem(new MetalShield()); break; } }
public FamousPiratesMace() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.9, 0.9) { int Hue = 2075; // Skills and Stats this.InitStats(350, 350, 310); this.Skills[SkillName.Macing].Base = 150; this.Skills[SkillName.Anatomy].Base = 150; this.Skills[SkillName.Healing].Base = 150; this.Skills[SkillName.Tactics].Base = 150; // Name this.Name = "Captain Hector Barbossa"; // Equip WarHammer war = new WarHammer(); war.Movable = true; war.Crafter = this; war.Quality = WeaponQuality.Exceptional; AddItem(war); Boots bts = new Boots(); bts.Movable = false; bts.Hue = Hue; AddItem(bts); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Regular; cht.Crafter = this; cht.Quality = ArmorQuality.Exceptional; AddItem(cht); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Regular; chl.Crafter = this; chl.Quality = ArmorQuality.Exceptional; AddItem(chl); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Regular; pla.Crafter = this; pla.Quality = ArmorQuality.Exceptional; AddItem(pla); TricorneHat tch = new TricorneHat(); tch.Movable = false; tch.Hue = Hue; AddItem(tch); Bandage band = new Bandage(20); AddToBackpack(band); }
public FamousPiratesFence() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A FamousPirates Fencer int Hue = 2075; // Skills and Stats this.InitStats(450, 250, 410); this.Skills[SkillName.Fencing].Base = 150; this.Skills[SkillName.Anatomy].Base = 150; this.Skills[SkillName.Stealing].Base = 150; this.Skills[SkillName.Tactics].Base = 150; // Name this.Name = "Joshamee Gibbs"; // Equip Spear ssp = new Spear(); ssp.Movable = true; ssp.Crafter = this; ssp.Quality = WeaponQuality.Exceptional; AddItem(ssp); Sandals snd = new Sandals(); snd.Movable = false; snd.Hue = Hue; snd.LootType = LootType.Regular; AddItem(snd); ChainChest cht = new ChainChest(); cht.Movable = false; cht.LootType = LootType.Regular; cht.Crafter = this; cht.Quality = ArmorQuality.Exceptional; AddItem(cht); ChainLegs chl = new ChainLegs(); chl.Movable = false; chl.LootType = LootType.Regular; chl.Crafter = this; chl.Quality = ArmorQuality.Exceptional; AddItem(chl); PlateArms pla = new PlateArms(); pla.Movable = false; pla.LootType = LootType.Regular; pla.Crafter = this; pla.Quality = ArmorQuality.Exceptional; AddItem(pla); TricorneHat tch = new TricorneHat(); tch.Movable = false; tch.Hue = Hue; AddItem(tch); Bandage band = new Bandage(20); AddToBackpack(band); }
public HumanGuard() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.2, 0.4) { Title = "the Guard"; SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); Body = 0x190; Level = 8; if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); } else { Body = 0x190; Name = NameList.RandomName("male"); } Fame = 1000; Karma = 5000; RingmailArms arms = new RingmailArms(); arms.Hue = 0xA13; arms.Movable = false; AddItem(arms); ChainChest chest = new ChainChest(); chest.Hue = 0xA0B; chest.Movable = false; AddItem(chest); ChainLegs legs = new ChainLegs(); legs.Hue = 0xA13; legs.Movable = false; AddItem(legs); RingmailGloves gloves = new RingmailGloves(); gloves.Hue = 0xA13; gloves.Movable = false; AddItem(gloves); MetalShield shield = new MetalShield(); shield.Hue = 0xA0B; shield.Movable = false; AddItem(shield); Cloak cloak = new Cloak(); cloak.Hue = 0x95D; cloak.Movable = false; AddItem(cloak); BodySash sash = new BodySash(); sash.Hue = 0x95D; sash.Movable = false; AddItem(sash); Boots boots = new Boots(); boots.Hue = 0x95D; boots.Movable = false; AddItem(boots); PackGold(6, 8); SetSkill(SkillName.MagicResist, 50.0, 61.5); SetSkill(SkillName.Swords, 70.0, 90.5); SetSkill(SkillName.Tactics, 65.0, 87.5); SetSkill(SkillName.Wrestling, 25.0, 47.5); SetSkill(SkillName.Macing, 70.0, 90.7); SetStr(130, 150); SetDex(98, 115); SetInt(61, 85); SetHits(145, 168); SetDamage(9, 16); switch (Utility.Random(7)) { case 0: WarMace wmace = new WarMace(); wmace.Movable = false; AddItem(wmace); break; case 1: Bardiche bd = new Bardiche(); bd.Movable = false; AddItem(bd); break; case 2: Broadsword bsword = new Broadsword(); bsword.Movable = false; AddItem(bsword); break; case 3: Pike pike = new Pike(); pike.Movable = false; AddItem(pike); break; case 4: Halberd hbrd = new Halberd(); hbrd.Movable = false; AddItem(hbrd); break; case 5: Maul maul = new Maul(); maul.Movable = false; AddItem(maul); break; case 6: VikingSword vsword = new VikingSword(); vsword.Movable = false; AddItem(vsword); break; } AddItem(Server.Items.Hair.GetRandomHair(Female)); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static Item CreateMetalArmor(string gender) { Item item = null; int nType = Utility.RandomMinMax(0, 26); switch (nType) { case 0: item = new ChainCoif(); item.Name = "chainmail coif"; break; case 1: item = new ChainChest(); item.Name = "chainmail tunic"; break; case 2: item = new ChainLegs(); item.Name = "chainmail leggings"; break; case 3: item = new RingmailChest(); item.Name = "ringmail tunic"; break; case 4: item = new RingmailLegs(); item.Name = "ringmail leggings"; break; case 5: item = new RingmailArms(); item.Name = "ringmail sleeves"; break; case 6: item = new RingmailGloves(); item.Name = "ringmail gloves"; break; case 7: item = new PlateGorget(); item.Name = "platemail gorget"; break; case 8: item = new PlateLegs(); item.Name = "platemail leggings"; break; case 9: item = new PlateArms(); item.Name = "platemail arms"; break; case 10: item = new PlateGloves(); item.Name = "platemail gauntlets"; break; case 11: item = new PlateChest(); item.Name = "platemail tunic"; if (gender == "female" || Utility.RandomMinMax(0, 3) == 1) { item = new FemalePlateChest(); item.Name = "platemail tunic"; } break; case 12: case 13: switch (Utility.RandomMinMax(0, 4)) { case 0: item = new PlateHelm(); item.Name = "platemail helm"; break; case 1: item = new CloseHelm(); item.Name = "close helm"; break; case 2: item = new Helmet(); item.Name = "helmet"; break; case 3: item = new NorseHelm(); item.Name = "norse helm"; break; case 4: item = new Bascinet(); item.Name = "bascinet"; break; } break; case 14: item = new ChainHatsuburi(); item.Name = "chainmail hatsuburi"; break; case 15: item = new PlateHatsuburi(); item.Name = "platemail hatsuburi"; break; case 16: item = new LightPlateJingasa(); item.Name = "platemail jingasa"; break; case 17: item = new HeavyPlateJingasa(); item.Name = "platemail jingasa"; break; case 18: item = new SmallPlateJingasa(); item.Name = "platemail jingasa"; break; case 19: item = new DecorativePlateKabuto(); item.Name = "platemail kabuto"; break; case 20: item = new PlateBattleKabuto(); item.Name = "platemail kabuto"; break; case 21: item = new StandardPlateKabuto(); item.Name = "platemail kabuto"; break; case 22: item = new PlateDo(); item.Name = "platemail do"; break; case 23: item = new PlateHiroSode(); item.Name = "platemail hiro sade"; break; case 24: item = new PlateSuneate(); item.Name = "platemail suneate"; break; case 25: item = new PlateHaidate(); item.Name = "platemail haidate"; break; case 26: item = new ChainHatsuburi(); item.Name = "chainmail hatsuburi"; break; } return(item); }
public DummyFence() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Fencer int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats InitStats(125, 125, 90); Skills[SkillName.Fencing].Base = 120; Skills[SkillName.Anatomy].Base = 120; Skills[SkillName.Healing].Base = 120; Skills[SkillName.Tactics].Base = 120; // Name Name = "Fencer"; // Equip Spear ssp = new Spear { Movable = true, Crafter = this, Quality = ItemQuality.Normal }; AddItem(ssp); Boots snd = new Boots { Hue = iHue, LootType = LootType.Newbied }; AddItem(snd); ChainChest cht = new ChainChest { Movable = false, LootType = LootType.Newbied, Crafter = this, Quality = ItemQuality.Normal }; AddItem(cht); ChainLegs chl = new ChainLegs { Movable = false, LootType = LootType.Newbied, Crafter = this, Quality = ItemQuality.Normal }; AddItem(chl); PlateArms pla = new PlateArms { Movable = false, LootType = LootType.Newbied, Crafter = this, Quality = ItemQuality.Normal }; AddItem(pla); Bandage band = new Bandage(50); AddToBackpack(band); }
public KingLeonidas() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "King Leonidas"; Body = 400; Hue = 1020; SetStr(3020, 4000); SetDex(800); SetInt(160, 200); SetHits(900, 1000); SetDamage(25, 35); SetSkill(SkillName.MagicResist, 200.0); SetSkill(SkillName.Tactics, 200.0); SetSkill(SkillName.Wrestling, 200.0); new Horse().Rider = this; VikingSword weapon = new VikingSword(); weapon.Hue = 2125; weapon.Movable = false; AddItem(weapon); WoodenKiteShield shield = new WoodenKiteShield(); shield.Hue = 2125; shield.Movable = false; AddItem(shield); Circlet helm = new Circlet(); helm.Hue = 2125; helm.Movable = false; AddItem(helm); PlateArms arms = new PlateArms(); arms.Hue = 2125; AddItem(arms); PlateGloves gloves = new PlateGloves(); gloves.Hue = 2125; AddItem(gloves); ChainChest tunic = new ChainChest(); tunic.Hue = 2125; AddItem(tunic); ChainLegs legs = new ChainLegs(); legs.Hue = 2125; AddItem(legs); AddItem(new Boots()); HairItemID = 0x203C; // Short Hair HairHue = 742; Fame = 0; Karma = 0; VirtualArmor = 90; PackArmor(1, 20); }
public ElvenBladeMaster() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("elfmale"); Title = "the Blade Master"; SpeechHue = Utility.RandomDyedHue(); Hue = 349; Body = 0x190; Level = 10; NameHue = 2454; new Horse().Rider = this; LongHair hair = new LongHair(Utility.RandomNeutralHue()); hair.Movable = false; AddItem(hair); ChainChest chest = new ChainChest(); chest.Hue = 0x9C4; chest.Movable = false; AddItem(chest); RingmailArms arms = new RingmailArms(); arms.Hue = 0x9C4; arms.Movable = false; AddItem(arms); RingmailGloves gloves = new RingmailGloves(); gloves.Hue = 0x9C4; gloves.Movable = false; AddItem(gloves); ChainLegs legs = new ChainLegs(); legs.Hue = 0x9C4; legs.Movable = false; AddItem(legs); Cloak cloak = new Cloak(); cloak.Hue = 0xA17; cloak.Movable = false; AddItem(cloak); OrderShield shield = new OrderShield(); shield.Hue = 0x9C4; shield.Movable = false; AddItem(shield); Boots boots = new Boots(); boots.Hue = 0xA17; boots.Movable = false; AddItem(boots); PackGold(10, 17); SetSkill(SkillName.MagicResist, 80.0, 99.5); SetSkill(SkillName.Swords, 90.0, 102.5); SetSkill(SkillName.Tactics, 85.0, 97.5); SetSkill(SkillName.Wrestling, 65.0, 77.5); SetResistance(ResistanceType.Physical, 10, 25); SetResistance(ResistanceType.Fire, 10, 25); SetResistance(ResistanceType.Energy, 10, 25); SetResistance(ResistanceType.Cold, 10, 25); SetResistance(ResistanceType.Poison, 20, 30); SetStr(316, 370); SetDex(351, 415); SetInt(141, 165); SetHits(420, 483); SetDamage(11, 17); Karma = 5000; Fame = 5000; switch (Utility.Random(4)) { case 0: Scimitar scim = new Scimitar(); scim.Movable = false; AddItem(scim); break; case 1: Longsword lsword = new Longsword(); lsword.Movable = false; AddItem(lsword); break; case 2: Broadsword bsword = new Broadsword(); bsword.Movable = false; AddItem(bsword); break; case 3: Cutlass cl = new Cutlass(); cl.Movable = false; AddItem(cl); break; } }
public LordGuardian() : base(AIType.AI_Hybrid, FightMode.All | FightMode.Weakest, 10, 1, 0.15, 0.25) { BardImmune = true; FightStyle = FightStyle.Melee | FightStyle.Magic | FightStyle.Smart | FightStyle.Bless | FightStyle.Curse; UsesHumanWeapons = false; UsesBandages = true; UsesPotions = true; CanRun = true; CanReveal = true; // magic and smart SpeechHue = Utility.RandomDyedHue(); Name = "Lord Guardian"; Female = false; Body = 0x190; Hue = 0x83F4; IOBAlignment = IOBAlignment.Council; ControlSlots = 6; PackItem(new Bandage(Utility.RandomMinMax(1, 15))); BloodDrenchedBandana bandana = new BloodDrenchedBandana(); bandana.LootType = LootType.Newbied; AddItem(bandana); Kilt kilt = new Kilt(0x1); //black kilt if (Utility.RandomDouble() <= 0.93) { kilt.LootType = LootType.Newbied; } AddItem(kilt); Sandals sandals = new Sandals(0x66C); if (Utility.RandomDouble() <= 0.93) { sandals.LootType = LootType.Newbied; } AddItem(sandals); SilverRing ring = new SilverRing(); ring.Name = "To my darling Adam"; if (Utility.RandomDouble() < 0.95) { ring.LootType = LootType.Newbied; } AddItem(ring); ChainChest tunic = new ChainChest(); tunic.Resource = CraftResource.Gold; AddItem(tunic); ChainLegs legs = new ChainLegs(); legs.Resource = CraftResource.Gold; AddItem(legs); RingmailArms arms = new RingmailArms(); arms.Resource = CraftResource.Gold; AddItem(arms); GuardianKatana sword = new GuardianKatana(); sword.Quality = WeaponQuality.Exceptional; sword.LootType = LootType.Newbied; if (Utility.RandomBool()) { sword.Poison = Poison.Deadly; } else { sword.Poison = Poison.Greater; } sword.PoisonCharges = 30; AddItem(sword); PonyTail hair = new PonyTail(); hair.Hue = 0x1BC; hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); SetStr(375, 400); SetDex(100, 125); SetInt(150, 175); SetDamage(8, 10); SetSkill(SkillName.EvalInt, 100.0, 110.0); SetSkill(SkillName.Magery, 100.0, 110.0); SetSkill(SkillName.Swords, 100.0, 125.0); SetSkill(SkillName.Tactics, 100.0, 125.0); SetSkill(SkillName.Anatomy, 100.0, 125.0); SetSkill(SkillName.Poisoning, 60.0, 82.5); SetSkill(SkillName.MagicResist, 83.5, 92.5); Fame = 5000; Karma = -5000; VirtualArmor = 40; m_NextSpeechTime = DateTime.Now; PackItem(new Bandage(Utility.RandomMinMax(VirtualArmor, VirtualArmor * 2))); PackStrongPotions(6, 12); PackItem(new Pouch()); }
public ElvenFighter() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("elfmale"); Title = "the Fighter"; SpeechHue = Utility.RandomDyedHue(); Hue = 349; Body = 0x190; Level = 7; NameHue = 2454; LongHair hair = new LongHair(Utility.RandomNeutralHue()); hair.Movable = false; AddItem(hair); ChainChest chest = new ChainChest(); chest.Hue = 0x9FF; chest.Movable = false; AddItem(chest); RingmailArms arms = new RingmailArms(); arms.Hue = 0x9FF; arms.Movable = false; AddItem(arms); RingmailGloves gloves = new RingmailGloves(); gloves.Hue = 0x9FF; gloves.Movable = false; AddItem(gloves); ChainLegs legs = new ChainLegs(); legs.Hue = 0x9FF; legs.Movable = false; AddItem(legs); Cloak cloak = new Cloak(); cloak.Hue = 0x9C4; cloak.Movable = false; AddItem(cloak); WoodenKiteShield shield = new WoodenKiteShield(); shield.Hue = 0x9FF; shield.Movable = false; AddItem(shield); Boots boots = new Boots(); boots.Hue = 0x9C4; boots.Movable = false; AddItem(boots); PackGold(6, 8); SetSkill(SkillName.MagicResist, 50.0, 61.5); SetSkill(SkillName.Swords, 70.0, 90.5); SetSkill(SkillName.Tactics, 65.0, 87.5); SetSkill(SkillName.Wrestling, 25.0, 47.5); SetStr(90, 110); SetDex(161, 125); SetInt(61, 85); SetHits(130, 160); SetDamage(10, 16); Karma = 2000; Fame = 1000; switch (Utility.Random(4)) { case 0: Scimitar scim = new Scimitar(); scim.Movable = false; AddItem(scim); break; case 1: Longsword lsword = new Longsword(); lsword.Movable = false; AddItem(lsword); break; case 2: Broadsword bsword = new Broadsword(); bsword.Movable = false; AddItem(bsword); break; case 3: Cutlass cl = new Cutlass(); cl.Movable = false; AddItem(cl); break; } }
public DummySword() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Swordsman int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats InitStats(125, 125, 90); Skills[SkillName.Swords].Base = 120; Skills[SkillName.Anatomy].Base = 120; Skills[SkillName.Healing].Base = 120; Skills[SkillName.Tactics].Base = 120; Skills[SkillName.Parry].Base = 120; // Name Name = "Swordsman"; // Equip Katana kat = new Katana { Crafter = this, Movable = true, Quality = ItemQuality.Normal }; AddItem(kat); Boots bts = new Boots { Hue = iHue }; AddItem(bts); ChainChest cht = new ChainChest { Movable = false, LootType = LootType.Newbied, Crafter = this, Quality = ItemQuality.Normal }; AddItem(cht); ChainLegs chl = new ChainLegs { Movable = false, LootType = LootType.Newbied, Crafter = this, Quality = ItemQuality.Normal }; AddItem(chl); PlateArms pla = new PlateArms { Movable = false, LootType = LootType.Newbied, Crafter = this, Quality = ItemQuality.Normal }; AddItem(pla); Bandage band = new Bandage(50); AddToBackpack(band); }
public Mercenary() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8) { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the mercenary"; Name = NameList.RandomName(Female ? "female" : "male"); Hue = Utility.RandomSkinHue(); SetStr(25, 88); SetDex(25, 88); SetInt(37, 49); Karma = Utility.RandomMinMax(13, -45); SetSkill(SkillName.Tactics, 45, 67.5); SetSkill(SkillName.MagicResist, 45, 67.5); SetSkill(SkillName.Parry, 45, 67.5); SetSkill(SkillName.Swords, 45, 67.5); SetSkill(SkillName.Macing, 45, 67.5); SetSkill(SkillName.Fencing, 45, 67.5); SetSkill(SkillName.Wrestling, 45, 67.5); SetSkill(SkillName.ArmsLore, 42.5, 65); Item item = null; if (!Female) { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair(item.Hue); switch (Utility.Random(5)) { case 0: item = new PlateChest(); break; case 1: item = new ChainChest(); break; case 2: item = new StuddedChest(); break; case 3: item = new RingmailChest(); break; case 4: default: item = new LeatherChest(); break; } AddItem(item); switch (Utility.Random(5)) { case 0: item = new PlateLegs(); break; case 1: item = new ChainLegs(); break; case 2: item = new StuddedLegs(); break; case 3: item = new RingmailLegs(); break; case 4: default: item = new LeatherLegs(); break; } AddItem(item); switch (Utility.Random(4)) { case 0: item = new PlateArms(); break; case 1: item = new RingmailArms(); break; case 2: item = new StuddedArms(); break; case 3: default: item = new LeatherArms(); break; } AddItem(item); switch (Utility.Random(3)) { case 0: item = new PlateGloves(); break; case 1: item = new StuddedGloves(); break; case 2: default: item = new LeatherGloves(); break; } AddItem(item); switch (Utility.Random(6)) { case 0: item = new PlateHelm(); break; case 1: item = new ChainCoif(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: item = new NorseHelm(); break; case 5: default: item = new Helmet(); break; } AddItem(item); switch (Utility.Random(7)) { case 0: item = new BronzeShield(); break; case 1: item = new Buckler(); break; case 2: item = new HeaterShield(); break; case 3: item = new MetalKiteShield(); break; case 4: item = new MetalShield(); break; case 5: item = new WoodenKiteShield(); break; case 6: default: item = new WoodenShield(); break; } AddItem(item); switch (Utility.Random(4)) { case 0: item = new PlateGorget(); break; case 1: item = new StuddedGorget(); break; default: case 2: item = new LeatherGorget(); break; } AddItem(item); item = Loot.RandomWeapon(); AddItem(item); PackGold(15, 100); } else { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); switch (Utility.Random(5)) { case 0: item = new PlateChest(); break; case 1: item = new ChainChest(); break; case 2: item = new StuddedChest(); break; case 3: item = new RingmailChest(); break; case 4: default: item = new LeatherChest(); break; } AddItem(item); switch (Utility.Random(5)) { case 0: item = new PlateLegs(); break; case 1: item = new ChainLegs(); break; case 2: item = new StuddedLegs(); break; case 3: item = new RingmailLegs(); break; case 4: default: item = new LeatherLegs(); break; } AddItem(item); switch (Utility.Random(3)) { case 0: item = new PlateGloves(); break; case 1: item = new StuddedGloves(); break; case 2: default: item = new LeatherGloves(); break; } AddItem(item); switch (Utility.Random(6)) { case 0: item = new PlateHelm(); break; case 1: item = new ChainCoif(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: item = new NorseHelm(); break; case 5: default: item = new Helmet(); break; } AddItem(item); switch (Utility.Random(7)) { case 0: item = new BronzeShield(); break; case 1: item = new Buckler(); break; case 2: item = new HeaterShield(); break; case 3: item = new MetalKiteShield(); break; case 4: item = new MetalShield(); break; case 5: item = new WoodenKiteShield(); break; case 6: default: item = new WoodenShield(); break; } AddItem(item); switch (Utility.Random(4)) { case 0: item = new PlateGorget(); break; case 1: item = new StuddedGorget(); break; default: case 2: item = new LeatherGorget(); break; } AddItem(item); item = Loot.RandomWeapon(); AddItem(item); PackGold(15, 100); } }
public ArcherTownGuard() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.175, 0.2) { Title = "the guard"; Body = 400; Hue = Utility.RandomSkinHue(); SpeechHue = 1153; this.Body = 0x190; this.Name = NameList.RandomName("male"); SetStr(150); SetDex(100); SetInt(25); SetSkill(SkillName.MagicResist, 200.0); SetSkill(SkillName.Archery, 100.0); SetSkill(SkillName.Tactics, 100.0); SetSkill(SkillName.Healing, 100.0); SetSkill(SkillName.Anatomy, 100.0); SetSkill(SkillName.DetectHidden, 100.0); Fame = 2500; Karma = 5000; VirtualArmor = 30; Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); PackGold(0); switch (Utility.Random(50)) { case 0: { Item beard = new Item(Utility.RandomList(0x2040, 0x204B, 0x203F, 0x2041)); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem(beard); break; } } Item chainchest = new ChainChest(); EquipItem(chainchest); Item chainlegs = new ChainLegs(); EquipItem(chainlegs); Item plategorget = new PlateGorget(); EquipItem(plategorget); Item boots = new Boots(); EquipItem(boots); Crossbow crossbow = new Crossbow(); crossbow.Movable = false; crossbow.MinDamage = 35; crossbow.MaxDamage = 40; EquipItem(crossbow); PackItem(new Crossbow()); PackItem(new Bolt(10)); PackItem(new Bandage(100)); }
public NewWarriorNoCriminalGuard() : base(AIType.AI_Melee) { SetStr(95, 150); SetDex(60, 110); SetInt(26, 50); SetHits(80, 110); SetMana(40); if (Utility.RandomBool()) { new Horse().Rider = this; } SetResistance(ResistanceType.Physical, 30, 20); SetResistance(ResistanceType.Fire, 20, 25); SetResistance(ResistanceType.Cold, 20, 20); SetResistance(ResistanceType.Poison, 20, 30); SetSkill(SkillName.MagicResist, 50.0, 80.0); SetSkill(SkillName.Tactics, 80.0, 120.0); SetSkill(SkillName.Anatomy, 80.0, 120.0); SetSkill(SkillName.Healing, 50.0, 65.0); SetSkill(SkillName.Swords, 80.0, 120.0); SetSkill(SkillName.Parry, 80.0, 120.0); SetSkill(SkillName.Macing, 80.0, 120.0); SetSkill(SkillName.Fencing, 80.0, 120.0); Fame = 1000; Karma = 10000; VirtualArmor = 25; AddItem(new Boots(Utility.RandomGreenHue())); AddItem(new Cloak(Utility.RandomGreenHue())); ChainChest chest = new ChainChest(); chest.Hue = Utility.RandomGreenHue(); AddItem(chest); ChainLegs legs = new ChainLegs(); legs.Hue = Utility.RandomGreenHue(); AddItem(legs); ChainHatsuburi head = new ChainHatsuburi(); head.Hue = Utility.RandomGreenHue(); AddItem(head); AddItem(new Bandage(30)); switch (Utility.Random(19)) { //Swords case 0: AddItem(new Longsword()); AddItem(new WoodenKiteShield()); SetDamage(5, 18); SetResistance(ResistanceType.Physical, 50, 40); break; case 1: AddItem(new Cutlass()); AddItem(new WoodenKiteShield()); SetDamage(5, 15); SetResistance(ResistanceType.Physical, 50, 40); break; case 2: AddItem(new Broadsword()); AddItem(new WoodenKiteShield()); SetDamage(8, 18); SetResistance(ResistanceType.Physical, 50, 40); break; case 3: AddItem(new Axe()); SetDamage(11, 19); break; case 4: AddItem(new Halberd()); SetDamage(13, 22); break; case 5: AddItem(new Bardiche()); SetDamage(11, 22); break; case 6: AddItem(new TwoHandedAxe()); SetDamage(13, 23); break; //Maces case 7: AddItem(new Mace()); AddItem(new WoodenKiteShield()); SetDamage(6, 18); SetResistance(ResistanceType.Physical, 50, 40); break; case 8: AddItem(new Club()); AddItem(new WoodenKiteShield()); SetDamage(5, 14); SetResistance(ResistanceType.Physical, 50, 40); break; case 9: AddItem(new Maul()); AddItem(new WoodenKiteShield()); SetDamage(9, 18); SetResistance(ResistanceType.Physical, 50, 40); break; case 10: AddItem(new HammerPick()); SetDamage(10, 22); break; case 11: AddItem(new WarHammer()); SetDamage(13, 28); break; case 12: AddItem(new BlackStaff()); SetDamage(11, 17); break; //Fencing case 13: AddItem(new Dagger()); AddItem(new WoodenKiteShield()); SetDamage(5, 13); SetResistance(ResistanceType.Physical, 50, 40); break; case 14: AddItem(new Kryss()); AddItem(new WoodenKiteShield()); SetDamage(6, 16); SetResistance(ResistanceType.Physical, 50, 40); break; case 15: AddItem(new WarFork()); AddItem(new WoodenKiteShield()); SetDamage(8, 18); SetResistance(ResistanceType.Physical, 50, 40); break; case 16: AddItem(new ShortSpear()); SetDamage(11, 23); break; case 17: AddItem(new Spear()); SetDamage(13, 24); break; case 18: AddItem(new Pike()); SetDamage(13, 28); break; } }