public override void InitOutfit() { base.InitOutfit(); Item doublet = new Doublet(); doublet.Hue = 24; AddItem(doublet); Item leatherskirt = new LeatherSkirt(); leatherskirt.Hue = 24; AddItem(leatherskirt); Item booty = new FurBoots(); booty.Hue = 24; AddItem(booty); AddItem(Utility.RandomBool() ? (Item) new Lantern() : (Item) new Candle()); }
public DragonSanctuarySamuraiMoonElf() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.1, 0.2) { SetStr(755, 788); SetDex(300, 500); SetInt(100, 200); SetHits(500, 600); SetDamage(12, 15); SetSkill(SkillName.Anatomy, 100.0); SetSkill(SkillName.MagicResist, 70.0); SetSkill(SkillName.Swords, 100.0); SetSkill(SkillName.Tactics, 100.0); Karma = 10000; m_Timer = new MoveTimer(this); ChangeLocation(); PackItem(new Bandage(Utility.RandomMinMax(15, 20))); if (this.Female = Utility.RandomBool()) { Name = NameList.RandomName("elven female"); Title = "Svartalfar Samurai of Dragon Sanctuary"; Body = 606; Hue = Utility.RandomList(897, 898, 899, 900, 901, 905, 990, 995, 996, 997, 998, 999, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411); HairHue = 2405; HairItemID = Utility.RandomList(12224, 12225, 12236, 12237, 12238, 12239); EbonyMoonblade weapon = new EbonyMoonblade(); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 35); weapon.Slayer = SlayerName.ReptilianDeath; weapon.WeaponAttributes.HitLightning = 25; weapon.Hue = 0x4D5; weapon.Movable = true; AddItem(weapon); AmazonianFighterHelmet helmet = new AmazonianFighterHelmet(); helmet.Movable = true; AddItem(helmet); AmazonianFighterBustier chest = new AmazonianFighterBustier(); chest.Movable = true; AddItem(chest); AmazonianFighterGloves gloves = new AmazonianFighterGloves(); gloves.Movable = true; AddItem(gloves); AddItem(new AmazonianFighterBelt()); AddItem(new AmazonianFighterBoots()); new Ridgeback().Rider = this; } else { Name = NameList.RandomName("elven male"); Title = "Svartalfar Samurai of Dragon Sanctuary"; Body = 605; Hue = Utility.RandomList(897, 898, 899, 900, 901, 905, 990, 995, 996, 997, 998, 999, 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411); HairHue = 2405; HairItemID = Utility.RandomList(12224, 12225, 12236, 12237, 12238, 12239); EbonyGlassBardiche weapon = new EbonyGlassBardiche(); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 35); weapon.Slayer = SlayerName.ReptilianDeath; weapon.WeaponAttributes.HitLightning = 25; weapon.Hue = 0x4D5; weapon.Movable = true; AddItem(weapon); DecorativePlateKabuto helm = new DecorativePlateKabuto(); BaseRunicTool.ApplyAttributesTo(helm, 5, 25, 35); helm.Hue = 0x4D5; helm.Movable = true; AddItem(helm); PlateMempo gorget = new PlateMempo(); BaseRunicTool.ApplyAttributesTo(gorget, 5, 25, 35); gorget.Hue = 0x4D5; gorget.Movable = true; AddItem(gorget); PlateHiroSode arms = new PlateHiroSode(); BaseRunicTool.ApplyAttributesTo(arms, 5, 25, 35); arms.Hue = 0x4D5; arms.Movable = true; AddItem(arms); PlateDo chest = new PlateDo(); BaseRunicTool.ApplyAttributesTo(chest, 5, 25, 35); chest.Hue = 0x4D5; chest.Movable = true; AddItem(chest); PlateHaidate legs = new PlateHaidate(); BaseRunicTool.ApplyAttributesTo(legs, 5, 25, 35); legs.Hue = 0x4D5; legs.Movable = true; AddItem(legs); FurBoots boots = new FurBoots(); BaseRunicTool.ApplyAttributesTo(boots, 5, 25, 35); boots.Hue = 0x4D5; boots.Movable = true; AddItem(boots); new SavageRidgeback().Rider = this; } }
public static void VendorBeg(Mobile m, object targeted, double chance) { //Console.WriteLine("Chance: {0}", chance); Mobile t = (Mobile)targeted; Item reward = null; string rewardName = ""; if (chance > .99 && m.Skills.Begging.Base >= 100) //Vendor Only (1 hour cooldown) { int rand = Utility.Random(9); //0-9 (10 Total) (40% chance for a item) if (rand == 0) { reward = new RockArtifact(); //Rock Artifact rewardName = "A rock"; } else if (rand == 2) { reward = new BeggerCoins(24); //Special Coins rewardName = "24 dull slver coins."; } else if (rand == 4) //Fur Boots { reward = new FurBoots(); rewardName = "a pair of Fur Boots"; } else if (rand == 6) { reward = new FlowerGarland(); rewardName = "a flower Garland"; } } Console.WriteLine("RewardName (1) {0}", reward); if (chance > .95 && m.Skills.Begging.Base >= 90 && reward == null) { int rand = Utility.Random(9); Console.WriteLine("Random 2 is {0}", rand); if (rand == 0) { reward = new BegBedRoll(); rewardName = "Bedroll"; } else if (rand == 1) { reward = new Cookies(); rewardName = "Cookies"; } else if (rand == 3) { reward = new FishSteak(); rewardName = "Fish Steaks"; } else if (rand == 4) { reward = new FishingPole(); rewardName = "Fishing Pole"; } else if (rand == 6) { reward = new BeggerCoins(12); rewardName = "12 Dull Silver Coins."; } else if (rand == 7) { reward = new Turnip(); rewardName = "Turnip"; } else if (rand == 9) { reward = new CeramicMug(); rewardName = "Ceramic Mug"; } } Console.WriteLine("RewardName (2) {0}", reward); if (reward == null) { JunkBeg(m, t, chance); } else { Reward(m, t, reward, rewardName); } }
public EvilRanger() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4) { m_Spawns = new ArrayList(); Name = NameList.RandomName("male"); Title = "the Evil Ranger"; Body = 400; BaseSoundID = 0x45A; this.Hue = Utility.RandomSkinHue(); SetStr(390); SetDex(160); SetInt(400); SetMana(300); SetHits(3000); SetDamage(15, 20); SetDamageType(ResistanceType.Physical, 50); SetDamageType(ResistanceType.Energy, 50); SetResistance(ResistanceType.Physical, 90); SetResistance(ResistanceType.Fire, 90); SetResistance(ResistanceType.Cold, 60); SetResistance(ResistanceType.Poison, 90); SetResistance(ResistanceType.Energy, 90); SetSkill(SkillName.MagicResist, 120.0); SetSkill(SkillName.Magery, 120.0); SetSkill(SkillName.EvalInt, 120.0); SetSkill(SkillName.Meditation, 120.0); SetSkill(SkillName.Tactics, 120.0); SetSkill(SkillName.Macing, 120.0); SetSkill(SkillName.Anatomy, 120.0); Fame = 5000; Karma = -5000; VirtualArmor = 45; RangerChest chest = new RangerChest(); //add its armor and set its hue and not movable so it won't be on loot chest.Hue = 0x59C; chest.Movable = false; AddItem(chest); RangerArms arms = new RangerArms(); arms.Hue = 0x59C; arms.Movable = false; AddItem(arms); RangerGloves gloves = new RangerGloves(); gloves.Hue = 0x59C; gloves.Movable = false; AddItem(gloves); RangerGorget gorget = new RangerGorget(); gorget.Hue = 0x59C; gorget.Movable = false; AddItem(gorget); RangerLegs legs = new RangerLegs(); legs.Hue = 0x59C; legs.Movable = false; AddItem(legs); Bow weapon = new Bow(); //add its weapon and set its hue and not movable so it won't be on loot weapon.Name = "Evil Ranger Bow"; weapon.Hue = 0x59C; weapon.Movable = false; AddItem(weapon); FurBoots boots = new FurBoots(); //add its boots and set its hue and not movable so it won't be on loot boots.Hue = 0x59C; boots.Movable = false; AddItem(boots); Item hair = new Item(8251); //add its hair and set its hue and not movable so it won't be on loot hair.Hue = 0x59C; hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); switch (Utility.Random(25)) { case 0: PackItem(new RangerGorget()); break; case 1: PackItem(new RangerArms()); break; case 2: PackItem(new RangerGloves()); break; case 3: PackItem(new RangerLegs()); break; case 5: PackItem(new RangerChest()); break; } }
public MasterOfTheArts(bool i_ChampionSpawn) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Stitches"; //the name players will see Body = 999; //how it look like in game BaseSoundID = 42; //what sound he makes (I still have problems with sound :( ChampionSpawn = i_ChampionSpawn; //set if it spawn with champ spawn or normal spawn SetStr(401, 420); //set stats SetDex(81, 90); SetInt(201, 220); SetHits(1500, 1700); //set hp SetDamage(50, 60); //set how much damage ~ SetDamageType(ResistanceType.Physical, 50); //which damage type it does SetDamageType(ResistanceType.Poison, 50); SetResistance(ResistanceType.Physical, 60, 80); //what resists it have SetResistance(ResistanceType.Fire, 55, 70); SetResistance(ResistanceType.Cold, 55, 70); SetResistance(ResistanceType.Poison, 55, 70); SetResistance(ResistanceType.Energy, 55, 70); SetSkill(SkillName.Anatomy, 120.0); SetSkill(SkillName.Tactics, 120.0); SetSkill(SkillName.Macing, 120.0); Fame = 30000; //its fame/karma Karma = -30000; VirtualArmor = 50; PlateChest chest = new PlateChest(); //add its armor and set its hue and not movable so it won't be on loot chest.Hue = 503; chest.Movable = false; AddItem(chest); PlateArms arms = new PlateArms(); arms.Hue = 503; arms.Movable = false; AddItem(arms); PlateGloves gloves = new PlateGloves(); gloves.Hue = 503; gloves.Movable = false; AddItem(gloves); PlateGorget gorget = new PlateGorget(); gorget.Hue = 503; gorget.Movable = false; AddItem(gorget); PlateLegs legs = new PlateLegs(); legs.Hue = 503; legs.Movable = false; AddItem(legs); WarHammer weapon = new WarHammer(); //add its weapon and set its hue and not movable so it won't be on loot weapon.Name = "Crafting Union Leader's Hammer"; weapon.Hue = 503; weapon.Movable = false; AddItem(weapon); FurBoots boots = new FurBoots(); //add its boots and set its hue and not movable so it won't be on loot boots.Hue = 503; boots.Movable = false; AddItem(boots); Item hair = new Item(8251); //add its hair and set its hue and not movable so it won't be on loot hair.Hue = 503; hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); AddItem(new Gold(500, 1000)); if (Utility.Random(25) == 1) { AddItem(new PersonalStatueDeed()); } //new Mule(99.1, true).Rider = this; //make it ride on mule }
public DragonSanctuarySamuraiHuman() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.1, 0.2) { SetStr(755, 788); SetDex(300, 500); SetInt(100, 200); SetHits(500, 600); SetDamage(12, 15); SetSkill(SkillName.Anatomy, 100.0); SetSkill(SkillName.MagicResist, 70.0); SetSkill(SkillName.Swords, 100.0); SetSkill(SkillName.Tactics, 100.0); Karma = 10000; m_Timer = new MoveTimer(this); ChangeLocation(); PackItem(new Bandage(Utility.RandomMinMax(15, 20))); if (this.Female = Utility.RandomBool()) { Name = NameList.RandomName("female"); Title = "Human Samurai of Dragon Sanctuary"; Body = 401; Hue = Utility.RandomList(33784, 33785, 33788, 33791, 33794, 33798, 33800, 33805, 33806, 33808, 33815, 33821, 33822, 33824, 33825); HairHue = Utility.RandomList(26, 44, 81, 1102, 1107, 1108, 1109, 1116, 1117, 1122, 1138, 1140, 1141, 1146, 1148, 1149, 1153); HairItemID = Utility.RandomList(8251, 8252, 8253, 8260, 8261, 8262, 8263, 8264, 8265); Daisho weapon = new Daisho(); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 35); weapon.Slayer = SlayerName.ReptilianDeath; weapon.WeaponAttributes.HitLightning = 25; weapon.Hue = 0x4D5; weapon.Movable = true; AddItem(weapon); AmazonianFighterHelmet helmet = new AmazonianFighterHelmet(); helmet.Movable = true; AddItem(helmet); AmazonianFighterBustier chest = new AmazonianFighterBustier(); chest.Movable = true; AddItem(chest); AmazonianFighterGloves gloves = new AmazonianFighterGloves(); gloves.Movable = true; AddItem(gloves); AddItem(new AmazonianFighterBelt()); AddItem(new AmazonianFighterBoots()); new ForestOstard().Rider = this; } else { Name = NameList.RandomName("male"); Title = "Human Samurai of Dragon Sanctuary"; Body = 400; Hue = Utility.RandomList(33784, 33785, 33788, 33791, 33794, 33798, 33800, 33805, 33806, 33808, 33815, 33821, 33822, 33824, 33825); HairHue = Utility.RandomList(26, 44, 81, 1102, 1107, 1108, 1109, 1116, 1117, 1122, 1138, 1140, 1141, 1146, 1148, 1149, 1153); HairItemID = Utility.RandomList(8251, 8252, 8253, 8260, 8261, 8262, 8263, 8264, 8265); FacialHairHue = Utility.RandomList(26, 44, 81, 1102, 1107, 1108, 1109, 1116, 1117, 1122, 1138, 1140, 1141, 1146, 1148, 1149, 1153); FacialHairItemID = Utility.RandomList(8254, 8255, 8256, 8257, 8267, 8268, 8269); NoDachi weapon = new NoDachi(); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 35); weapon.Slayer = SlayerName.ReptilianDeath; weapon.WeaponAttributes.HitLightning = 25; weapon.Hue = 0x4D5; weapon.Movable = true; AddItem(weapon); DecorativePlateKabuto helm = new DecorativePlateKabuto(); BaseRunicTool.ApplyAttributesTo(helm, 5, 25, 35); helm.Hue = 0x4D5; helm.Movable = true; AddItem(helm); PlateMempo gorget = new PlateMempo(); BaseRunicTool.ApplyAttributesTo(gorget, 5, 25, 35); gorget.Hue = 0x4D5; gorget.Movable = true; AddItem(gorget); PlateHiroSode arms = new PlateHiroSode(); BaseRunicTool.ApplyAttributesTo(arms, 5, 25, 35); arms.Hue = 0x4D5; arms.Movable = true; AddItem(arms); PlateDo chest = new PlateDo(); BaseRunicTool.ApplyAttributesTo(chest, 5, 25, 35); chest.Hue = 0x4D5; chest.Movable = true; AddItem(chest); PlateHaidate legs = new PlateHaidate(); BaseRunicTool.ApplyAttributesTo(legs, 5, 25, 35); legs.Hue = 0x4D5; legs.Movable = true; AddItem(legs); FurBoots boots = new FurBoots(); BaseRunicTool.ApplyAttributesTo(boots, 5, 25, 35); boots.Hue = 0x4D5; boots.Movable = true; AddItem(boots); new FrenziedOstard().Rider = this; } }
public DragonSanctuarySamuraiSunElf() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.1, 0.2) { SetStr(755, 788); SetDex(300, 500); SetInt(100, 200); SetHits(500, 600); SetDamage(12, 15); SetSkill(SkillName.Anatomy, 100.0); SetSkill(SkillName.MagicResist, 70.0); SetSkill(SkillName.Swords, 100.0); SetSkill(SkillName.Tactics, 100.0); Karma = 10000; m_Timer = new MoveTimer(this); ChangeLocation(); PackItem(new Bandage(Utility.RandomMinMax(15, 20))); if (this.Female = Utility.RandomBool()) { Name = NameList.RandomName("elven female"); Title = "Ljosalfar Samurai of Dragon Sanctuary"; Body = 606; Hue = Utility.RandomList(1002, 1003, 1009, 1010, 1011, 1016, 1017, 1023, 1030); HairHue = Utility.RandomList(1502, 1507, 1513, 2213, 2216, 2218); HairItemID = Utility.RandomList(12224, 12225, 12236, 12237, 12238, 12239); RadiantScimitar weapon = new RadiantScimitar(); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 35); weapon.Slayer = SlayerName.ReptilianDeath; weapon.WeaponAttributes.HitLightning = 25; weapon.Hue = 0x4D5; weapon.Movable = true; AddItem(weapon); AmazonianFighterHelmet helmet = new AmazonianFighterHelmet(); helmet.Movable = true; AddItem(helmet); AmazonianFighterBustier chest = new AmazonianFighterBustier(); chest.Movable = true; AddItem(chest); AmazonianFighterGloves gloves = new AmazonianFighterGloves(); gloves.Movable = true; AddItem(gloves); AddItem(new AmazonianFighterBelt()); AddItem(new AmazonianFighterBoots()); new Unicorn().Rider = this; } else { Name = NameList.RandomName("elven male"); Title = "Ljosalfar Samurai of Dragon Sanctuary"; Body = 605; Hue = Utility.RandomList(1002, 1003, 1009, 1010, 1011, 1016, 1017, 1023, 1030); HairHue = Utility.RandomList(1502, 1507, 1513, 2213, 2216, 2218); HairItemID = Utility.RandomList(12224, 12225, 12236, 12237, 12238, 12239); SetSkill(SkillName.Fencing, 100.0); WarCleaver weapon = new WarCleaver(); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 35); weapon.Slayer = SlayerName.ReptilianDeath; weapon.WeaponAttributes.HitLightning = 25; weapon.Hue = 0x4D5; weapon.Movable = true; AddItem(weapon); DecorativePlateKabuto helm = new DecorativePlateKabuto(); BaseRunicTool.ApplyAttributesTo(helm, 5, 25, 35); helm.Hue = 0x4D5; helm.Movable = true; AddItem(helm); PlateMempo gorget = new PlateMempo(); BaseRunicTool.ApplyAttributesTo(gorget, 5, 25, 35); gorget.Hue = 0x4D5; gorget.Movable = true; AddItem(gorget); PlateHiroSode arms = new PlateHiroSode(); BaseRunicTool.ApplyAttributesTo(arms, 5, 25, 35); arms.Hue = 0x4D5; arms.Movable = true; AddItem(arms); PlateDo chest = new PlateDo(); BaseRunicTool.ApplyAttributesTo(chest, 5, 25, 35); chest.Hue = 0x4D5; chest.Movable = true; AddItem(chest); PlateHaidate legs = new PlateHaidate(); BaseRunicTool.ApplyAttributesTo(legs, 5, 25, 35); legs.Hue = 0x4D5; legs.Movable = true; AddItem(legs); FurBoots boots = new FurBoots(); BaseRunicTool.ApplyAttributesTo(boots, 5, 25, 35); boots.Hue = 0x4D5; boots.Movable = true; AddItem(boots); new Kirin().Rider = this; } }