public KhaldunSummoner() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 0x190; Name = "Zealot of Khaldun"; Title = "the Summoner"; SetStr( 351, 400 ); SetDex( 101, 150 ); SetInt( 502, 700 ); SetHits( 421, 480 ); SetDamage( 5, 15 ); SetDamageType( ResistanceType.Physical, 75 ); SetDamageType( ResistanceType.Cold, 25 ); SetResistance( ResistanceType.Physical, 35, 40 ); SetResistance( ResistanceType.Fire, 25, 30 ); SetResistance( ResistanceType.Cold, 50, 60 ); SetResistance( ResistanceType.Poison, 25, 35 ); SetResistance( ResistanceType.Energy, 25, 35 ); SetSkill( SkillName.Wrestling, 90.1, 100.0 ); SetSkill( SkillName.Tactics, 90.1, 100.0 ); SetSkill( SkillName.MagicResist, 90.1, 100.0 ); SetSkill( SkillName.Magery, 90.1, 100.0 ); SetSkill( SkillName.EvalInt, 100.0 ); SetSkill( SkillName.Meditation, 120.1, 130.0 ); VirtualArmor = 16; Fame = 10000; Karma = -10000; LeatherGloves gloves = new LeatherGloves(); gloves.Hue = 0x66D; AddItem( gloves ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x835; AddItem( helm ); Necklace necklace = new Necklace(); necklace.Hue = 0x66D; AddItem( necklace ); Cloak cloak = new Cloak(); cloak.Hue = 0x66D; AddItem( cloak ); Kilt kilt = new Kilt(); kilt.Hue = 0x66D; AddItem( kilt ); Sandals sandals = new Sandals(); sandals.Hue = 0x66D; AddItem( sandals ); }
public KhaldunSummoner():base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Body = 0x190; Title = "the Summoner"; SetStr(1254, 1381); SetDex(93, 135); SetInt(745, 810); SetHits(694, 875); SetDamage(12, 20); SetSkill( SkillName.Wrestling, 90.1, 100.0 ); SetSkill( SkillName.Tactics, 90.1, 100.0 ); SetSkill( SkillName.MagicResist, 90.1, 100.0 ); SetSkill( SkillName.Magery, 90.1, 100.0 ); SetSkill( SkillName.EvalInt, 100.0 ); SetSkill( SkillName.Meditation, 120.1, 130.0 ); VirtualArmor = 36; Fame = 10000; Karma = -10000; LeatherGloves gloves = new LeatherGloves(); gloves.Hue = 0x66D; gloves.Identified = true; AddItem( Immovable(gloves) ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x835; helm.Identified = true; AddItem( Immovable(helm) ); Necklace necklace = new Necklace(); necklace.Hue = 0x66D; AddItem( Immovable(necklace) ); Cloak cloak = new Cloak(); cloak.Hue = 0x66D; AddItem( Immovable(cloak) ); Kilt kilt = new Kilt(); kilt.Hue = 0x66D; AddItem( Immovable(kilt) ); Sandals sandals = new Sandals(); sandals.Hue = 0x66D; AddItem( Immovable(sandals) ); }
public Zombie() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.45, 0.8) { Body = 3; Name = "a zombie"; SetStr( 46, 70 ); SetHits( 46, 70 ); SetDex( 31, 50 ); SetStam( 31, 50 ); SetInt( 26, 40 ); SetMana( 26, 40 ); Karma = -125; BaseSoundID = 471; SetSkill( SkillName.Tactics, 35.1, 50 ); SetSkill( SkillName.MagicResist, 15.1, 40 ); SetSkill( SkillName.Parry, 20.1, 30 ); SetSkill( SkillName.Wrestling, 35.1, 50 ); VirtualArmor = 9; SetDamage( 2, 8 ); Item item = null; LootPack.Poor.Generate( this ); if ( Utility.RandomBool() ) PackGold( 5, 25 ); if ( Utility.RandomBool() ) PackGem(); switch ( Utility.Random( 10 ) ) { case 0: { item = new BoneChest(); break; } case 1: { item = new BoneLegs(); break; } case 2: { item = new BoneArms(); break; } case 3: { item = new BoneGloves(); break; } case 4: { item = new BoneHelm(); break; } } PackItem( item ); }
public TheCursedWarrior() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 0x190; Name = NameList.RandomName("male"); Title = "the cursed warrior"; Hue = 2130; SetStr(350); SetDex(150); SetInt(100); SetResistance(ResistanceType.Physical, 40, 60); SetResistance(ResistanceType.Fire, 40, 50); SetResistance(ResistanceType.Cold, 50, 60); SetResistance(ResistanceType.Poison, 55, 65); SetResistance(ResistanceType.Energy, 40, 50); SetSkill(SkillName.Wrestling, 74.0, 80.0); SetSkill(SkillName.Swords, 90.0, 95.0); SetSkill(SkillName.Anatomy, 120.0, 125.0); SetSkill(SkillName.MagicResist, 90.0, 94.0); SetSkill(SkillName.Tactics, 90.0, 95.0); SetSkill(SkillName.Healing, 90.0); Fame = NotorietyHandlers.GetNotorietyByLevel( 2 ); Karma = NotorietyHandlers.GetNotorietyByLevel( -2 ); VirtualArmor = 60; BoneArms arms = new BoneArms(); arms.Hue = m_iArmorHue; AddItem(CursedCaveUtility.MutateItem(arms, 10)); BoneGloves gloves = new BoneGloves(); gloves.Hue = m_iArmorHue; AddItem(CursedCaveUtility.MutateItem(gloves, 10)); BoneChest tunic = new BoneChest(); tunic.Hue = m_iArmorHue; AddItem(CursedCaveUtility.MutateItem(tunic, 10)); BoneLegs legs = new BoneLegs(); legs.Hue = m_iArmorHue; AddItem(CursedCaveUtility.MutateItem(legs, 10)); BoneHelm helm = new BoneHelm(); helm.Hue = m_iArmorHue; AddItem(CursedCaveUtility.MutateItem(helm, 10)); AddItem(new Shoes()); AddItem(CursedCaveUtility.MutateItem(new HeaterShield(), 10)); VikingSword weapon = new VikingSword(); AddItem(CursedCaveUtility.MutateItem(weapon, 10)); }
public Skeleton() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.45, 0.8) { Body = Utility.RandomList( 50,56 ); Name = "a skeleton"; SetStr( 56, 80 ); SetHits( 56, 80 ); SetDex( 56, 75 ); SetStam( 56, 75 ); SetInt( 16, 40 ); SetMana( 0 ); Karma = -125; BaseSoundID = 451; SetSkill( SkillName.Tactics, 45.1, 60 ); SetSkill( SkillName.MagicResist, 45.1, 60 ); SetSkill( SkillName.Parry, 45.1, 55 ); SetSkill( SkillName.Wrestling, 45.1, 55 ); VirtualArmor = 8; SetDamage( 2, 8 ); Item item = null; switch ( Utility.Random( 10 ) ) { case 0: { item = new BoneChest(); break; } case 1: { item = new BoneLegs(); break; } case 2: { item = new BoneArms(); break; } case 3: { item = new BoneGloves(); break; } case 4: { item = new BoneHelm(); break; } } PackItem( item ); LootPack.Meager.Generate( this ); }
public KhaldunZealot():base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Body = 0x190; Name = "Khaldun Zealot"; Hue = 0; this.InitStats(Utility.Random(359,399), Utility.Random(138,151), Utility.Random(76,97)); this.Skills[SkillName.Wrestling].Base = Utility.Random(74,80); this.Skills[SkillName.Swords].Base = Utility.Random(90,95); this.Skills[SkillName.Anatomy].Base = Utility.Random(120,125); this.Skills[SkillName.MagicResist].Base = Utility.Random(90,94); this.Skills[SkillName.Tactics].Base = Utility.Random(90,95); this.Fame = Utility.Random(5000,9999); this.Karma = Utility.Random(-5000,-9999); this.VirtualArmor = 40; BoneArms arms = new BoneArms(); arms.Hue = 0x3A8; arms.LootType = LootType.Blessed; AddItem( arms ); BoneGloves gloves = new BoneGloves(); gloves.Hue = 0x3A8; gloves.LootType = LootType.Blessed; AddItem( gloves ); BoneChest tunic = new BoneChest(); tunic.Hue = 0x3A8; tunic.LootType = LootType.Blessed; AddItem( tunic ); BoneLegs legs = new BoneLegs(); legs.Hue = 0x3A8; legs.LootType = LootType.Blessed; AddItem( legs ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x3A8; helm.LootType = LootType.Blessed; AddItem( helm ); AddItem( new Shoes() ); AddItem( new Buckler()); VikingSword weapon = new VikingSword(); weapon.Movable = true; AddItem( weapon ); }
public KhaldunSummoner():base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Body = 0x190; Name = "Khaldun Zealot"; SetStr( 356, 396 ); SetDex( 105, 135 ); SetInt( 530, 653 ); SetSkill( SkillName.Wrestling, 91.3, 97.8 ); SetSkill( SkillName.Tactics, 91.5, 99.0 ); SetSkill( SkillName.MagicResist, 90.6, 96.8); SetSkill( SkillName.Magery, 91.7, 99.0 ); SetSkill( SkillName.EvalInt, 100.1, 100.1 ); SetSkill( SkillName.Meditation, 121.1, 128.1 ); VirtualArmor = 36; SetFameLevel( 4 ); SetKarmaLevel( 4 ); LeatherGloves gloves = new LeatherGloves(); gloves.Hue = 32; AddItem( gloves ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x3A8; helm.LootType = LootType.Blessed; AddItem( helm ); Cloak cloak = new Cloak(); cloak.Hue = 32; AddItem( cloak ); Kilt kilt = new Kilt(); kilt.Hue = 32; AddItem( kilt ); Sandals sandals = new Sandals(); sandals.Hue = 32; AddItem( sandals ); }
public SoulBinder() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Soul Binder"; Title= "from Hell"; Hue= 0xFFFF; Body = 400; SpeechHue= 1258; BaseSoundID = 0; Team = 0; new EtherealHorse().Rider = this; SetStr( 275, 375); SetDex( 40, 75); SetInt( 100, 150); SetHits(230, 375); SetMana(100, 150); SetDamage( 10, 15); SetSkill( SkillName.Tactics, 100.7, 100.4); SetSkill( SkillName.Anatomy, 100.5, 100.3); SetSkill( SkillName.MagicResist, 220.4, 220.7); SetSkill( SkillName.Magery, 120.4, 120.7); SetSkill( SkillName.Macing, 110.4, 110.7); SetSkill( SkillName.EvalInt, 110.4, 110.7); Fame=7000; Karma=-10000; VirtualArmor= 70; Item GnarledStaff = new GnarledStaff(); GnarledStaff.Movable=false; GnarledStaff.Hue=1; EquipItem( GnarledStaff ); Item BoneHelm = new BoneHelm(); BoneHelm.Movable=false; BoneHelm.Hue=38; EquipItem( BoneHelm ); Item HoodedShroudOfShadows = new HoodedShroudOfShadows(); HoodedShroudOfShadows.Movable=false; HoodedShroudOfShadows.Hue=0xFFFF; EquipItem( HoodedShroudOfShadows ); Item PlateGloves = new PlateGloves(); PlateGloves.Movable=false; PlateGloves.Hue=38; EquipItem( PlateGloves ); Item LongPants = new LongPants(); LongPants.Movable=false; LongPants.Hue=1; EquipItem( LongPants ); Item Sandals = new Sandals(); Sandals.Movable=false; Sandals.Hue=1; EquipItem( Sandals ); Item Cloak = new Cloak(); Cloak.Movable=false; Cloak.Hue=0xFFFF; EquipItem( Cloak ); Item hair = new Item( 0x203B); hair.Hue = 38; hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); PackGold( 1800, 3100); PackMagicItems( 3, 7); switch ( Utility.Random( 1 )) { case 0: PackItem( new SoulGem() ); break; } }
public KhaldunZealot(): base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Body = 0x190; Name = "Zealot of Khaldun"; Title = "the Knight"; Hue = 0; SetStr( 351, 400 ); SetDex( 151, 165 ); SetInt( 76, 100 ); SetHits( 448, 470 ); SetDamage( 15, 25 ); SetDamageType( ResistanceType.Physical, 75 ); SetDamageType( ResistanceType.Cold, 25 ); SetResistance( ResistanceType.Physical, 35, 45 ); SetResistance( ResistanceType.Fire, 25, 30 ); SetResistance( ResistanceType.Cold, 50, 60 ); SetResistance( ResistanceType.Poison, 25, 35 ); SetResistance( ResistanceType.Energy, 25, 35 ); SetSkill( SkillName.Wrestling, 70.1, 80.0 ); SetSkill( SkillName.Swords, 120.1, 130.0 ); SetSkill( SkillName.Anatomy, 120.1, 130.0 ); SetSkill( SkillName.MagicResist, 90.1, 100.0 ); SetSkill( SkillName.Tactics, 90.1, 100.0 ); Fame = 10000; Karma = -10000; VirtualArmor = 40; VikingSword weapon = new VikingSword(); weapon.Hue = 0x835; weapon.Movable = false; AddItem( weapon ); MetalShield shield = new MetalShield(); shield.Hue = 0x835; shield.Movable = false; AddItem( shield ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x835; AddItem( helm ); BoneArms arms = new BoneArms(); arms.Hue = 0x835; AddItem( arms ); BoneGloves gloves = new BoneGloves(); gloves.Hue = 0x835; AddItem( gloves ); BoneChest tunic = new BoneChest(); tunic.Hue = 0x835; AddItem( tunic ); BoneLegs legs = new BoneLegs(); legs.Hue = 0x835; AddItem( legs ); AddItem( new Boots() ); }
/// <summary> /// This is the function gives weaponry to players. /// </summary> private static void ArmPlayer(CTFPlayerGameData pgd) { Mobile m = pgd.Mob; if (!m.Alive) m.Resurrect(); for (int i = m.Items.Count - 1; i >= 0; --i) { Item item = (Item)m.Items[i]; if (item.Layer == Layer.OuterTorso) { item.Delete(); break; } } List<Item> armthis = new List<Item>(); if(GiveRobe) armthis.Add(new CTFRobe(pgd.Team)); Item rankedCloth = null; CTFTeam team = pgd.Team; // 21 Ranks switch (CTFData.GetRank(m)) { default: case 0: rankedCloth = new JesterHat(team.Hue); break; case 1: rankedCloth = new TallStrawHat(team.Hue); break; case 2: rankedCloth = new FloppyHat(team.Hue); break; case 3: rankedCloth = new WideBrimHat(team.Hue); break; case 4: rankedCloth = new Cap(team.Hue); break; case 5: rankedCloth = new SkullCap(team.Hue); break; case 6: rankedCloth = new FlowerGarland(team.Hue); break; case 7: rankedCloth = new StrawHat(team.Hue); break; case 8: rankedCloth = new FeatheredHat(team.Hue); break; case 9: rankedCloth = new TricorneHat(team.Hue); break; case 10: rankedCloth = new TribalMask(team.Hue); break; case 11: rankedCloth = new HornedTribalMask(team.Hue); break; case 12: rankedCloth = new BearMask(team.Hue); break; case 13: rankedCloth = new DeerMask(team.Hue); break; case 14: rankedCloth = new OrcishKinMask(team.Hue); break; case 15: rankedCloth = new SavageMask(team.Hue); break; case 16: rankedCloth = new WizardsHat(team.Hue); break; case 17: rankedCloth = new Bandana(team.Hue); break; case 18: rankedCloth = new ClothNinjaHood(team.Hue); break; case 19: rankedCloth = new Kasa(team.Hue); break; case 20: rankedCloth = new BoneHelm(); rankedCloth.Hue = team.Hue; ((BaseArmor)rankedCloth).ArmorAttributes.MageArmor = 1; break; } if (rankedCloth != null) { rankedCloth.Movable = false; armthis.Add(rankedCloth); } //Alchemy removed by Blady /* if (m.Skills[SkillName.Alchemy].Value >= (m_MinSupplySkill + 15)) //80 Alchemy req - by Blady { for (int i = 0; i < 6; i++) //Amount reduced to 6 by Blady - used to be 10 { armthis.Add(new ExplosionPotion()); armthis.Add(new GreaterHealPotion()); armthis.Add(new GreaterCurePotion()); armthis.Add(new GreaterAgilityPotion()); armthis.Add(new RefreshPotion()); armthis.Add(new GreaterStrengthPotion()); } } */ if (m.Skills[SkillName.Chivalry].Value >= m_MinSupplySkill) { BookOfChivalry book = new BookOfChivalry(); book.Content = 1023;//all spells armthis.Add(book); } if (m.Skills[SkillName.Necromancy].Value >= m_MinSupplySkill) { NecromancerSpellbook book = new NecromancerSpellbook(); book.Content = 0x1FFFF; armthis.Add(book); } if (m.Skills[SkillName.Magery].Value >= m_MinSupplySkill) { GnarledStaff gs = new GnarledStaff(); gs.Attributes.SpellChanneling = 1; gs.WeaponAttributes.MageWeapon = 20; armthis.Add(gs); Spellbook book = new Spellbook(); book.Content = ulong.MaxValue; armthis.Add(book); } if (m.Skills[SkillName.Healing].Value >= m_MinSupplySkill) armthis.Add(new Bandage(1000)); if (m.Skills[SkillName.Fencing].Value >= m_MinSupplySkill) { Spear sp = new Spear(); sp.Attributes.SpellChanneling = 1; armthis.Add(sp); ShortSpear ssp = new ShortSpear(); ssp.Attributes.SpellChanneling = 1; armthis.Add(ssp); WarFork wf = new WarFork(); wf.Attributes.SpellChanneling = 1; armthis.Add(wf); Kryss k = new Kryss(); k.Attributes.SpellChanneling = 1; armthis.Add(k); } if (m.Skills[SkillName.Swords].Value >= m_MinSupplySkill) { if (m.Skills[SkillName.Lumberjacking].Value >= m_MinSupplySkill) { ExecutionersAxe ea = new ExecutionersAxe(); ea.Attributes.SpellChanneling = 1; armthis.Add(ea); } Katana k = new Katana(); k.Attributes.SpellChanneling = 1; armthis.Add(k); Longsword ls = new Longsword(); ls.Attributes.SpellChanneling = 1; armthis.Add(ls); Cleaver c = new Cleaver(); c.Attributes.SpellChanneling = 1; armthis.Add(c); BoneHarvester bh = new BoneHarvester(); bh.Attributes.SpellChanneling = 1; armthis.Add(bh); } if (m.Skills[SkillName.Macing].Value >= m_MinSupplySkill) { WarAxe wa = new WarAxe(); wa.Attributes.SpellChanneling = 1; armthis.Add(wa); HammerPick hp = new HammerPick(); hp.Attributes.SpellChanneling = 1; armthis.Add(hp); QuarterStaff qs = new QuarterStaff(); qs.Attributes.SpellChanneling = 1; armthis.Add(qs); } if (m.Skills[SkillName.Archery].Value >= m_MinSupplySkill) { Bow b = new Bow(); b.Attributes.SpellChanneling = 1; armthis.Add(b); Crossbow xb = new Crossbow(); xb.Attributes.SpellChanneling = 1; armthis.Add(xb); CompositeBow cb = new CompositeBow(); cb.Attributes.SpellChanneling = 1; armthis.Add(cb); armthis.Add(new Arrow(150)); armthis.Add(new Bolt(150)); } if (m.Skills[SkillName.Poisoning].Value >= m_MinSupplySkill) { for (int i = 0; i < 2; i++) armthis.Add(new GreaterPoisonPotion()); } if (m.Skills[SkillName.Parry].Value >= m_MinSupplySkill) { MetalKiteShield ks = new MetalKiteShield(); ks.Attributes.SpellChanneling = 1; armthis.Add(ks); } SunnySystem.ArmPlayer(m, armthis); }
public SkeletalKnight() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.45, 0.8) { Body = 57; Name = "a skeletal knight"; SetStr( 96, 150 ); SetHits( 96, 150 ); SetDex( 76, 95 ); SetStam( 76, 95 ); SetInt( 36, 60 ); SetMana( 0 ); Karma = -125; BaseSoundID = 451; SetSkill( SkillName.Tactics, 85.1, 100 ); SetSkill( SkillName.MagicResist, 65.1, 80 ); SetSkill( SkillName.Parry, 85.1, 95 ); SetSkill( SkillName.Wrestling, 85.1, 95 ); VirtualArmor = 18; SetDamage( 2, 20 ); PackItem( new PlateChest() ); LootPack.Rich.Generate( this ); Item item = null; switch ( Utility.Random( 10 ) ) { case 0: { item = new BoneChest(); break; } case 1: { item = new BoneLegs(); break; } case 2: { item = new BoneArms(); break; } case 3: { item = new BoneGloves(); break; } case 4: { item = new BoneHelm(); break; } } PackItem( item ); }
public override bool OnBeforeDeath() { BoneMagi rm = new BoneMagi(); rm.Team = this.Team; rm.MoveToWorld( this.Location, this.Map ); Effects.SendLocationEffect( Location,Map, 0x3709, 13, 0x3B2, 0 ); Container bag = new Bag(); switch ( Utility.Random( 9 )) { case 0: bag.DropItem( new Amber() ); break; case 1: bag.DropItem( new Amethyst() ); break; case 2: bag.DropItem( new Citrine() ); break; case 3: bag.DropItem( new Diamond() ); break; case 4: bag.DropItem( new Emerald() ); break; case 5: bag.DropItem( new Ruby() ); break; case 6: bag.DropItem( new Sapphire() ); break; case 7: bag.DropItem( new StarSapphire() ); break; case 8: bag.DropItem( new Tourmaline() ); break; } switch ( Utility.Random( 8 )) { case 0: bag.DropItem( new SpidersSilk( 3 ) ); break; case 1: bag.DropItem( new BlackPearl( 3 ) ); break; case 2: bag.DropItem( new Bloodmoss( 3 ) ); break; case 3: bag.DropItem( new Garlic( 3 ) ); break; case 4: bag.DropItem( new MandrakeRoot( 3 ) ); break; case 5: bag.DropItem( new Nightshade( 3 ) ); break; case 6: bag.DropItem( new SulfurousAsh( 3 ) ); break; case 7: bag.DropItem( new Ginseng( 3 ) ); break; } bag.DropItem( new Gold( 1000, 1500 )); rm.AddItem( bag ); LeatherGloves gloves = new LeatherGloves(); gloves.Hue = 32; AddItem( gloves ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x3A8; helm.LootType = LootType.Blessed; AddItem( helm ); Cloak cloak = new Cloak(); cloak.Hue = 32; AddItem( cloak ); Kilt kilt = new Kilt(); kilt.Hue = 32; AddItem( kilt ); Sandals sandals = new Sandals(); sandals.Hue = 32; AddItem( sandals ); this.Delete(); return false; }
public override void GenerateLoot() { AddLoot(LootPack.Poor); Item item = null; if (Utility.RandomBool()) PackGem(); switch (Utility.Random(15)) { case 0: { item = new BoneChest(); PackItem(item); break; } case 1: { item = new BoneLegs(); PackItem(item); break; } case 2: { item = new BoneArms(); PackItem(item); break; } case 3: { item = new BoneGloves(); PackItem(item); break; } case 4: { item = new BoneHelm(); PackItem(item); break; } } }
public override void InitOutfit() { WipeLayers(); BoneArms arms = new BoneArms(); AddItem( arms ); BoneGloves gloves = new BoneGloves(); AddItem( gloves ); BoneChest tunic = new BoneChest(); AddItem( tunic ); BoneLegs legs = new BoneLegs(); AddItem( legs ); BoneHelm helm = new BoneHelm(); AddItem( helm ); AddItem( new Shoes() ); }
public DarkElfFighter() : base( AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Title = "the Dark Elf"; Hue = 0x0597; Body = 0x190; Name = NameList.RandomName( "golem controller" ); AddItem( new LongHair( 0 ) ); AddItem( new Goatee( 0 ) ); AddItem( new Sandals() ); 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 StuddedLegs(); temp.Hue = 0x0455; temp.Movable = false; AddItem( temp ); temp = new WoodenShield(); AddItem( temp ); temp = new FancyShirt(); temp.Hue = 0x0455; temp.Movable = false; AddItem( temp ); SetStr( 50, 70 ); SetDex( 61, 80 ); SetInt( 50, 60 ); SetHits( 70, 90 ); SetStam( 81, 95 ); SetDamage( 10, 20 ); SetSkill( SkillName.Archery, 60.0, 80.0 ); SetSkill( SkillName.Fencing, 60.0, 80.0 ); SetSkill( SkillName.MagicResist, 15.0, 38.0 ); SetSkill( SkillName.Swords, 60.0, 80.0 ); SetSkill( SkillName.Macing, 60.0, 80.0 ); SetSkill( SkillName.Tactics, 60.0, 90.0 ); SetSkill( SkillName.Wrestling, 25.0, 40.0 ); Fame = Utility.RandomMinMax( 2500, 4000 ); Karma = Utility.RandomMinMax( -4000, -3000 ); VirtualArmor = 15; switch( Utility.Random( 2 ) ) { case 0: AddItem( new Broadsword() ); break; case 1: AddItem( new WarMace() ); break; } }
public KhaldunZealot(): base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Body = 0x190; Title = "the Knight"; Hue = 0; SetStr(767, 945); SetDex(66, 75); SetInt(46, 70); SetHits(476, 552); SetDamage(20, 25); SetSkill( SkillName.Wrestling, 70.1, 80.0 ); SetSkill( SkillName.Swords, 120.1, 130.0 ); SetSkill( SkillName.Anatomy, 120.1, 130.0 ); SetSkill(SkillName.MagicResist, 125.1, 140.0); SetSkill( SkillName.Tactics, 90.1, 100.0 ); Fame = 10000; Karma = -10000; VirtualArmor = 40; VikingSword weapon = new VikingSword(); weapon.Hue = 0x835; weapon.Identified = true; weapon.Movable = false; AddItem(Immovable(weapon)); MetalShield shield = new MetalShield(); shield.Hue = 0x835; shield.Identified = true; shield.Movable = false; AddItem( Immovable(shield) ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x835; helm.Identified = true; AddItem( Immovable(helm )); BoneArms arms = new BoneArms(); arms.Hue = 0x835; arms.Identified = true; AddItem( Immovable(arms) ); BoneGloves gloves = new BoneGloves(); gloves.Hue = 0x835; gloves.Identified = true; AddItem( Immovable(gloves) ); BoneChest tunic = new BoneChest(); tunic.Hue = 0x835; tunic.Identified = true; AddItem( Immovable(tunic) ); BoneLegs legs = new BoneLegs(); legs.Hue = 0x835; legs.Identified = true; AddItem( Immovable(legs) ); AddItem( new Boots() ); }
public FriendlyPlayer() : base( AIType.AI_Melee, FightMode.Closest, 25, 1, 0.4, 0.3 ) { SpeechHue = Utility.RandomDyedHue(); switch (Utility.Random(6)) { case 0: Title = "[BEC]"; break; case 1: Title = "[COOL]"; break; case 2: Title = "[FUN]"; break; case 3: Title = "[PYR]"; break; case 4: Title = "[FRN]"; break; case 5: Title = "[CRA]"; break; } SetStr(100, 200); SetDex(100, 200); SetInt(125, 200); ActiveSpeed = 0.2; PassiveSpeed = 0; SetHits(100, 400); SetDamage(10, 19); SetDamageType(ResistanceType.Physical, 120); SetResistance(ResistanceType.Physical, 40, 80); SetResistance(ResistanceType.Fire, 40, 80); SetResistance(ResistanceType.Cold, 40, 80); SetResistance(ResistanceType.Poison, 40, 80); SetResistance(ResistanceType.Energy, 40, 80); SetSkill(SkillName.Swords, 79.0, 110.0); SetSkill(SkillName.Tactics, 79.0, 110.0); SetSkill(SkillName.MagicResist, 79.0, 110.0); SetSkill(SkillName.Tactics, 79.0, 110.0); SetSkill(SkillName.Parry, 79.0, 110.0); SetSkill(SkillName.Anatomy, 70.0, 110.0); SetSkill(SkillName.Healing, 70.0, 110.0); Fame = 1000; Karma = 10000; VirtualArmor = 50; switch (Utility.Random(4)) { case 0: AddItem( new Longsword() ); break; case 1: AddItem( new Axe() ); break; case 2: AddItem( new Bardiche() ); break; case 3: AddItem( new Hatchet() ); break; } switch (Utility.Random(5)) { case 0: Item cloak = new Cloak(); cloak.Movable = false; cloak.Hue = GetRandomHue(); AddItem( cloak ); break; case 1: Item shroud = new HoodedShroudOfShadows(); shroud.Movable = false; shroud.Hue = GetRandomHue(); AddItem( shroud ); break; case 2: break; case 3: Item monkrobe = new MonkRobe(); monkrobe.Movable = false; monkrobe.Hue = GetRandomHue(); AddItem( monkrobe ); break; case 4: break; } switch (Utility.Random(4)) { case 0: AddItem( new LongPants() ); break; case 1: Item LegsOfBane = new LeggingsOfBane(); LegsOfBane.Hue = GetRandomHue(); LegsOfBane.LootType = LootType.Newbied; LegsOfBane.Movable = false; AddItem( LegsOfBane ); break; case 2: Item ShortPantss = new ShortPants(); ShortPantss.Hue = GetRandomHue(); ShortPantss.LootType = LootType.Newbied; ShortPantss.Movable = false; AddItem( ShortPantss ); break; case 3: Item PlateLegsv = new PlateLegs(); PlateLegsv.Hue = GetRandomHue(); PlateLegsv.LootType = LootType.Newbied; PlateLegsv.Movable = false; AddItem( PlateLegsv ); break; } switch (Utility.Random(5)) { case 0: AddItem( new Boots() ); break; case 1: Item Sandals = new Sandals(); Sandals.Hue = GetRandomHue(); Sandals.LootType = LootType.Blessed; Sandals.Movable = false; AddItem( Sandals ); break; case 2: Item Bootsv = new Boots(); Bootsv.Hue = GetRandomHue(); Bootsv.LootType = LootType.Blessed; Bootsv.Movable = false; AddItem( Bootsv ); break; case 3: Item Shoesv = new Shoes(); Shoesv.Hue = GetRandomHue(); Shoesv.LootType = LootType.Blessed; Shoesv.Movable = false; AddItem( Shoesv ); break; case 4: break; } switch (Utility.Random(6)) { case 0: AddItem( new ClothNinjaHood( ) ); break; case 1: Item SpiritOfTheTotem = new SpiritOfTheTotem(); SpiritOfTheTotem.Hue = GetRandomHue(); SpiritOfTheTotem.Movable = false; SpiritOfTheTotem.LootType = LootType.Blessed; AddItem( SpiritOfTheTotem ); break; case 2: Item BoneHelmv = new BoneHelm(); BoneHelmv.Hue = GetRandomHue(); BoneHelmv.Movable = false; BoneHelmv.LootType = LootType.Blessed; AddItem( BoneHelmv ); break; case 3: Item CloseHelmv = new CloseHelm(); CloseHelmv.Hue = GetRandomHue(); CloseHelmv.Movable = false; CloseHelmv.LootType = LootType.Blessed; AddItem( CloseHelmv ); break; case 4: AddItem( new SkullCap( ) );break; case 5: Item TricorneHatv = new TricorneHat(); TricorneHatv.Hue = GetRandomHue(); TricorneHatv.Movable = false; TricorneHatv.LootType = LootType.Blessed; AddItem( TricorneHatv ); break; } switch (Utility.Random(3)) { case 0: Item LeatherGlovesv = new LeatherGloves(); LeatherGlovesv.Hue = GetRandomHue(); LeatherGlovesv.Movable = false; LeatherGlovesv.LootType = LootType.Blessed; AddItem( LeatherGlovesv ); break; case 1: Item PlateGlovesv = new PlateGloves(); PlateGlovesv.Hue = GetRandomHue(); PlateGlovesv.Movable = false; PlateGlovesv.LootType = LootType.Blessed; AddItem( PlateGlovesv ); break; case 2: AddItem( new RingmailGloves() ); break; } if ( Female = Utility.RandomBool() ) { Body = 401; Name = NameList.RandomName( "female" ); } else { Body = 400; Name = NameList.RandomName( "male" ); } Utility.AssignRandomHair( this ); for (int i = 0; i < 10; i++) { PackItem( new GreaterCurePotion() ); PackItem( new GreaterHealPotion() ); PackItem( new TotalRefreshPotion() ); } PackItem(new Bandage(Utility.RandomMinMax(10, 100))); Horse ns = new Horse(); ns.Controlled = true; ns.ControlMaster = this; ns.ControlOrder = OrderType.Stay; ns.Rider = this; }
public override void InitOutfit() { WipeLayers(); BoneArms arms = new BoneArms(); AddItem( arms ); BoneGloves gloves = new BoneGloves(); AddItem( gloves ); BoneChest tunic = new BoneChest(); AddItem( tunic ); BoneLegs legs = new BoneLegs(); AddItem( legs ); BoneHelm helm = new BoneHelm(); AddItem( helm ); AddItem( new Shoes() ); Item weapon = null; if (Utility.RandomBool()) { SetSkill(SkillName.Parry, 60, 95); AddItem(new Buckler()); weapon = new Katana(); SetDamage( 8, 10 ); // numbers based on LordGuardian } else { weapon = new ExecutionersAxe(); SetDamage( 20, 30 ); // numbers based on Executioner } weapon.Movable = true; AddItem( weapon ); }
public override void OnGaveMeleeAttack(Mobile defender) { int kpgainmin, kpgainmax; switch (Stage) { case 1: { if (defender is BaseCreature) { var bc = (BaseCreature)defender; if (bc.Controlled != true) { kpgainmin = 5 + (bc.HitsMax) / 10; kpgainmax = 5 + (bc.HitsMax) / 5; KP += Utility.RandomList(kpgainmin, kpgainmax); } } if (KP >= 85000) { if (S1) { S1 = false; int hits = HitsMax + 500; int va = VirtualArmor + 10; int mindamage = DamageMin + 1; int maxdamage = DamageMax + 1; Warmode = false; Say("*" + Name + " achieves a new level of combat*"); SetDamage(mindamage, maxdamage); SetHits(hits); VirtualArmor = va; Stage = 2; Title = "the Shadow Knight"; RawStr += 200; RawInt += 30; RawDex += 20; Item del = FindItemOnLayer(Layer.OuterTorso); // The Robe if (del != null) { del.Delete(); } del = FindItemOnLayer(Layer.InnerTorso); if (del != null) { del.Delete(); } BaseArmor chest = new LeatherChest(); chest.Hue = 1175; chest.Movable = false; AddItem(chest); del = FindItemOnLayer(Layer.Pants); if (del != null) { del.Delete(); } BaseArmor legs = new LeatherLegs(); legs.Hue = 1175; legs.Movable = false; AddItem(legs); del = FindItemOnLayer(Layer.Neck); if (del != null) { del.Delete(); } BaseArmor gorget = new LeatherGorget(); gorget.Hue = 1175; gorget.Movable = false; AddItem(gorget); del = FindItemOnLayer(Layer.Gloves); if (del != null) { del.Delete(); } BaseArmor gloves = new LeatherGloves(); gloves.Hue = 1175; gloves.Movable = false; AddItem(gloves); del = FindItemOnLayer(Layer.Helm); if (del != null) { del.Delete(); } BaseArmor helm = new LeatherCap(); helm.Hue = 1175; helm.Movable = false; AddItem(helm); del = FindItemOnLayer(Layer.Arms); if (del != null) { del.Delete(); } BaseArmor arms = new LeatherArms(); arms.Hue = 1175; arms.Movable = false; AddItem(arms); del = FindItemOnLayer(Layer.Shoes); if (del != null) { del.Delete(); } Item sandals = new Sandals(); sandals.Hue = 1153; sandals.Movable = false; AddItem(sandals); } } } break; case 2: { if (defender is BaseCreature) { var bc = (BaseCreature)defender; if (bc.Controlled != true) { kpgainmin = 5 + bc.HitsMax / 20; kpgainmax = 5 + bc.HitsMax / 10; KP += Utility.RandomList(kpgainmin, kpgainmax); } } if (KP >= 100000) { if (S2) { S2 = false; int hits = HitsMax + 100; int va = VirtualArmor + 10; int mindamage = DamageMin + 1; int maxdamage = DamageMax + 1; Warmode = false; Say("*" + Name + " achieves a new level of combat*"); SetDamage(mindamage, maxdamage); SetHits(hits); VirtualArmor = va; Stage = 3; Title = "the Golden Knight"; RawStr += 100; RawInt += 20; RawDex += 10; Item del = FindItemOnLayer(Layer.InnerTorso); if (del != null) { del.Delete(); } BaseArmor chest = new StuddedChest(); chest.Hue = 1161; chest.Movable = false; AddItem(chest); del = FindItemOnLayer(Layer.Pants); if (del != null) { del.Delete(); } BaseArmor legs = new StuddedLegs(); legs.Hue = 1161; legs.Movable = false; AddItem(legs); del = FindItemOnLayer(Layer.Neck); if (del != null) { del.Delete(); } BaseArmor gorget = new StuddedGorget(); gorget.Hue = 1161; gorget.Movable = false; AddItem(gorget); del = FindItemOnLayer(Layer.Gloves); if (del != null) { del.Delete(); } BaseArmor gloves = new StuddedGloves(); gloves.Hue = 1161; gloves.Movable = false; AddItem(gloves); del = FindItemOnLayer(Layer.Helm); if (del != null) { del.Delete(); } BaseArmor helm = new LeatherCap(); helm.Hue = 1161; helm.Movable = false; AddItem(helm); del = FindItemOnLayer(Layer.Arms); if (del != null) { del.Delete(); } BaseArmor arms = new StuddedArms(); arms.Hue = 1161; arms.Movable = false; AddItem(arms); } } } break; case 3: { if (defender is BaseCreature) { var bc = (BaseCreature)defender; if (bc.Controlled != true) { kpgainmin = 5 + bc.HitsMax / 30; kpgainmax = 5 + bc.HitsMax / 20; KP += Utility.RandomList(kpgainmin, kpgainmax); } } if (KP >= 500000) { if (S3) { S3 = false; int hits = HitsMax + 100; int va = VirtualArmor + 10; int mindamage = DamageMin + 1; int maxdamage = DamageMax + 1; Warmode = false; Say("*" + Name + " achieves a new level of combat*"); SetDamage(mindamage, maxdamage); SetHits(hits); VirtualArmor = va; Stage = 4; Title = "the Blood Knight"; RawStr += 100; RawInt += 120; RawDex += 10; Item del = FindItemOnLayer(Layer.InnerTorso); if (del != null) { del.Delete(); } BaseArmor chest = new PlateChest(); chest.Hue = 1157; chest.Movable = false; AddItem(chest); del = FindItemOnLayer(Layer.Pants); if (del != null) { del.Delete(); } BaseArmor legs = new PlateLegs(); legs.Hue = 1157; legs.Movable = false; AddItem(legs); del = FindItemOnLayer(Layer.Neck); if (del != null) { del.Delete(); } BaseArmor gorget = new PlateGorget(); gorget.Hue = 1157; gorget.Movable = false; AddItem(gorget); del = FindItemOnLayer(Layer.Gloves); if (del != null) { del.Delete(); } BaseArmor gloves = new PlateGloves(); gloves.Hue = 1157; gloves.Movable = false; AddItem(gloves); del = FindItemOnLayer(Layer.Helm); if (del != null) { del.Delete(); } BaseArmor helm = new PlateHelm(); helm.Hue = 1157; helm.Movable = false; AddItem(helm); del = FindItemOnLayer(Layer.Arms); if (del != null) { del.Delete(); } BaseArmor arms = new PlateArms(); arms.Hue = 1157; arms.Movable = false; AddItem(arms); del = FindItemOnLayer(Layer.Shoes); if (del != null) { del.Delete(); } } } } break; case 4: { if (defender is BaseCreature) { var bc = (BaseCreature)defender; if (bc.Controlled != true) { kpgainmin = 5 + bc.HitsMax / 50; kpgainmax = 5 + bc.HitsMax / 40; KP += Utility.RandomList(kpgainmin, kpgainmax); } } if (KP >= 1000000) { if (S4) { S4 = false; int hits = HitsMax + 100; int va = VirtualArmor + 10; int mindamage = DamageMin + 5; int maxdamage = DamageMax + 5; Warmode = false; Say("*" + Name + " achieves a new level of combat*"); SetDamage(mindamage, maxdamage); SetHits(hits); VirtualArmor = va; Stage = 5; Title = "the Knight of Destiny"; RawStr += 100; RawInt += 120; RawDex += 20; Item del = FindItemOnLayer(Layer.InnerTorso); if (del != null) { del.Delete(); } BaseArmor chest = new BoneChest(); chest.Hue = 1152; chest.Movable = false; AddItem(chest); del = FindItemOnLayer(Layer.Pants); if (del != null) { del.Delete(); } BaseArmor legs = new BoneLegs(); legs.Hue = 1152; legs.Movable = false; AddItem(legs); del = FindItemOnLayer(Layer.Neck); if (del != null) { del.Delete(); } del = FindItemOnLayer(Layer.Gloves); if (del != null) { del.Delete(); } BaseArmor gloves = new BoneGloves(); gloves.Hue = 1152; gloves.Movable = false; AddItem(gloves); del = FindItemOnLayer(Layer.Helm); if (del != null) { del.Delete(); } BaseArmor helm = new BoneHelm(); helm.Hue = 1152; helm.Movable = false; AddItem(helm); del = FindItemOnLayer(Layer.Arms); if (del != null) { del.Delete(); } BaseArmor arms = new BoneArms(); arms.Hue = 1152; arms.Movable = false; AddItem(arms); del = FindItemOnLayer(Layer.Shoes); if (del != null) { del.Delete(); } Item sandals = new Sandals(); sandals.Hue = 1152; sandals.Movable = false; AddItem(sandals); } } } break; case 5: { if (defender is BaseCreature) { var bc = (BaseCreature)defender; if (bc.Controlled != true) { kpgainmin = 5 + bc.HitsMax / 160; kpgainmax = 5 + bc.HitsMax / 100; KP += Utility.RandomList(kpgainmin, kpgainmax); } } if (KP >= 5000000) { if (S5) { S5 = false; int hits = HitsMax + 100; int va = VirtualArmor + 100; int mindamage = DamageMin + 5; int maxdamage = DamageMax + 5; Warmode = false; Say("*" + Name + " is Reborn*"); Say("Master, please lend me some armor"); SetDamage(mindamage, maxdamage); SetHits(hits); VirtualArmor = va; Stage = 6; Title = "the Champion"; RawStr += 100; RawInt += 120; RawDex += 20; Item del = FindItemOnLayer(Layer.InnerTorso); if (del != null) { del.Delete(); } del = FindItemOnLayer(Layer.Pants); if (del != null) { del.Delete(); } del = FindItemOnLayer(Layer.Neck); if (del != null) { del.Delete(); } del = FindItemOnLayer(Layer.Gloves); if (del != null) { del.Delete(); } del = FindItemOnLayer(Layer.Helm); if (del != null) { del.Delete(); } del = FindItemOnLayer(Layer.Arms); if (del != null) { del.Delete(); } del = FindItemOnLayer(Layer.Shoes); if (del != null) { del.Delete(); } } } } break; case 6: { if (defender is BaseCreature) { var bc = (BaseCreature)defender; if (bc.Controlled != true) { kpgainmin = 5 + bc.HitsMax / 540; kpgainmax = 5 + bc.HitsMax / 480; KP += Utility.RandomList(kpgainmin, kpgainmax); } } if (KP >= 10000000) { if (S6) { S6 = false; int hits = HitsMax + 350; int va = VirtualArmor + 100; int mindamage = DamageMin + 15; int maxdamage = DamageMax + 15; Warmode = false; Say("*" + Name + " is now a Great Champion and loyal friend*"); if (ControlMaster != null) { Title = ", Guardian of " + ControlMaster.Name + ""; } SetDamage(mindamage, maxdamage); SetHits(hits); VirtualArmor = va; Stage = 7; RawStr += 125; RawInt += 125; RawDex += 35; } } } break; case 7: { if (defender is BaseCreature) { var bc = (BaseCreature)defender; if (bc.Controlled != true) { kpgainmin = 5 + bc.Hits / 740; kpgainmax = 5 + bc.Hits / 660; KP += Utility.RandomList(kpgainmin, kpgainmax); } } } break; } base.OnGaveMeleeAttack(defender); }
public DarkElfGrunt() : base( AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Title = "the Dark Elf"; Hue = 0x0597; 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 StuddedLegs(); temp.Hue = 0x0455; temp.Movable = false; AddItem( temp ); temp = new WoodenShield(); AddItem( temp ); temp = new WarAxe(); AddItem( temp ); temp = new FancyShirt(); temp.Hue = 0x0455; temp.Movable = false; AddItem( temp ); Female = Utility.RandomBool(); if( Female ) { Body = 0x191; Name = NameList.RandomName( "pixie" ); AddItem( new LongHair( 0 ) ); } else { Body = 0x190; Name = NameList.RandomName( "golem controller" ); AddItem( new KrisnaHair( 0 ) ); AddItem( new Goatee( 0 ) ); } SetStr( 50, 70 ); SetDex( 61, 80 ); SetInt( 50, 60 ); SetHits( 150, 200 ); SetDamage( 10, 20 ); SetDamageType( ResistanceType.Physical, 100 ); SetResistance( ResistanceType.Physical, 30, 40 ); SetResistance( ResistanceType.Fire, 25, 35 ); SetResistance( ResistanceType.Cold, 35, 45 ); SetResistance( ResistanceType.Poison, 5, 15 ); SetResistance( ResistanceType.Energy, 15, 25 ); SetSkill( SkillName.Archery, 60.0, 80.0 ); SetSkill( SkillName.Fencing, 60.0, 80.0 ); SetSkill( SkillName.Macing, 60.0, 80.0 ); SetSkill( SkillName.Swords, 60.0, 80.0 ); SetSkill( SkillName.MagicResist, 15.0, 38.0 ); SetSkill( SkillName.Tactics, 60.0, 90.0 ); SetSkill( SkillName.Wrestling, 25.0, 40.0 ); Fame = Utility.RandomMinMax( 1000, 2000 ); Karma = Utility.RandomMinMax( -3500, -2500 ); VirtualArmor = 15; }
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 ManOfSin() : base( AIType.AI_Melee, FightMode.None, 10, 1, 0.2, 0.4 ) { Title = "Power Of Darkness"; Name = "Lucifer"; Body = 0x190; BaseSoundID = 0x165; Hue = 1194; Item BoneGloves = new BoneGloves(); BoneGloves.Hue = 1194; BoneGloves.LootType = LootType.Blessed; BoneGloves.Movable = false; AddItem( BoneGloves ); Item BoneChest = new BoneChest(); BoneChest.Hue = 1194; BoneChest.LootType = LootType.Blessed; BoneChest.Movable = false; AddItem( BoneChest ); Item BoneArms = new BoneArms(); BoneArms.Hue = 1194; BoneArms.LootType = LootType.Blessed; BoneArms.Movable = false; AddItem( BoneArms ); Item BoneHelm = new BoneHelm(); BoneHelm.Hue = 1194; BoneHelm.LootType = LootType.Blessed; BoneHelm.Movable = false; AddItem( BoneHelm ); Item LongPants = new LongPants(); LongPants.Hue = 1194; LongPants.LootType = LootType.Blessed; LongPants.Movable = false; AddItem( LongPants ); Item FancyShirt = new FancyShirt(); FancyShirt.Hue = 1194; FancyShirt.LootType = LootType.Blessed; FancyShirt.Movable = false; AddItem( FancyShirt ); Item Boots = new Boots(); Boots.Hue = 1; Boots.LootType = LootType.Blessed; Boots.Movable = false; AddItem( Boots ); Item DeathAxe = new DeathAxe(); DeathAxe.Hue = 1194; DeathAxe.LootType = LootType.Blessed; DeathAxe.Movable = false; AddItem( DeathAxe ); SetStr( 300, 450 ); SetDex( 150, 300 ); SetInt( 420, 420 ); SetHits( 10000, 15000 ); SetDamage( 20, 28 ); SetDamageType( ResistanceType.Physical, 100 ); SetDamageType( ResistanceType.Cold, 100 ); SetDamageType( ResistanceType.Fire, 100 ); SetDamageType( ResistanceType.Energy, 100 ); SetDamageType( ResistanceType.Poison, 100 ); SetResistance( ResistanceType.Physical, 100 ); SetResistance( ResistanceType.Cold, 100 ); SetResistance( ResistanceType.Fire, 100 ); SetResistance( ResistanceType.Energy, 100 ); SetResistance( ResistanceType.Poison, 100 ); SetSkill( SkillName.Anatomy, 99.0, 100.0 ); SetSkill( SkillName.EvalInt, 99.0, 100.0 ); SetSkill( SkillName.Magery, 99.0, 100.0 ); SetSkill( SkillName.MagicResist, 99.0, 100.0 ); SetSkill( SkillName.Swords, 99.0, 100.0 ); SetSkill( SkillName.Tactics, 99.0, 100.0 ); SetSkill( SkillName.Lumberjacking, 99.0, 100.0 ); Fame = -15000; Karma = -15000; VirtualArmor = 35; PackItem( new Gold( 50, 60 ) ); new SkeletalMount().Rider = this; }
public HorrorDaemon() : base(AIType.AI_Stealth, FightMode.Closest, 10, 1, 0.1, 0.2) { Name = "a horror servant"; Body = 400; Hue = 777; Hidden = true; SetStr( 150 ); SetDex( 100 ); SetInt( 1, 2 ); SetHits( 80 ); SetMana( 0 ); SetDamage( 15, 20 ); SetDamageType( ResistanceType.Fire, 100 ); SetResistance( ResistanceType.Physical, 30, 35 ); SetResistance( ResistanceType.Fire, 100 ); SetResistance( ResistanceType.Cold, 30, 35 ); SetResistance( ResistanceType.Poison, 30, 35 ); SetResistance( ResistanceType.Energy, 30, 35 ); SetSkill( SkillName.MagicResist, 100.0 ); SetSkill( SkillName.Wrestling, 100.0 ); SetSkill( SkillName.Hiding, 100.0 ); Fame = 3500; Karma = -3500; VirtualArmor = 6; Lantern lantern = new Lantern(); lantern.Name = "Fire bomb"; lantern.Hue = 1281; lantern.Movable = false; AddItem( lantern ); BoneGloves gloves = new BoneGloves(); gloves.Movable = false; gloves.Hue = 32500; AddItem( gloves ); BoneLegs legs = new BoneLegs(); legs.Movable = false; legs.Hue = 32500; AddItem( legs ); BoneChest chest = new BoneChest(); chest.Movable = false; chest.Hue = 32500; AddItem( chest ); BoneHelm helm = new BoneHelm(); helm.Movable = false; helm.Hue = 32500; AddItem( helm ); PackItem( new Bloodmoss( Utility.RandomMinMax( 7, 10 ) ) ); PackItem( new MandrakeRoot( Utility.RandomMinMax( 7, 10 ) ) ); PackItem( new Head() ); PackItem( new ExplosionScroll() ); }
public Cyclonian() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.2 ) { Name = "Cyclonian"; Body = 400; SpeechHue= 1359; Hue = 1175; Title = "the summoner"; Kills = 10; ShortTermMurders = 10; SetStr( 596, 700 ); SetDex( 218, 225 ); SetInt( 21, 25 ); SetHits( 4500 ); SetDamage( 32, 43 ); SetSkill( SkillName.Macing, 95.0, 97.5 ); SetSkill( SkillName.MagicResist, 175.0, 190.5 ); SetSkill( SkillName.Tactics, 95.0, 98.5 ); SetSkill( SkillName.Anatomy, 96.5, 97.3); Fame = 24500; Karma = -24500; VirtualArmor = 200; Item WarHammer = new WarHammer(); WarHammer.Movable=false; WarHammer.Hue=2118; EquipItem( WarHammer ); Item BoneHelm = new BoneHelm(); BoneHelm.Movable=false; BoneHelm.Hue=1359; EquipItem( BoneHelm ); Item BoneChest = new BoneChest(); BoneChest.Movable=false; BoneChest.Hue=1359; EquipItem( BoneChest ); Item BoneGloves = new BoneGloves(); BoneGloves.Movable=false; BoneGloves.Hue=1359; EquipItem( BoneGloves ); Item BoneLegs = new BoneLegs(); BoneLegs.Movable=false; BoneLegs.Hue=1359; EquipItem( BoneLegs ); Item BoneArms = new BoneArms(); BoneArms.Movable=false; BoneArms.Hue=1359; EquipItem( BoneArms ); switch( Utility.Random(5) ) { case 0: PackItem( new EnchantedWood() ); break; } PackGold( 4400, 4900 ); PackArmor( 1, 5 ); PackWeapon( 1, 5 ); PackArmor( 1, 5 ); PackWeapon( 1, 5 ); PackArmor( 1, 5 ); PackWeapon( 1, 5 ); PackArmor( 1, 5 ); PackWeapon( 1, 5 ); PackArmor( 1, 5 ); PackWeapon( 1, 5 ); PackItem( new Obsidian() ); }
public void SetClothes(int hue) { this.Hue = hue; LeatherGloves gloves = new LeatherGloves(); gloves.Hue = hue; gloves.Movable = false; AddItem(gloves); FancyShirt fancyShirt = new FancyShirt(); fancyShirt.Hue = hue; fancyShirt.Movable = false; AddItem(fancyShirt); BoneHelm helm = new BoneHelm(); helm.Hue = hue; helm.Movable = false; AddItem(helm); BlackStaff blackStaff = new BlackStaff(); blackStaff.Hue = hue; blackStaff.Movable = false; blackStaff.Attributes.SpellChanneling = 1; AddItem(blackStaff); Cloak cloak = new Cloak(); cloak.Hue = hue; cloak.Movable = false; AddItem(cloak); Kilt kilt = new Kilt(); kilt.Hue = hue; kilt.Movable = false; AddItem(kilt); Sandals sandals = new Sandals(); sandals.Hue = hue; sandals.Movable = false; AddItem(sandals); }
public override void InitOutfit() { WipeLayers(); BoneArms arms = new BoneArms(); arms.Hue = 0x3A8; arms.LootType = LootType.Blessed; AddItem( arms ); BoneGloves gloves = new BoneGloves(); gloves.Hue = 0x3A8; gloves.LootType = LootType.Blessed; AddItem( gloves ); BoneChest tunic = new BoneChest(); tunic.Hue = 0x3A8; tunic.LootType = LootType.Blessed; AddItem( tunic ); BoneLegs legs = new BoneLegs(); legs.Hue = 0x3A8; legs.LootType = LootType.Blessed; AddItem( legs ); BoneHelm helm = new BoneHelm(); helm.Hue = 0x3A8; helm.LootType = LootType.Blessed; AddItem( helm ); AddItem( new Shoes() ); AddItem( new Buckler()); VikingSword weapon = new VikingSword(); weapon.Movable = true; AddItem( weapon ); }
public override void OnGaveMeleeAttack( Mobile defender ) { int kpgainmin, kpgainmax; if ( this.Stage == 1 ) { if ( defender is BaseCreature ) { BaseCreature bc = (BaseCreature)defender; if ( bc.Controlled != true ) { kpgainmin = 6 + ( bc.HitsMax ) / 10; kpgainmax = 6 + ( bc.HitsMax ) / 10; this.KP += Utility.RandomList( kpgainmin, kpgainmax ); } } if ( this.KP >= 50000 ) { if ( this.S1 == true ) { this.S1 = false; int hits, va, mindamage, maxdamage; hits = ( this.HitsMax + 200 ); va = ( this.VirtualArmor + 10 ); mindamage = this.DamageMin + ( 1 ); maxdamage = this.DamageMax + ( 1 ); this.Warmode = false; this.Say( "*"+ this.Name +" achieves a new level of combat*"); this.SetDamage( mindamage, maxdamage ); this.SetHits( hits ); this.VirtualArmor = va; this.Stage = 2; this.Title = "the Shadow Knight"; this.SetDamageType( ResistanceType.Physical, 20 ); this.SetDamageType( ResistanceType.Fire, 20 ); this.SetDamageType( ResistanceType.Cold, 20 ); this.SetDamageType( ResistanceType.Poison, 20 ); this.SetDamageType( ResistanceType.Energy, 20 ); this.SetResistance( ResistanceType.Physical, 45 ); this.SetResistance( ResistanceType.Fire, 45 ); this.SetResistance( ResistanceType.Cold, 45 ); this.SetResistance( ResistanceType.Poison, 45 ); this.SetResistance( ResistanceType.Energy, 45 ); this.RawStr += 20; this.RawInt += 10; this.RawDex += 10; Item del = this.FindItemOnLayer( Layer.OuterTorso ); // The Robe if ( del != null ) { del.Delete(); } del = this.FindItemOnLayer( Layer.InnerTorso ); if ( del != null ) { del.Delete(); } BaseArmor chest = new LeatherChest(); chest.Hue = 1175; chest.Movable = false; AddItem( chest ); del = this.FindItemOnLayer( Layer.Pants ); if ( del != null ) { del.Delete(); } BaseArmor legs = new LeatherLegs(); legs.Hue = 1175; legs.Movable = false; AddItem( legs ); del = this.FindItemOnLayer( Layer.Neck ); if ( del != null ) { del.Delete(); } BaseArmor gorget = new LeatherGorget(); gorget.Hue = 1175; gorget.Movable = false; AddItem( gorget ); del = this.FindItemOnLayer( Layer.Gloves ); if ( del != null ) { del.Delete(); } BaseArmor gloves = new LeatherGloves(); gloves.Hue = 1175; gloves.Movable = false; AddItem( gloves ); del = this.FindItemOnLayer( Layer.Helm ); if ( del != null ) { del.Delete(); } BaseArmor helm = new LeatherCap(); helm.Hue = 1175; helm.Movable = false; AddItem( helm ); del = this.FindItemOnLayer( Layer.Arms ); if ( del != null ) { del.Delete(); } BaseArmor arms = new LeatherArms(); arms.Hue = 1175; arms.Movable = false; AddItem( arms ); del = this.FindItemOnLayer( Layer.Shoes ); if ( del != null ) { del.Delete(); } Item sandals = new Sandals(); sandals.Hue = 1153; sandals.Movable = false; AddItem( sandals ); } } } else if ( this.Stage == 2 ) { if ( defender is BaseCreature ) { BaseCreature bc = (BaseCreature)defender; if ( bc.Controlled != true ) { kpgainmin = 5 + ( bc.HitsMax ) / 10; kpgainmax = 5 + ( bc.HitsMax ) / 10; this.KP += Utility.RandomList( kpgainmin, kpgainmax ); } } if ( this.KP >= 100000 ) { if ( this.S2 == true ) { this.S2 = false; int hits, va, mindamage, maxdamage; hits = ( this.HitsMax + 100 ); va = ( this.VirtualArmor + 5 ); mindamage = this.DamageMin + ( 2 ); maxdamage = this.DamageMax + ( 2 ); this.Warmode = false; this.Say( "*"+ this.Name +" achieves a new level of combat*"); this.SetDamage( mindamage, maxdamage ); this.SetHits( hits ); this.VirtualArmor = va; this.Stage = 3; this.Title = "the Golden Knight"; this.SetDamageType( ResistanceType.Physical, 20 ); this.SetDamageType( ResistanceType.Fire, 20 ); this.SetDamageType( ResistanceType.Cold, 20 ); this.SetDamageType( ResistanceType.Poison, 20 ); this.SetDamageType( ResistanceType.Energy, 20 ); this.SetResistance( ResistanceType.Physical, 55 ); this.SetResistance( ResistanceType.Fire, 55 ); this.SetResistance( ResistanceType.Cold, 55 ); this.SetResistance( ResistanceType.Poison, 55 ); this.SetResistance( ResistanceType.Energy, 55 ); this.RawStr += 20; this.RawInt += 50; this.RawDex += 50; Item del = this.FindItemOnLayer( Layer.InnerTorso ); if ( del != null ) { del.Delete(); } BaseArmor chest = new StuddedChest(); chest.Hue = 1161; chest.Movable = false; AddItem( chest ); del = this.FindItemOnLayer( Layer.Pants ); if ( del != null ) { del.Delete(); } BaseArmor legs = new StuddedLegs(); legs.Hue = 1161; legs.Movable = false; AddItem( legs ); del = this.FindItemOnLayer( Layer.Neck ); if ( del != null ) { del.Delete(); } BaseArmor gorget = new StuddedGorget(); gorget.Hue = 1161; gorget.Movable = false; AddItem( gorget ); del = this.FindItemOnLayer( Layer.Gloves ); if ( del != null ) { del.Delete(); } BaseArmor gloves = new StuddedGloves(); gloves.Hue = 1161; gloves.Movable = false; AddItem( gloves ); del = this.FindItemOnLayer( Layer.Helm ); if ( del != null ) { del.Delete(); } BaseArmor helm = new LeatherCap(); helm.Hue = 1161; helm.Movable = false; AddItem( helm ); del = this.FindItemOnLayer( Layer.Arms ); if ( del != null ) { del.Delete(); } BaseArmor arms = new StuddedArms(); arms.Hue = 1161; arms.Movable = false; AddItem( arms ); } } } else if ( this.Stage == 3 ) { if ( defender is BaseCreature ) { BaseCreature bc = (BaseCreature)defender; if ( bc.Controlled != true ) { kpgainmin = 4 + ( bc.HitsMax ) / 20; kpgainmax = 4 + ( bc.HitsMax ) / 20; this.KP += Utility.RandomList( kpgainmin, kpgainmax ); } } if ( this.KP >= 150000 ) { if ( this.S3 == true ) { this.S3 = false; int hits, va, mindamage, maxdamage; hits = ( this.HitsMax + 100 ); va = ( this.VirtualArmor + 5 ); mindamage = this.DamageMin + ( 1 ); maxdamage = this.DamageMax + ( 1 ); this.Warmode = false; this.Say( "*"+ this.Name +" achieves a new level of combat*"); this.SetDamage( mindamage, maxdamage ); this.SetHits( hits ); this.VirtualArmor = va; this.Stage = 4; this.Title = "the Blood Knight"; this.SetResistance( ResistanceType.Physical, 60 ); this.SetResistance( ResistanceType.Fire, 60 ); this.SetResistance( ResistanceType.Cold, 60 ); this.SetResistance( ResistanceType.Poison, 60 ); this.SetResistance( ResistanceType.Energy, 60 ); this.RawStr += 20; this.RawInt += 30; this.RawDex += 30; Item del = this.FindItemOnLayer( Layer.InnerTorso ); if ( del != null ) { del.Delete(); } BaseArmor chest = new PlateChest(); chest.Hue = 1157; chest.Movable = false; AddItem( chest ); del = this.FindItemOnLayer( Layer.Pants ); if ( del != null ) { del.Delete(); } BaseArmor legs = new PlateLegs(); legs.Hue = 1157; legs.Movable = false; AddItem( legs ); del = this.FindItemOnLayer( Layer.Neck ); if ( del != null ) { del.Delete(); } BaseArmor gorget = new PlateGorget(); gorget.Hue = 1157; gorget.Movable = false; AddItem( gorget ); del = this.FindItemOnLayer( Layer.Gloves ); if ( del != null ) { del.Delete(); } BaseArmor gloves = new PlateGloves(); gloves.Hue = 1157; gloves.Movable = false; AddItem( gloves ); del = this.FindItemOnLayer( Layer.Helm ); if ( del != null ) { del.Delete(); } BaseArmor helm = new PlateHelm(); helm.Hue = 1157; helm.Movable = false; AddItem( helm ); del = this.FindItemOnLayer( Layer.Arms ); if ( del != null ) { del.Delete(); } BaseArmor arms = new PlateArms(); arms.Hue = 1157; arms.Movable = false; AddItem( arms ); del = this.FindItemOnLayer( Layer.Shoes ); if ( del != null ) { del.Delete(); } } } } else if ( this.Stage == 4 ) { if ( defender is BaseCreature ) { BaseCreature bc = (BaseCreature)defender; if ( bc.Controlled != true ) { kpgainmin = 3 + ( bc.HitsMax ) / 25; kpgainmax = 3 + ( bc.HitsMax ) / 30; this.KP += Utility.RandomList( kpgainmin, kpgainmax ); } } if ( this.KP >= 250000 ) { if ( this.S4 == true ) { this.S4 = false; int hits, va, mindamage, maxdamage; hits = ( this.HitsMax + 100 ); va = ( this.VirtualArmor + 3 ); mindamage = this.DamageMin + ( 1 ); maxdamage = this.DamageMax + ( 1 ); this.Warmode = false; this.Say( "*"+ this.Name +" achieves a new level of combat*"); this.SetDamage( mindamage, maxdamage ); this.SetHits( hits ); this.VirtualArmor = va; this.Stage = 5; this.Title = "the Knight of Destiny"; this.SetDamageType( ResistanceType.Physical, 20 ); this.SetDamageType( ResistanceType.Fire, 20 ); this.SetDamageType( ResistanceType.Cold, 20 ); this.SetDamageType( ResistanceType.Poison, 20 ); this.SetDamageType( ResistanceType.Energy, 20 ); this.SetResistance( ResistanceType.Physical, 70 ); this.SetResistance( ResistanceType.Fire, 70 ); this.SetResistance( ResistanceType.Cold, 70 ); this.SetResistance( ResistanceType.Poison, 70 ); this.SetResistance( ResistanceType.Energy, 70 ); this.RawStr += 20; this.RawInt += 10; this.RawDex += 10; Item del = this.FindItemOnLayer( Layer.InnerTorso ); if ( del != null ) { del.Delete(); } BaseArmor chest = new BoneChest(); chest.Hue = 1152; chest.Movable = false; AddItem( chest ); del = this.FindItemOnLayer( Layer.Pants ); if ( del != null ) { del.Delete(); } BaseArmor legs = new BoneLegs(); legs.Hue = 1152; legs.Movable = false; AddItem( legs ); del = this.FindItemOnLayer( Layer.Neck ); if ( del != null ) { del.Delete(); } del = this.FindItemOnLayer( Layer.Gloves ); if ( del != null ) { del.Delete(); } BaseArmor gloves = new BoneGloves(); gloves.Hue = 1152; gloves.Movable = false; AddItem( gloves ); del = this.FindItemOnLayer( Layer.Helm ); if ( del != null ) { del.Delete(); } BaseArmor helm = new BoneHelm(); helm.Hue = 1152; helm.Movable = false; AddItem( helm ); del = this.FindItemOnLayer( Layer.Arms ); if ( del != null ) { del.Delete(); } BaseArmor arms = new BoneArms(); arms.Hue = 1152; arms.Movable = false; AddItem( arms ); del = this.FindItemOnLayer( Layer.Shoes ); if ( del != null ) { del.Delete(); } Item sandals = new Sandals(); sandals.Hue = 1152; sandals.Movable = false; AddItem( sandals ); } } } else if ( this.Stage == 5 ) { if ( defender is BaseCreature ) { BaseCreature bc = (BaseCreature)defender; if ( bc.Controlled != true ) { kpgainmin = 2 + ( bc.HitsMax ) / 35; kpgainmax = 2 + ( bc.HitsMax ) / 35; this.KP += Utility.RandomList( kpgainmin, kpgainmax ); } } if ( this.KP >= 350000 ) { if ( this.S5 == true ) { this.S5 = false; int hits, va, mindamage, maxdamage; hits = ( this.HitsMax + 100 ); va = ( this.VirtualArmor + 10 ); mindamage = this.DamageMin + ( 3 ); maxdamage = this.DamageMax + ( 3 ); this.Warmode = false; this.Say( "*"+ this.Name +" is Reborn*"); this.Say( "Master, please lend me some armor"); this.SetDamage( mindamage, maxdamage ); this.SetHits( hits ); this.VirtualArmor = va; this.Stage = 6; this.Title = "the Champion"; this.SetResistance( ResistanceType.Physical, 5 ); this.SetResistance( ResistanceType.Fire, 5 ); this.SetResistance( ResistanceType.Cold, 5 ); this.SetResistance( ResistanceType.Poison, 5 ); this.SetResistance( ResistanceType.Energy, 5 ); this.RawStr += 40; this.RawInt += 30; this.RawDex += 30; Item del = this.FindItemOnLayer( Layer.InnerTorso ); if ( del != null ) { del.Delete(); } del = this.FindItemOnLayer( Layer.Pants ); if ( del != null ) { del.Delete(); } del = this.FindItemOnLayer( Layer.Neck ); if ( del != null ) { del.Delete(); } del = this.FindItemOnLayer( Layer.Gloves ); if ( del != null ) { del.Delete(); } del = this.FindItemOnLayer( Layer.Helm ); if ( del != null ) { del.Delete(); } del = this.FindItemOnLayer( Layer.Arms ); if ( del != null ) { del.Delete(); } del = this.FindItemOnLayer( Layer.Shoes ); if ( del != null ) { del.Delete(); } } } } else if ( this.Stage == 6 ) { if ( defender is BaseCreature ) { BaseCreature bc = (BaseCreature)defender; if ( bc.Controlled != true ) { kpgainmin = 1 + ( bc.HitsMax ) / 40; kpgainmax = 1 + ( bc.HitsMax ) / 40; this.KP += Utility.RandomList( kpgainmin, kpgainmax ); } } if ( this.KP >= 400000 ) { if ( this.S6 == true ) { this.S6 = false; int hits, va, mindamage, maxdamage; hits = ( this.HitsMax + 200 ); va = ( this.VirtualArmor + 10 ); mindamage = this.DamageMin + ( 3 ); maxdamage = this.DamageMax + ( 3 ); this.Warmode = false; this.Say( "*"+ this.Name +" is now a great champion and loyal friend*"); if ( this.ControlMaster != null ) { this.Title = ", Loyal Subject of " + this.ControlMaster.Name + ""; } this.SetDamage( mindamage, maxdamage ); this.SetHits( hits ); this.VirtualArmor = va; this.Stage = 7; this.SetDamageType( ResistanceType.Physical, 40 ); this.SetDamageType( ResistanceType.Fire, 40 ); this.SetDamageType( ResistanceType.Cold, 40 ); this.SetDamageType( ResistanceType.Poison, 40 ); this.SetDamageType( ResistanceType.Energy, 40 ); this.RawStr += 40; this.RawInt += 40; this.RawDex += 40; } } } else if ( this.Stage == 7 ) { if ( defender is BaseCreature ) { BaseCreature bc = (BaseCreature)defender; if ( bc.Controlled != true ) { kpgainmin = 1 + ( bc.Hits ) / 50; kpgainmax = 1 + ( bc.Hits ) / 50; this.KP += Utility.RandomList( kpgainmin, kpgainmax ); } } } base.OnGaveMeleeAttack( defender ); }