public static Item GetRandomHat() { Item hat = null; switch (Utility.Random(6)) { case 0: hat = new SkullCap(GetRandomHue()); break; case 1: hat = new Bandana(GetRandomHue()); break; case 2: hat = new WideBrimHat(); break; case 3: hat = new TallStrawHat(Utility.RandomNeutralHue()); break; case 4: hat = new StrawHat(Utility.RandomNeutralHue()); break; case 5: hat = new TricorneHat(Utility.RandomNeutralHue()); break; } return(hat); }
public InternalBuyInfo() { Add(new GenericBuyInfo("Bolt of Cloth", typeof(BoltOfCloth), BoltOfCloth.GetSBPurchaseValue(), 50, 0xf95, 0)); Add(new GenericBuyInfo("Scissors", typeof(Scissors), Scissors.GetSBPurchaseValue(), 25, 0xF9F, 0)); Add(new GenericBuyInfo("Sewing Kit", typeof(SewingKit), SewingKit.GetSBPurchaseValue(), 50, 0xF9D, 0)); Add(new GenericBuyInfo("Dyes", typeof(Dyes), Dyes.GetSBPurchaseValue(), 25, 0xFA9, 0)); Add(new GenericBuyInfo("Dye Tub", typeof(DyeTub), DyeTub.GetSBPurchaseValue(), 25, 0xFAB, 0)); //Hats Add(new GenericBuyInfo("Skull Cap", typeof(SkullCap), SkullCap.GetSBPurchaseValue(), 25, 0x1544, 0)); Add(new GenericBuyInfo("Bandana", typeof(Bandana), Bandana.GetSBPurchaseValue(), 25, 0x1540, 0)); Add(new GenericBuyInfo("Floppy Hat", typeof(FloppyHat), FloppyHat.GetSBPurchaseValue(), 25, 0x1713, 0)); Add(new GenericBuyInfo("Cap", typeof(Cap), Cap.GetSBPurchaseValue(), 25, 0x1715, 0)); Add(new GenericBuyInfo("Wide Brim Hat", typeof(WideBrimHat), WideBrimHat.GetSBPurchaseValue(), 25, 0x1714, 0)); Add(new GenericBuyInfo("Tall Straw Hat", typeof(TallStrawHat), TallStrawHat.GetSBPurchaseValue(), 25, 0x1716, 0)); Add(new GenericBuyInfo("Bonnet", typeof(Bonnet), Bonnet.GetSBPurchaseValue(), 25, 0x1719, 0)); Add(new GenericBuyInfo("Feathered Hat", typeof(FeatheredHat), FeatheredHat.GetSBPurchaseValue(), 25, 0x171A, 0)); Add(new GenericBuyInfo("Tricorne Hat", typeof(TricorneHat), TricorneHat.GetSBPurchaseValue(), 25, 0x171B, 0)); Add(new GenericBuyInfo("Jester Hat", typeof(JesterHat), JesterHat.GetSBPurchaseValue(), 25, 0x171C, 0)); Add(new GenericBuyInfo("Wizards Hat", typeof(WizardsHat), WizardsHat.GetSBPurchaseValue(), 25, 0x1718, 0)); //Shirts Add(new GenericBuyInfo("Doublet", typeof(Doublet), Doublet.GetSBPurchaseValue(), 25, 0x1F7B, 0)); Add(new GenericBuyInfo("Shirt", typeof(Shirt), Shirt.GetSBPurchaseValue(), 25, 0x1517, 0)); Add(new GenericBuyInfo("Fancy Shirt", typeof(FancyShirt), FancyShirt.GetSBPurchaseValue(), 25, 0x1EFD, 0)); Add(new GenericBuyInfo("Tunic", typeof(Tunic), Tunic.GetSBPurchaseValue(), 25, 0x1FA1, 0)); Add(new GenericBuyInfo("Surcoat", typeof(Surcoat), Surcoat.GetSBPurchaseValue(), 25, 0x1FFD, 0)); Add(new GenericBuyInfo("Jester Suit", typeof(JesterSuit), JesterSuit.GetSBPurchaseValue(), 25, 0x1F9F, 0)); Add(new GenericBuyInfo("Plain Dress", typeof(PlainDress), PlainDress.GetSBPurchaseValue(), 25, 0x1F01, 0)); Add(new GenericBuyInfo("Fancy Dress", typeof(FancyDress), FancyDress.GetSBPurchaseValue(), 25, 0x1EFF, 0)); Add(new GenericBuyInfo("Robe", typeof(Robe), Robe.GetSBPurchaseValue(), 25, 0x1F03, 0)); //Pants Add(new GenericBuyInfo("Short Pants", typeof(ShortPants), ShortPants.GetSBPurchaseValue(), 25, 0x152E, 0)); Add(new GenericBuyInfo("Long Pants", typeof(LongPants), LongPants.GetSBPurchaseValue(), 25, 0x1539, 0)); Add(new GenericBuyInfo("Kilt", typeof(Kilt), Kilt.GetSBPurchaseValue(), 25, 0x1537, 0)); Add(new GenericBuyInfo("Skirt", typeof(Skirt), Skirt.GetSBPurchaseValue(), 25, 0x1516, 0)); Add(new GenericBuyInfo("Cloak", typeof(Cloak), Cloak.GetSBPurchaseValue(), 25, 0x1515, 0)); Add(new GenericBuyInfo("Body Sash", typeof(BodySash), BodySash.GetSBPurchaseValue(), 25, 0x1541, 0)); Add(new GenericBuyInfo("Half Apron", typeof(HalfApron), HalfApron.GetSBPurchaseValue(), 25, 0x153b, 0)); Add(new GenericBuyInfo("Full Apron", typeof(FullApron), FullApron.GetSBPurchaseValue(), 25, 0x153d, 0)); //Shoes Add(new GenericBuyInfo("Sandals", typeof(Sandals), Sandals.GetSBPurchaseValue(), 25, 0x170D, 0)); Add(new GenericBuyInfo("Shoes", typeof(Shoes), Shoes.GetSBPurchaseValue(), 25, 0x170F, 0)); Add(new GenericBuyInfo("Boots", typeof(Boots), Boots.GetSBPurchaseValue(), 25, 0x170B, 0)); Add(new GenericBuyInfo("Thigh Boots", typeof(ThighBoots), ThighBoots.GetSBPurchaseValue(), 25, 0x1711, 0)); //TEST: FIX //Add( new GenericBuyInfo( typeof( SpoolOfThread ), 18, 20, 0xFA0, 0 ) ); //Add( new GenericBuyInfo( typeof( Flax ), 156, 20, 0x1A9C, 0 ) ); //Add( new GenericBuyInfo( typeof( Cotton ), 156, 20, 0xDF9, 0 ) ); //Add( new GenericBuyInfo( typeof( Wool ), 78, 20, 0xDF8, 0 ) ); }
public void InitOutfit() { Item hair = new Item(8252) { Hue = 1109, Layer = Layer.Hair, Movable = false }; AddItem(hair); Item bandana = new Bandana() { Hue = 33, Movable = false }; AddItem(bandana); Item arm = new AssassinArms() { Hue = 1150, Movable = false }; AddItem(arm); Item obi = new Obi() { Hue = 163, Movable = false }; AddItem(obi); Item skirt = new Skirt() { Hue = 0, Movable = false }; AddItem(skirt); Shoes shoes = new Shoes() { Hue = 1746, Movable = false }; AddItem(shoes); PackGold(50, 200); }
public override void InitOutfit() { AddItem(new ThighBoots(2164)); AddItem(new LeatherChest(2164)); AddItem(new LeatherLegs(2170)); AddItem(new LeatherArms(2170)); AddItem(new LeatherGloves(2165)); AddItem(new LeatherGorget(2165)); AddItem(new CapeVoyage(1445)); AddItem(new FourreauEpee(0)); Bandana b = new Bandana(1442); b.Layer = Layer.Bracelet; AddItem(b); // Il faudrait changer le layer pour Bracelet }
private void GenerateItems() { List <Item> items = new List <Item>(); /*On ajoute ici les items que l'on veut que le PNJ porte, seule cette section doit être modifiée*/ /*------------------*/ Item it = new ArbaleteRepetition(); it.Hue = 0; items.Add(it); it = new Bandana(); it.Hue = 2307; items.Add(it); it = new CagouleGorget(); it.Hue = 2307; items.Add(it); it = new TuniqueNomade(); it.Hue = 0; items.Add(it); it = new Carquois(); it.Hue = 0; items.Add(it); it = new LeatherGloves(); it.Hue = 1875; items.Add(it); it = new CeintureBourse(); it.Hue = 2307; items.Add(it); it = new LeatherLegs(); it.Hue = 1875; items.Add(it); it = new BottesVoyage(); it.Hue = 2307; items.Add(it); /*------------------*/ if (items.Count > 0) { for (int i = 0; i < items.Count; ++i) { items[i].Movable = false; items[i].CanBeAltered = false; AddItem(items[i]); } } }
public InternalSellInfo() { Add(typeof(BoltOfCloth), BoltOfCloth.GetSBSellValue()); Add(typeof(Scissors), Scissors.GetSBSellValue()); Add(typeof(SewingKit), SewingKit.GetSBSellValue()); Add(typeof(Dyes), Dyes.GetSBSellValue()); Add(typeof(DyeTub), DyeTub.GetSBSellValue()); Add(typeof(SkullCap), SkullCap.GetSBSellValue()); Add(typeof(Bandana), Bandana.GetSBSellValue()); Add(typeof(FloppyHat), FloppyHat.GetSBSellValue()); Add(typeof(Cap), Cap.GetSBSellValue()); Add(typeof(WideBrimHat), WideBrimHat.GetSBSellValue()); Add(typeof(TallStrawHat), TallStrawHat.GetSBSellValue()); Add(typeof(Bonnet), Bonnet.GetSBSellValue()); Add(typeof(FeatheredHat), FeatheredHat.GetSBSellValue()); Add(typeof(TricorneHat), TricorneHat.GetSBSellValue()); Add(typeof(JesterHat), JesterHat.GetSBSellValue()); Add(typeof(WizardsHat), WizardsHat.GetSBSellValue()); Add(typeof(Doublet), Doublet.GetSBSellValue()); Add(typeof(Shirt), Shirt.GetSBSellValue()); Add(typeof(FancyShirt), FancyShirt.GetSBSellValue()); Add(typeof(Tunic), Tunic.GetSBSellValue()); Add(typeof(Surcoat), Surcoat.GetSBSellValue()); Add(typeof(JesterSuit), JesterSuit.GetSBSellValue()); Add(typeof(PlainDress), PlainDress.GetSBSellValue()); Add(typeof(FancyDress), FancyDress.GetSBSellValue()); Add(typeof(Robe), Robe.GetSBSellValue()); Add(typeof(ShortPants), ShortPants.GetSBSellValue()); Add(typeof(LongPants), LongPants.GetSBSellValue()); Add(typeof(Kilt), Kilt.GetSBSellValue()); Add(typeof(Skirt), Skirt.GetSBSellValue()); Add(typeof(Cloak), Cloak.GetSBSellValue()); Add(typeof(BodySash), BodySash.GetSBSellValue()); Add(typeof(HalfApron), HalfApron.GetSBSellValue()); Add(typeof(FullApron), FullApron.GetSBSellValue()); Add(typeof(Sandals), Sandals.GetSBSellValue()); Add(typeof(Shoes), Shoes.GetSBSellValue()); Add(typeof(Boots), Boots.GetSBSellValue()); Add(typeof(ThighBoots), ThighBoots.GetSBSellValue()); }
public override void InitOutfit() { Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = Utility.RandomNondyedHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new FancyShirt()); // all brigands wear a bandana, but won't drop this one // see OnBeforeDeath for the bandana they do drop Bandana bandana = new Bandana(); bandana.LootType = LootType.Newbied; AddItem(bandana); }
public Gypsy() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8) { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the gypsy"; Name = NameList.RandomName(Female ? "female" : "male"); Hue = Utility.RandomSkinHue(); SetStr(41, 55); SetDex(51, 65); SetInt(61, 75); Karma = Utility.RandomMinMax(13, -45); SetSkill(SkillName.Tactics, 35, 57.5); SetSkill(SkillName.MagicResist, 35, 57.5); SetSkill(SkillName.Parry, 35, 57.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); SetSkill(SkillName.ItemID, 45, 67.5); SetSkill(SkillName.Hiding, 45, 67.5); SetSkill(SkillName.Stealing, 45, 67.5); SetSkill(SkillName.Snooping, 45, 67.5); SetSkill(SkillName.Lockpicking, 45, 67.5); SetSkill(SkillName.Camping, 45, 67.5); SetSkill(SkillName.Begging, 45, 67.5); Item item = null; if (!Female) { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair(item.Hue); item = new Shirt(); item.Hue = Utility.RandomNondyedHue(); AddItem(item); item = new LongPants(); item.Hue = Utility.RandomNondyedHue(); AddItem(item); item = new Bandana(); item.Hue = Utility.RandomBlueHue(); AddItem(item); switch (Utility.Random(4)) { case 0: item = new Boots(); break; case 1: item = new ThighBoots(); break; case 2: item = new Shoes(); break; case 3: default: item = new Sandals(); break; } AddItem(item); PackGold(15, 100); } else { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = new Shirt(); item.Hue = Utility.RandomNondyedHue(); AddItem(item); item = new Skirt(); item.Hue = Utility.RandomNondyedHue(); AddItem(item); item = new Bandana(); item.Hue = Utility.RandomBlueHue(); AddItem(item); switch (Utility.Random(4)) { case 0: item = new Boots(); break; case 1: item = new ThighBoots(); break; case 2: item = new Shoes(); break; case 3: default: item = new Sandals(); break; } AddItem(item); PackGold(15, 100); } }
public DrowAssassin() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); Title = "Drow Assasino"; Hue = 902; if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); } else { Body = 0x190; Name = NameList.RandomName("male"); } SetStr(186, 800); SetDex(81, 145); SetInt(61, 75); SetHits(222, 408); SetDamage(33, 48); SetSkill(SkillName.Fencing, 86.5, 177.5); SetSkill(SkillName.MagicResist, 95.5, 127.5); SetSkill(SkillName.Swords, 85.5, 177.5); SetSkill(SkillName.Tactics, 85.5, 177.5); SetSkill(SkillName.Wrestling, 95.5, 177.5); Fame = 1000; Karma = -1000; Item bodySash = new BodySash(); bodySash.Hue = 422; AddItem(bodySash); Item bandana = new Bandana(); bandana.Hue = 422; AddItem(bandana); //AddItem(new Piwafwi()); AddItem(new Boots()); //AddItem(new DrowRingmailGloves()); //AddItem(new DrowChainChest()); //AddItem(new DrowChainLegs()); switch (Utility.Random(5)) { case 0: AddItem(new Longsword()); break; case 1: AddItem(new Kryss()); break; case 2: AddItem(new Katana()); break; case 3: AddItem(new Dagger()); break; case 4: AddItem(new Spear()); break; } Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = 1153; hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); PackGold(500, 2500); PackArmor(2, 5, 0.8); PackWeapon(3, 5, 0.8); PackSlayer(); }
public PirateCaptain(BaseGalleon galleon) : base(galleon, AIType.AI_Melee, FightMode.Weakest, 25, 1, .2, .4) { PickRandomName(); if (m_PirateName > 0 && (m_PirateName == 1116679 || m_PirateName == 1116680 || m_PirateName == 1116683)) { Female = true; } SpeechHue = Utility.RandomDyedHue(); Title = "the dread pirate"; Hue = Race.RandomSkinHue(); Body = Female ? 0x191 : 0x190; SetStr(500, 750); SetDex(125, 175); SetInt(61, 75); SetHits(4500, 5000); SetDamage(23, 35); SetSkill(SkillName.Fencing, 115.0, 120.0); SetSkill(SkillName.Macing, 115.0, 120.0); SetSkill(SkillName.MagicResist, 115.0, 120.0); SetSkill(SkillName.Swords, 115.0, 120.0); SetSkill(SkillName.Tactics, 115.0, 120.0); SetSkill(SkillName.Wrestling, 115.0, 120.0); SetSkill(SkillName.Anatomy, 115.0, 120.0); Item hat; Item fancyShirt = new FancyShirt(); Item shirt = new Shirt(GetRandomShirtHue()); shirt.Layer = Layer.OuterTorso; if (Utility.RandomBool()) { hat = new Bandana(); } else { hat = new TricorneHat(); } hat.Hue = Utility.RandomNeutralHue(); AddItem(new Boots()); AddItem(shirt); AddItem(fancyShirt); AddItem(hat); AddItem(new Cloak(Utility.RandomNeutralHue())); switch (Utility.Random(7)) { case 0: AddItem(new Longsword()); break; case 1: AddItem(new Cutlass()); break; case 2: AddItem(new Broadsword()); break; case 5: AddItem(new Dagger()); break; } Utility.AssignRandomHair(this); Fame = 22000; Karma = -22000; if (IsSoulboundEnemies) { IsSoulbound = true; } }
public Gambler() : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.8, 3.0) { SetStr(10, 30); SetDex(10, 30); SetInt(10, 30); Fame = 50; Karma = 50; SpeechHue = Utility.RandomDyedHue(); Title = "the gambler"; Hue = Utility.RandomSkinHue(); Blessed = true; NameHue = 0x35; if (this.Female = Utility.RandomBool()) { this.Body = 0x191; this.Name = NameList.RandomName("female"); HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2045, 0x204A, 0x2046, 0x2049); HairHue = Utility.RandomHairHue(); Item hat = null; switch (Utility.Random(5)) { case 0: hat = new FloppyHat(Utility.RandomNeutralHue()); break; case 1: hat = new FeatheredHat(Utility.RandomNeutralHue()); break; case 2: hat = new Bonnet(); break; case 3: hat = new Cap(Utility.RandomNeutralHue()); break; } AddItem(hat); } else { this.Body = 0x190; this.Name = NameList.RandomName("male"); HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2048); HairHue = Utility.RandomHairHue(); FacialHairItemID = Utility.RandomList(0x0000, 0x203E, 0x203F, 0x2040, 0x2041, 0x2067, 0x2068, 0x2069); FacialHairHue = HairHue; Item hat = null; switch (Utility.Random(7)) { case 0: hat = new SkullCap(GetRandomHue()); break; case 1: hat = new Bandana(GetRandomHue()); break; case 2: hat = new WideBrimHat(); break; case 3: hat = new TallStrawHat(Utility.RandomNeutralHue()); break; case 4: hat = new StrawHat(Utility.RandomNeutralHue()); break; case 5: hat = new TricorneHat(Utility.RandomNeutralHue()); break; } AddItem(hat); } AddItem(new LongPants(GetRandomHue())); AddItem(new FancyShirt(GetRandomHue())); AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new Cloak(GetRandomHue())); AddItem(new BodySash(GetRandomHue())); Container pack = new Backpack(); pack.Movable = false; pack.Visible = false; AddItem(pack); //reset stats for (int i = 0; i <= 5; ++i) { gamestats[i] = 0; } }
public UndeadArcherPirate() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.175, 0.2) { Title = "the unrested pirate"; Body = Utility.RandomList(400, 50, 3); Team = 1; Kills = 10; Hue = 0; SpeechHue = 1153; this.Body = 0x190; this.Name = NameList.RandomName("male"); SetStr(60, 85); SetDex(50, 70); SetInt(10, 20); SetDamage(5, 7); SetSkill(SkillName.Archery, 35.0, 50.0); SetSkill(SkillName.MagicResist, 23.0, 27.5); SetSkill(SkillName.Tactics, 40.0, 45.5); SetSkill(SkillName.Healing, 30.2, 35.9); SetSkill(SkillName.Anatomy, 45.2, 50.9); SetSkill(SkillName.Swords, 50.0, 60.0); SetSkill(SkillName.Stealth, 120.0, 180.0); SetSkill(SkillName.Hiding, 120.0, 180.0); Fame = 2500; Karma = -2500; VirtualArmor = 0; Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); Item beard = new Item(Utility.RandomList(0x2040, 0x203E, 0x204C, 0x204B, 0x203F)); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem(beard); PackGold(70, 95); PackItem(new Bandage(10)); Item crossbow = new Crossbow(); EquipItem(crossbow); switch (Utility.Random(3)) { case 0: { Item fancyshirt = new FancyShirt(); fancyshirt.Hue = Utility.RandomNeutralHue(); EquipItem(fancyshirt); break; } case 1: { Item doublet = new Doublet(); doublet.Hue = Utility.RandomNeutralHue(); EquipItem(doublet); break; } case 2: { break; } } switch (Utility.Random(2)) { case 0: { Item longpants = new LongPants(); longpants.Hue = Utility.RandomNeutralHue(); EquipItem(longpants); break; } case 1: { Item shortpants = new ShortPants(); shortpants.Hue = Utility.RandomNeutralHue(); EquipItem(shortpants); break; } } switch (Utility.Random(4)) { case 0: { Item boots = new Boots(); boots.Hue = 0; EquipItem(boots); break; } case 1: { Item shoes = new Shoes(); shoes.Hue = 1713; EquipItem(shoes); break; } case 3: { Item thighboots = new ThighBoots(); thighboots.Hue = 0; EquipItem(thighboots); break; } case 4: { break; } } switch (Utility.Random(3)) { case 0: { Item Bandana = new Bandana(); Bandana.Hue = Utility.RandomBirdHue(); EquipItem(Bandana); break; } case 1: { Item skullcap = new SkullCap(); skullcap.Hue = Utility.RandomBirdHue(); EquipItem(skullcap); break; } case 3: { break; } } }
public SwordPirate() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.175, 0.2) { Title = "the pirate"; Body = 400; Team = 1; Kills = 10; Hue = Utility.RandomSkinHue(); SpeechHue = 1153; this.Body = 0x190; this.Name = NameList.RandomName("male"); SetStr(90, 100); SetDex(85, 100); SetInt(10, 20); SetSkill(SkillName.Archery, 95.0, 100.0); SetSkill(SkillName.MagicResist, 75.0, 100.0); SetSkill(SkillName.Tactics, 90.0, 100.0); SetSkill(SkillName.Healing, 75.0, 100.0); SetSkill(SkillName.Anatomy, 90.0, 100.0); SetSkill(SkillName.Swords, 95.0, 100.0); Fame = 4500; Karma = -4500; VirtualArmor = 0; Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; Item beard = new Item(Utility.RandomList(0x2040, 0x203E, 0x204C, 0x204B, 0x203F)); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem(beard); AddItem(hair); PackGold(70, 95); PackItem(new Bandage(20)); switch (Utility.Random(2)) { case 0: { Item scimitar = new Scimitar(); EquipItem(scimitar); break; } case 1: { Item cutlass = new Cutlass(); EquipItem(cutlass); break; } } switch (Utility.Random(3)) { case 0: { Item fancyshirt = new FancyShirt(); fancyshirt.Hue = Utility.RandomNeutralHue(); EquipItem(fancyshirt); break; } case 1: { Item doublet = new Doublet(); doublet.Hue = Utility.RandomNeutralHue(); EquipItem(doublet); break; } case 2: { break; } } switch (Utility.Random(2)) { case 0: { Item longpants = new LongPants(); longpants.Hue = Utility.RandomNeutralHue(); EquipItem(longpants); break; } case 1: { Item shortpants = new ShortPants(); shortpants.Hue = Utility.RandomNeutralHue(); EquipItem(shortpants); break; } } switch (Utility.Random(4)) { case 0: { Item boots = new Boots(); boots.Hue = 0; EquipItem(boots); break; } case 1: { Item shoes = new Shoes(); shoes.Hue = 1713; EquipItem(shoes); break; } case 3: { Item thighboots = new ThighBoots(); thighboots.Hue = 0; EquipItem(thighboots); break; } case 4: { break; } } switch (Utility.Random(3)) { case 0: { Item Bandana = new Bandana(); Bandana.Hue = Utility.RandomBirdHue(); EquipItem(Bandana); break; } case 1: { Item skullcap = new SkullCap(); skullcap.Hue = Utility.RandomBirdHue(); EquipItem(skullcap); break; } case 3: { break; } } }
public Rexxar() : base(AIType.AI_Melee, FightMode.Closest) { Name = "Rexxar"; Title = "The murderer"; Body = 400; BaseSoundID = 427; Hue = 1175; SetStr(200, 400); SetDex(100, 150); SetInt(46, 70); SetHits(9000); SetDamage(20, 25); SetSkill(SkillName.MagicResist, 125.1, 140.0); SetSkill(SkillName.Tactics, 90.1, 100.0); SetSkill(SkillName.Wrestling, 90.1, 100.0); Fame = 150000; Karma = -150000; VirtualArmor = 50; Bandana bandana = new Bandana(); bandana.Hue = 1175; bandana.Movable = false; AddItem(bandana); ChainChest chest = new ChainChest(); chest.Hue = 1645; chest.Movable = false; AddItem(chest); PlateArms arms = new PlateArms(); arms.Hue = 1645; arms.Movable = false; AddItem(arms); PlateLegs legs = new PlateLegs(); legs.Hue = 1645; legs.Movable = false; AddItem(legs); BodySash sash = new BodySash(); sash.Hue = 1175; sash.Movable = false; AddItem(sash); DoubleAxe axe = new DoubleAxe(); axe.Hue = 1175; axe.Movable = false; AddItem(axe); }
public XmlQuestNPC(int gender, bool clothes) : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.8, 3.0) { SetStr(10, 30); SetDex(10, 30); SetInt(10, 30); Fame = 50; Karma = 50; CanHearGhosts = true; SpeechHue = Utility.RandomDyedHue(); Title = string.Empty; Hue = Utility.RandomSkinHue(); switch (gender) { case -1: this.Female = Utility.RandomBool(); break; case 0: this.Female = false; break; case 1: this.Female = true; break; } if (clothes) { if (this.Female) { this.Body = 0x191; this.Name = NameList.RandomName("female"); Item hair = new Item(Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2045, 0x204A, 0x2046, 0x2049)); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); Item hat = null; switch (Utility.Random(5))//4 hats, one empty, for no hat { case 0: hat = new FloppyHat(Utility.RandomNeutralHue()); break; case 1: hat = new FeatheredHat(Utility.RandomNeutralHue()); break; case 2: hat = new Bonnet(); break; case 3: hat = new Cap(Utility.RandomNeutralHue()); break; } AddItem(hat); Item pants = null; switch (Utility.Random(3)) { case 0: pants = new ShortPants(GetRandomHue()); break; case 1: pants = new LongPants(GetRandomHue()); break; case 2: pants = new Skirt(GetRandomHue()); break; } AddItem(pants); Item shirt = null; switch (Utility.Random(7)) { case 0: shirt = new Doublet(GetRandomHue()); break; case 1: shirt = new Surcoat(GetRandomHue()); break; case 2: shirt = new Tunic(GetRandomHue()); break; case 3: shirt = new FancyDress(GetRandomHue()); break; case 4: shirt = new PlainDress(GetRandomHue()); break; case 5: shirt = new FancyShirt(GetRandomHue()); break; case 6: shirt = new Shirt(GetRandomHue()); break; } AddItem(shirt); } else { this.Body = 0x190; this.Name = NameList.RandomName("male"); Item hair = new Item(Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2048)); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); Item beard = new Item(Utility.RandomList(0x0000, 0x203E, 0x203F, 0x2040, 0x2041, 0x2067, 0x2068, 0x2069)); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem(beard); Item hat = null; switch (Utility.Random(7)) //6 hats, one empty, for no hat { case 0: hat = new SkullCap(GetRandomHue()); break; case 1: hat = new Bandana(GetRandomHue()); break; case 2: hat = new WideBrimHat(); break; case 3: hat = new TallStrawHat(Utility.RandomNeutralHue()); break; case 4: hat = new StrawHat(Utility.RandomNeutralHue()); break; case 5: hat = new TricorneHat(Utility.RandomNeutralHue()); break; } AddItem(hat); Item pants = null; switch (Utility.Random(2)) { case 0: pants = new ShortPants(GetRandomHue()); break; case 1: pants = new LongPants(GetRandomHue()); break; } AddItem(pants); Item shirt = null; switch (Utility.Random(5)) { case 0: shirt = new Doublet(GetRandomHue()); break; case 1: shirt = new Surcoat(GetRandomHue()); break; case 2: shirt = new Tunic(GetRandomHue()); break; case 3: shirt = new FancyShirt(GetRandomHue()); break; case 4: shirt = new Shirt(GetRandomHue()); break; } AddItem(shirt); } Item feet = null; switch (Utility.Random(3)) { case 0: feet = new Boots(Utility.RandomNeutralHue()); break; case 1: feet = new Shoes(Utility.RandomNeutralHue()); break; case 2: feet = new Sandals(Utility.RandomNeutralHue()); break; } AddItem(feet); } Container pack = new Backpack(); //pack.DropItem( new Gold( 0, 50 ) ); pack.Movable = false; AddItem(pack); }
public Pirate() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8) { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the pirate"; Name = NameList.RandomName(Female ? "female" : "male"); Hue = Utility.RandomSkinHue(); SetStr(86, 100); SetDex(86, 100); SetInt(71, 85); Karma = 2; SetSkill(SkillName.Tactics, 65, 87.5); SetSkill(SkillName.MagicResist, 65, 87.5); SetSkill(SkillName.Parry, 65, 87.5); SetSkill(SkillName.Swords, 55, 77.5); SetSkill(SkillName.Macing, 25, 47.5); SetSkill(SkillName.Fencing, 25, 47.5); SetSkill(SkillName.Wrestling, 45, 67.5); Item item = null; if (!Female) { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair(item.Hue); item = new Shirt(); item.Hue = Utility.RandomNondyedHue(); AddItem(item); item = new ShortPants(); item.Hue = Utility.RandomNondyedHue(); AddItem(item); item = new Cutlass(); AddItem(item); if (Utility.RandomBool()) { item = new Bandana(); } else { item = new SkullCap(); } item.Hue = Utility.RandomRedHue(); AddItem(item); item = new ThighBoots(); item.Hue = Utility.RandomNeutralHue(); AddItem(item); PackGold(15, 100); } else { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = new Shirt(); item.Hue = Utility.RandomNondyedHue(); AddItem(item); item = new ShortPants(); item.Hue = Utility.RandomNondyedHue(); AddItem(item); item = new Cutlass(); AddItem(item); if (Utility.RandomBool()) { item = new Bandana(); } else { item = new SkullCap(); } item.Hue = Utility.RandomRedHue(); AddItem(item); item = new ThighBoots(); item.Hue = Utility.RandomNeutralHue(); AddItem(item); PackGold(15, 100); } }
public VictorCreed() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Victor Creed"; Body = 400; Female = false; Hue = 33775; Title = "The Master Assassin"; //Body = 149; // Uncomment these lines and input values //BaseSoundID = 0x4B0; // To use your own custom body and sound. SetStr(3500); SetDex(2500); SetInt(4500); SetHits(125000, 150000); SetDamage(45, 65); SetDamageType(ResistanceType.Cold, 199); SetDamageType(ResistanceType.Fire, 199); SetDamageType(ResistanceType.Energy, 199); SetDamageType(ResistanceType.Poison, 199); SetResistance(ResistanceType.Physical, 60); SetResistance(ResistanceType.Cold, 90); SetResistance(ResistanceType.Fire, 90); SetResistance(ResistanceType.Energy, 90); SetResistance(ResistanceType.Poison, 90); SetSkill(SkillName.EvalInt, 320.1, 330.0); SetSkill(SkillName.Magery, 290.1, 300.0); SetSkill(SkillName.Meditation, 200.1, 301.0); SetSkill(SkillName.Poisoning, 400.1, 601.0); SetSkill(SkillName.MagicResist, 575.2, 600.0); SetSkill(SkillName.Tactics, 690.1, 800.0); SetSkill(SkillName.Wrestling, 675.1, 800.0); SetSkill(SkillName.Swords, 375.1, 400.0); SetSkill(SkillName.Anatomy, 575.1, 600.0); SetSkill(SkillName.Parry, 775.1, 800.0); m_Timer = new TeleportTimer(this); m_Timer.Start(); Fame = 15000; Karma = -15000; VirtualArmor = 65; PackGold(11120, 11130); Item HakamaShita = new HakamaShita(); HakamaShita.Movable = false; HakamaShita.Hue = 1109; AddItem(HakamaShita); Item TattsukeHakama = new TattsukeHakama(); TattsukeHakama.Movable = false; TattsukeHakama.Hue = 1109; AddItem(TattsukeHakama); Item Bandana = new Bandana(); Bandana.Movable = false; Bandana.Hue = 1109; AddItem(Bandana); Item SamuraiTabi = new SamuraiTabi(); SamuraiTabi.Movable = false; SamuraiTabi.Hue = 1109; AddItem(SamuraiTabi); Item NeptuneShirt = new NeptuneShirt(); NeptuneShirt.Movable = false; NeptuneShirt.Hue = 1109; AddItem(NeptuneShirt); }
public BloodAssassin() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "a disciple of blood"; SpeechHue = Utility.RandomDyedHue(); Hue = 0x4AA; HairHue = 0x96C; if (this.Female = Utility.RandomBool()) { Body = 0x191; Utility.AssignRandomHair(this); } else { Body = 0x190; Utility.AssignRandomHair(this); FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); FacialHairHue = HairHue; } SetStr(86, 100); SetDex(81, 95); SetInt(61, 75); SetDamage(10, 23); SetSkill(SkillName.Fencing, 66.0, 97.5); SetSkill(SkillName.Macing, 65.0, 87.5); SetSkill(SkillName.MagicResist, 25.0, 47.5); SetSkill(SkillName.Swords, 65.0, 87.5); SetSkill(SkillName.Tactics, 65.0, 87.5); SetSkill(SkillName.Wrestling, 15.0, 37.5); Fame = 1000; Karma = -1000; VirtualArmor = 20; Item cloth1 = new Boots(); cloth1.Hue = Utility.RandomNeutralHue(); AddItem(cloth1); Item cloth2 = new Robe(); cloth2.Hue = 0x84D; AddItem(cloth2); Item cloth3 = new Bandana(); cloth3.Hue = 0x84D; AddItem(cloth3); switch (Utility.Random(7)) { case 0: AddItem(new Longsword()); break; case 1: AddItem(new Cutlass()); break; case 2: AddItem(new Broadsword()); break; case 3: AddItem(new Axe()); break; case 4: AddItem(new Club()); break; case 5: AddItem(new Dagger()); break; case 6: AddItem(new Spear()); break; } }
public Commoner() : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.8, 3.0) { SetStr(10, 30); SetDex(10, 30); SetInt(10, 30); Fame = 50; Karma = 50; SpeechHue = Utility.RandomDyedHue(); Title = string.Empty; //Commoner.Titles[Utility.Random( 0, Titles.Length )]; Hue = Utility.RandomSkinHue(); if (this.Female = Utility.RandomBool()) { this.Body = 0x191; this.Name = NameList.RandomName("female"); HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2045, 0x204A, 0x2046, 0x2049); HairHue = Utility.RandomHairHue(); Item hat = null; switch (Utility.Random(5)) //4 hats, one empty, for no hat { case 0: hat = new FloppyHat(Utility.RandomNeutralHue()); break; case 1: hat = new FeatheredHat(Utility.RandomNeutralHue()); break; case 2: hat = new Bonnet(); break; case 3: hat = new Cap(Utility.RandomNeutralHue()); break; } AddItem(hat); Item pants = null; switch (Utility.Random(3)) { case 0: pants = new ShortPants(GetRandomHue()); break; case 1: pants = new LongPants(GetRandomHue()); break; case 2: pants = new Skirt(GetRandomHue()); break; } AddItem(pants); Item shirt = null; switch (Utility.Random(7)) { case 0: shirt = new Doublet(GetRandomHue()); break; case 1: shirt = new Surcoat(GetRandomHue()); break; case 2: shirt = new Tunic(GetRandomHue()); break; case 3: shirt = new FancyDress(GetRandomHue()); break; case 4: shirt = new PlainDress(GetRandomHue()); break; case 5: shirt = new FancyShirt(GetRandomHue()); break; case 6: shirt = new Shirt(GetRandomHue()); break; } AddItem(shirt); } else { this.Body = 0x190; this.Name = NameList.RandomName("male"); HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2048); HairHue = Utility.RandomHairHue(); FacialHairItemID = Utility.RandomList(0x0000, 0x203E, 0x203F, 0x2040, 0x2041, 0x2067, 0x2068, 0x2069); FacialHairHue = HairHue; Item hat = null; switch (Utility.Random(7)) //6 hats, one empty, for no hat { case 0: hat = new SkullCap(GetRandomHue()); break; case 1: hat = new Bandana(GetRandomHue()); break; case 2: hat = new WideBrimHat(); break; case 3: hat = new TallStrawHat(Utility.RandomNeutralHue()); break; case 4: hat = new StrawHat(Utility.RandomNeutralHue()); break; case 5: hat = new TricorneHat(Utility.RandomNeutralHue()); break; } AddItem(hat); Item pants = null; switch (Utility.Random(2)) { case 0: pants = new ShortPants(GetRandomHue()); break; case 1: pants = new LongPants(GetRandomHue()); break; } AddItem(pants); Item shirt = null; switch (Utility.Random(5)) { case 0: shirt = new Doublet(GetRandomHue()); break; case 1: shirt = new Surcoat(GetRandomHue()); break; case 2: shirt = new Tunic(GetRandomHue()); break; case 3: shirt = new FancyShirt(GetRandomHue()); break; case 4: shirt = new Shirt(GetRandomHue()); break; } AddItem(shirt); } Item feet = null; switch (Utility.Random(3)) { case 0: feet = new Boots(Utility.RandomNeutralHue()); break; case 1: feet = new Shoes(Utility.RandomNeutralHue()); break; case 2: feet = new Sandals(Utility.RandomNeutralHue()); break; } AddItem(feet); Container pack = new Backpack(); pack.Movable = false; AddItem(pack); }