public TavaraSewel() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { this.Title = "the Cursed"; this.Hue = 0x8838; this.Female = true; this.Body = 0x191; this.Name = "Tavara Sewel"; this.AddItem(new Kilt(0x59C)); this.AddItem(new Sandals(0x599)); Kryss kryss = new Kryss(); Buckler buckler = new Buckler(); RingmailGloves gloves = new RingmailGloves(); FemalePlateChest chest = new FemalePlateChest(); kryss.Hue = 0x96F; kryss.Movable = false; buckler.Hue = 0x96F; buckler.Movable = false; gloves.Hue = 0x599; chest.Hue = 0x96F; this.AddItem(kryss); this.AddItem(buckler); this.AddItem(gloves); this.AddItem(chest); this.SetStr(111, 120); this.SetDex(111, 120); this.SetInt(111, 120); this.SetHits(180, 207); this.SetStam(126, 150); this.SetMana(0); this.SetDamage(13, 16); this.SetResistance(ResistanceType.Physical, 25, 30); this.SetResistance(ResistanceType.Fire, 25, 30); this.SetResistance(ResistanceType.Cold, 50, 60); this.SetResistance(ResistanceType.Poison, 25, 35); this.SetResistance(ResistanceType.Energy, 25, 35); this.SetSkill(SkillName.Fencing, 90.1, 100.0); this.SetSkill(SkillName.Tactics, 90.1, 100.0); this.SetSkill(SkillName.MagicResist, 80.1, 90.0); this.SetSkill(SkillName.Anatomy, 90.1, 100.0); this.Fame = 5000; this.Karma = -1000; }
public TavaraSewel () : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Title = "the Cursed"; Hue = 0x8838; Female = true; Body = 0x191; AddItem( Immovable(new Kilt( 0x59C )) ); AddItem( Immovable(new Sandals( 0x599 )) ); Kryss kryss = new Kryss(); Buckler buckler = new Buckler(); RingmailGloves gloves = new RingmailGloves(); FemalePlateChest chest = new FemalePlateChest(); kryss.Hue = 0x96F; buckler.Hue = 0x96F; gloves.Hue = 0x599; chest.Hue = 0x96F; AddItem( Immovable(kryss)); AddItem(Immovable( buckler) ); AddItem( Immovable(gloves) ); AddItem( Immovable(chest) ); SetStr( 111, 120 ); SetDex( 111, 120 ); SetInt( 111, 120 ); SetHits( 180, 207 ); SetStam( 126, 150 ); SetMana( 0 ); SetDamage( 13, 16 ); SetSkill( SkillName.Fencing, 90.1, 100.0 ); SetSkill( SkillName.Tactics, 90.1, 100.0 ); SetSkill( SkillName.MagicResist, 80.1, 90.0 ); SetSkill( SkillName.Anatomy, 90.1, 100.0 ); Fame = 5000; Karma = -1000; }
public static string MakeThisTask() { string task = null; switch (Utility.RandomMinMax(1, 10)) { case 1: task = "Repair"; break; case 2: task = "Fix"; break; case 3: task = "Buff"; break; case 4: task = "Modify"; break; case 5: task = "Polish"; break; case 6: task = "Engrave"; break; case 7: task = "Adjust"; break; case 8: task = "Improve"; break; case 9: task = "Smooth the dents from"; break; case 10: task = "Remove the dents from"; break; } Item item = null; switch (Utility.RandomMinMax(1, 79)) { case 1: item = new AssassinSpike(); break; case 2: item = new Axe(); break; case 3: item = new Bardiche(); break; case 4: item = new Bascinet(); break; case 5: item = new BattleAxe(); break; case 6: item = new BoneHarvester(); break; case 7: item = new Broadsword(); break; case 8: item = new BronzeShield(); break; case 9: item = new Buckler(); break; case 10: item = new ButcherKnife(); break; case 11: item = new ChainChest(); break; case 12: item = new ChainCoif(); break; case 13: item = new ChainLegs(); break; case 14: item = new ChampionShield(); break; case 15: item = new Cleaver(); break; case 16: item = new CloseHelm(); break; case 17: item = new CloseHelm(); break; case 18: item = new CrescentBlade(); break; case 19: item = new CrestedShield(); break; case 20: item = new Cutlass(); break; case 21: item = new Dagger(); break; case 22: item = new DarkShield(); break; case 23: item = new DiamondMace(); break; case 24: item = new DoubleAxe(); break; case 25: item = new DoubleBladedStaff(); break; case 26: item = new DreadHelm(); break; case 27: item = new ElvenMachete(); break; case 28: item = new ElvenShield(); break; case 29: item = new ElvenSpellblade(); break; case 30: item = new ExecutionersAxe(); break; case 31: item = new FemalePlateChest(); break; case 32: item = new GuardsmanShield(); break; case 33: item = new Halberd(); break; case 34: item = new HammerPick(); break; case 35: item = new HeaterShield(); break; case 36: item = new Helmet(); break; case 37: item = new Helmet(); break; case 38: item = new JeweledShield(); break; case 39: item = new Katana(); break; case 40: item = new Kryss(); break; case 41: item = new Lance(); break; case 42: item = new LargeBattleAxe(); break; case 43: item = new Leafblade(); break; case 44: item = new Longsword(); break; case 45: item = new Mace(); break; case 46: item = new Maul(); break; case 47: item = new MetalKiteShield(); break; case 48: item = new MetalShield(); break; case 49: item = new NorseHelm(); break; case 50: item = new NorseHelm(); break; case 51: item = new OrnateAxe(); break; case 52: item = new Pickaxe(); break; case 53: item = new Pike(); break; case 54: item = new Pitchfork(); break; case 55: item = new PlateArms(); break; case 56: item = new PlateChest(); break; case 57: item = new PlateGloves(); break; case 58: item = new PlateGorget(); break; case 59: item = new PlateHelm(); break; case 60: item = new PlateHelm(); break; case 61: item = new PlateLegs(); break; case 62: item = new RadiantScimitar(); break; case 63: item = new RingmailArms(); break; case 64: item = new RingmailChest(); break; case 65: item = new RingmailGloves(); break; case 66: item = new RingmailLegs(); break; case 67: item = new RuneBlade(); break; case 68: item = new Scimitar(); break; case 69: item = new Scythe(); break; case 70: item = new ShortSpear(); break; case 71: item = new SkinningKnife(); break; case 72: item = new Spear(); break; case 73: item = new ThinLongsword(); break; case 74: item = new TwoHandedAxe(); break; case 75: item = new VikingSword(); break; case 76: item = new WarAxe(); break; case 77: item = new WarCleaver(); break; case 78: item = new WarHammer(); break; case 79: item = new WarMace(); break; } if (Utility.RandomMinMax(1, 5) == 1) { bool evil = false; bool orient = false; switch (Utility.RandomMinMax(1, 8)) { case 1: evil = true; break; case 2: orient = true; break; } string sAdjective = "unusual"; string eAdjective = "might"; sAdjective = Server.LootPackEntry.MagicItemAdj("start", orient, evil, item.ItemID); eAdjective = Server.LootPackEntry.MagicItemAdj("end", orient, evil, item.ItemID); string name = "item"; string xName = ContainerFunctions.GetOwner("property"); if (item.Name != null && item.Name != "") { name = item.Name.ToLower(); } if (name == "item") { name = MorphingItem.AddSpacesToSentence((item.GetType()).Name).ToLower(); } switch (Utility.RandomMinMax(0, 5)) { case 0: name = sAdjective + " " + name + " of " + xName; break; case 1: name = name + " of " + xName; break; case 2: name = sAdjective + " " + name; break; case 3: name = sAdjective + " " + name + " of " + xName; break; case 4: name = name + " of " + xName; break; case 5: name = sAdjective + " " + name; break; } task = task + " their " + name; } else { string[] sMetals = new string[] { "iron ", "dull copper ", "shadow iron ", "copper ", "bronze ", "gold ", "agapite ", "verite ", "valorite ", "nepturite ", "obsidian ", "steel ", "brass ", "mithril ", "xormite ", "dwarven " }; string sMetal = sMetals[Utility.RandomMinMax(0, (sMetals.Length - 1))]; string name = "item"; if (item.Name != null && item.Name != "") { name = item.Name.ToLower(); } if (name == "item") { name = MorphingItem.AddSpacesToSentence((item.GetType()).Name).ToLower(); } task = task + " their " + sMetal + name; } item.Delete(); return(task); }
public WarriorGuard(Mobile target) : base(target) { InitStats(1000, 1000, 1000); SpeechHue = 0; Hue = Utility.RandomSkinHue(); #region Armor for (int i = 0; i < m_GuardArmor.Length; ++i) { m_GuardArmor[i].Resource = GuardTheme; AddItem(m_GuardArmor[i]); m_GuardArmor[i].Movable = false; } #endregion #region Cloth BaseClothing bC = null; switch (Utility.Random(3)) { case 0: bC = new Doublet(); break; case 1: bC = new Tunic(); break; case 2: bC = new BodySash(); bC.Layer = Layer.Earrings; break; } if (bC != null) { bC.Resource = GuardTheme; AddItem(bC); bC.Movable = false; } #endregion #region Male/Female if (Female = Utility.RandomBool()) { Body = 0x191; if (string.IsNullOrEmpty(Name)) { Name = NameList.RandomName("female"); Title = "the guard"; } FemalePlateChest ar = new FemalePlateChest(); ar.Resource = GuardTheme; AddItem(ar); ar.Movable = false; } else { Body = 0x190; if (string.IsNullOrEmpty(Name)) { Name = NameList.RandomName("male"); Title = "the guard"; } PlateChest ar = new PlateChest(); ar.Resource = GuardTheme; AddItem(ar); ar.Movable = false; } #endregion Utility.AssignRandomHair(this); if (Utility.RandomBool()) Utility.AssignRandomFacialHair(this, HairHue); #region Weapon BaseWeapon weapon; switch(Utility.Random(2)) { case 1: weapon = new Halberd(); break; case 2: weapon = new Longsword(); BaseShield shield = new OrderShield(); shield.Resource = GuardTheme; AddItem(shield); shield.Movable = false; break; default: weapon = new Halberd(); break; } weapon.Crafter = this; weapon.Resource = GuardTheme; weapon.Quality = WeaponQuality.Exceptional; weapon.Speed = 300; weapon.MinDamage = 10000; weapon.MaxDamage = 10000; AddItem(weapon); weapon.Movable = false; #endregion Container pack = new Backpack(); pack.Movable = false; pack.DropItem(new Gold(10, 25)); AddItem(pack); Skills[SkillName.Anatomy].Base = 120.0; Skills[SkillName.Tactics].Base = 125.0; Skills[SkillName.Swords].Base = 100.0; Skills[SkillName.MagicResist].Base = 120.0; Skills[SkillName.DetectHidden].Base = 100.0; //if (Utility.RandomDouble() <= 0.1) // new Horse().Rider = this; NextCombatTime = DateTime.Now + TimeSpan.FromSeconds(1.10); Focus = target; }