public override void InitOutfit() { AddItem( new Backpack() ); AddItem( new Boots( 0x1BB ) ); Item item; item = new LeatherLegs(); item.Hue = 0x6C8; AddItem( item ); item = new LeatherGloves(); item.Hue = 0x1BB; AddItem( item ); item = new LeatherChest(); item.Hue = 0x1BB; AddItem( item ); item = new LeatherArms(); item.Hue = 0x4C7; AddItem( item ); item = new CompositeBow(); item.Hue = 0x5DD; AddItem( item ); }
public override void InitOutfit() { AddItem( new Backpack() ); AddItem( new Sandals( 0x8FD ) ); AddItem( new BoneHelm() ); Item item; item = new LeatherLegs(); item.Hue = 0x2C3; AddItem( item ); item = new LeatherGloves(); item.Hue = 0x2C3; AddItem( item ); item = new LeatherGorget(); item.Hue = 0x2C3; AddItem( item ); item = new LeatherChest(); item.Hue = 0x2C3; AddItem( item ); item = new LeatherArms(); item.Hue = 0x2C3; AddItem( item ); }
public WolfMaster() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); Title = "the wolf master"; Hue = Utility.RandomSkinHue(); if ( this.Female = Utility.RandomBool() ) { Body = 0x191; Name = NameList.RandomName( "female" ); AddItem( new Skirt( Utility.RandomNeutralHue() ) ); } else { Body = 0x190; Name = NameList.RandomName( "male" ); AddItem( new Skirt( Utility.RandomNeutralHue() ) ); } SetStr( 86, 100 ); SetDex( 31, 45 ); SetInt( 61, 75 ); SetDamage( 6, 11 ); SetHits( 171, 190 ); SetSkill( SkillName.MagicResist, 35.0, 47.5 ); SetSkill( SkillName.Macing, 75.0, 87.5 ); SetSkill( SkillName.Tactics, 45.0, 57.5 ); Fame = 3000; Karma = -3000; // Equip Item toArm = new LeatherChest(); toArm.LootType = LootType.Blessed; AddItem( toArm ); toArm = new LeatherLegs(); toArm.LootType = LootType.Blessed; AddItem( toArm ); toArm = new StrawHat(); toArm.LootType = LootType.Blessed; AddItem( toArm ); toArm = new GnarledStaff(); toArm.Movable = false; toArm.LootType = LootType.Blessed; AddItem( toArm ); Utility.AssignRandomHair( this ); if( Utility.RandomDouble() < 0.06 ) PackItem( new BallOfSummoning() ); }
public TheCursedButcher() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Title = "the Cursed Butcher"; Body = 0x190; Name = "Zack"; Hue = 2130; InitStats(700, 151, 100); SetHits(500); SetResistance(ResistanceType.Physical, 40, 60); SetResistance(ResistanceType.Fire, 20, 30); SetResistance(ResistanceType.Cold, 50, 60); SetResistance(ResistanceType.Poison, 55, 65); SetResistance(ResistanceType.Energy, 40, 50); SetSkill(SkillName.Wrestling, 120.0); SetSkill(SkillName.Swords, 120.0); SetSkill(SkillName.Anatomy, 120.0); SetSkill(SkillName.MagicResist, 120.0); SetSkill(SkillName.Tactics, 120.0); SetSkill(SkillName.Healing, 90.0); Fame = NotorietyHandlers.GetNotorietyByLevel( 3 ); Karma = NotorietyHandlers.GetNotorietyByLevel( -3 ); VirtualArmor = 70; Item wep = CursedCaveUtility.MutateItem(new ButcherKnife(), 10); AddItem(wep); AddItem( new Shoes() ); CraftResource ArmorCraftResource = GetRandomCraftResource(); LeatherArms arms = new LeatherArms(); arms.Resource = ArmorCraftResource; AddItem(CursedCaveUtility.MutateItem(arms, 10)); LeatherChest tunic = new LeatherChest(); tunic.Resource = ArmorCraftResource; AddItem(CursedCaveUtility.MutateItem(tunic, 10)); LeatherLegs legs = new LeatherLegs(); legs.Resource = ArmorCraftResource; AddItem(CursedCaveUtility.MutateItem(legs, 10)); AddItem(CursedCaveUtility.MutateItem(new DeerMask(), 10)); HairItemID = 0x203B; HairHue = 0x3C0; }
public Sprite() : base( AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Name = "Sprite"; Hue = 0x045e; Body = 0x191; Female = true; AddItem( new PonyTail( 0x0597 ) ); SetStr( 86, 90 ); SetDex( 91, 100 ); SetInt( 71, 85 ); SetHits( 86, 90 ); SetStam( 91, 100 ); SetMana( 0 ); SetDamage( 6, 10 ); SetDamageType( ResistanceType.Physical, 100 ); SetSkill( SkillName.Fencing, 65.0, 88.0 ); SetSkill( SkillName.MagicResist, 60.0, 80.0 ); SetSkill( SkillName.Tactics, 75.0, 85.0 ); SetSkill( SkillName.Wrestling, 35.0, 58.0 ); Fame = Utility.RandomMinMax( 1200, 3200 ); VirtualArmor = 5; Item temp; temp = new ThighBoots(); temp.Hue = 0x0599; temp.Movable = false; AddItem( temp ); temp = new FemaleLeatherChest(); temp.Hue = 0x0599; temp.Movable = false; AddItem( temp ); temp = new Cloak(); temp.Hue = 0x0599; temp.Movable = false; AddItem( temp ); temp = new Kryss(); temp.Hue = 0x0599; temp.Movable = false; AddItem( temp ); temp = new LeatherLegs(); temp.Hue = 0x0599; temp.Movable = false; AddItem( temp ); }
public Sparrow() { Name = "Captian Jack Sparrow"; Title = "The Pirate"; Body = 400; CantWalk = true; Hue = Utility.RandomSkinHue(); LeatherArms LeatherArms = new LeatherArms(); LeatherArms.Hue = 1157; AddItem( LeatherArms ); LeatherCap LeatherCap = new LeatherCap(); LeatherCap.Hue = 1157; AddItem( LeatherCap ); LeatherGloves LeatherGloves = new LeatherGloves(); LeatherGloves.Hue = 1157; AddItem( LeatherGloves ); LeatherLegs LeatherLegs = new LeatherLegs(); LeatherLegs.Hue = 1157; AddItem( LeatherLegs ); LeatherChest LeatherChest = new LeatherChest(); LeatherChest.Hue = 1157; AddItem( LeatherChest ); LeatherGorget LeatherGorget = new LeatherGorget(); LeatherGorget.Hue = 1157; AddItem( LeatherGorget ); int hairHue = 1153; switch ( Utility.Random( 1 ) ) { case 0: AddItem( new PonyTail( hairHue ) ); break; case 1: AddItem( new Goatee( hairHue ) ); break; } Blessed = true; }
public BagofLeatherArmor() { Movable = true; Hue = 0x55; Name = "a bag of Leather Armor"; LeatherChest chest = new LeatherChest(); chest.Quality = Quality.Exceptional; chest.LootType = LootType.Blessed; DropItem(chest); LeatherArms arms = new LeatherArms(); arms.Quality = Quality.Exceptional; arms.LootType = LootType.Blessed; DropItem(arms); LeatherGloves gloves = new LeatherGloves(); gloves.Quality = Quality.Exceptional; gloves.LootType = LootType.Blessed; DropItem(gloves); LeatherGorget gorget = new LeatherGorget(); gorget.Quality = Quality.Exceptional; gorget.LootType = LootType.Blessed; DropItem(gorget); LeatherLegs legs = new LeatherLegs(); legs.Quality = Quality.Exceptional; legs.LootType = LootType.Blessed; DropItem(legs); LeatherCap cap = new LeatherCap(); cap.Quality = Quality.Exceptional; cap.LootType = LootType.Blessed; DropItem(cap); }
public Andric() : base(AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2) { Name = "Andric"; Title = "o treinador de arqueirismo"; Race = Race.Human; BodyValue = 0x190; Female = false; Hue = Race.RandomSkinHue(); InitStats( 100, 100, 25 ); Utility.AssignRandomHair( this, true ); SetSkill( SkillName.Archery, 60.0, 80.0 ); AddItem( new Backpack() ); Item item; item = new LeatherChest(); item.Hue = 0x1BB; AddItem( item ); item = new LeatherLegs(); item.Hue = 0x6AD; AddItem( item ); item = new LeatherArms(); item.Hue = 0x6AD; AddItem( item ); item = new LeatherGloves(); item.Hue = 0x1BB; AddItem( item ); AddItem( new Boots( 0x1BB ) ); AddItem( new CompositeBow() ); }
public HoneycombProcessingKettleQuestNPC() { Name = "Old Man"; Body = 400; Hue = Utility.RandomSkinHue(); LeatherArms LeatherArms = new LeatherArms(); LeatherArms.Hue = 2418; AddItem( LeatherArms ); LeatherGloves LeatherGloves = new LeatherGloves(); LeatherGloves.Hue = 2418; AddItem( LeatherGloves ); LeatherLegs LeatherLegs = new LeatherLegs(); LeatherLegs.Hue = 2418; AddItem( LeatherLegs ); LeatherChest LeatherChest = new LeatherChest(); LeatherChest.Hue = 2418; AddItem( LeatherChest ); LeatherGorget LeatherGorget = new LeatherGorget(); LeatherGorget.Hue = 2418; AddItem( LeatherGorget ); int hairHue = 2406; switch ( Utility.Random( 1 ) ) { case 0: AddItem( new PonyTail( hairHue ) ); break; case 1: AddItem( new Goatee( hairHue ) ); break; } Blessed = true; }
public static BaseArmor NewbLRCArmor() { BaseArmor armor = null; switch( Utility.Random( 6 ) ) { case 0: armor = new LeatherChest(); break; case 1: armor = new LeatherLegs(); break; case 2: armor = new LeatherArms(); break; case 3: armor = new LeatherGloves(); break; case 4: armor = new LeatherGorget(); break; case 5: armor = new LeatherCap(); break; } BaseRunicTool.ApplyAttributesTo(armor, Utility.Random( 3 ), 40, 80); armor.Attributes.LowerRegCost = 12 + Utility.Random( 5 ) + Utility.Random( 5 ); armor.Hue = 2207; return armor; }
public SocietyGuard( int choice ) : base(Nation.Alyrian) { int chance = Utility.RandomMinMax( 1, 6 ); Nation nation = Nation.Alyrian; switch( chance ) { case 1: nation = Nation.Alyrian; break; case 2: nation = Nation.Azhuran; break; case 3: nation = Nation.Khemetar; break; case 4: nation = Nation.Mhordul; break; case 5: nation = Nation.Tyrean; break; case 6: nation = Nation.Vhalurian; break; } Hue = BaseKhaerosMobile.AssignRacialHue( nation ); HairItemID = BaseKhaerosMobile.AssignRacialHair( nation, this.Female ); int hairhue = BaseKhaerosMobile.AssignRacialHairHue( nation ); HairHue = hairhue; if( !this.Female ) { FacialHairItemID = BaseKhaerosMobile.AssignRacialFacialHair( nation ); FacialHairHue = hairhue; } if( this.Backpack == null ) AddItem( new Backpack() ); SetStr( 150 ); SetDex( 75 ); SetInt( 75 ); SetDamage( 10, 15 ); SetHits( 400 ); SetDamageType( ResistanceType.Blunt, 100 ); SetResistance( ResistanceType.Blunt, 10 ); SetResistance( ResistanceType.Piercing, 10 ); SetResistance( ResistanceType.Slashing, 10 ); SetSkill( SkillName.Anatomy, 100.0 ); SetSkill( SkillName.Archery, 100.0 ); SetSkill( SkillName.Fencing, 100.0 ); SetSkill( SkillName.Macing, 100.0 ); SetSkill( SkillName.Swords, 100.0 ); SetSkill( SkillName.Tactics, 100.0 ); SetSkill( SkillName.Polearms, 100.0 ); SetSkill( SkillName.ExoticWeaponry, 100.0 ); SetSkill( SkillName.Axemanship, 100.0 ); SetSkill( SkillName.UnarmedFighting, 100.0 ); this.Fame = 12000; this.Karma = -12000; this.VirtualArmor = 0; FightMode = FightMode.Closest; Name = "Society of Rymaliel Guard"; if( choice > 3 || choice < 1 ) choice = Utility.RandomMinMax( 1, 3 ); switch( choice ) { case 1: { PlateChest chest = new PlateChest(); chest.Resource = CraftResource.Bronze; chest.Hue = 2830; PlateArms arms = new PlateArms(); arms.Resource = CraftResource.Bronze; arms.Hue = 2830; PlateLegs legs = new PlateLegs(); legs.Resource = CraftResource.Bronze; legs.Hue = 2830; PlateGorget gorget = new PlateGorget(); gorget.Resource = CraftResource.Bronze; gorget.Hue = 2830; PlateGloves gloves = new PlateGloves(); gloves.Resource = CraftResource.Bronze; gloves.Hue = 2830; CloseHelm helm = new CloseHelm(); helm.Resource = CraftResource.Bronze; helm.Hue = 2830; VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield(); shield.Resource = CraftResource.Bronze; shield.Name = "Society of Rymaliel Kite Shield"; shield.Hue = 2413; shield.ItemID = 15726; EquipItem( chest ); EquipItem( arms ); EquipItem( legs ); EquipItem( gorget ); EquipItem( gloves ); EquipItem( shield ); EquipItem( helm ); EquipItem( new Longsword() ); break; } case 2: { StuddedChest chest = new StuddedChest(); chest.Resource = CraftResource.BeastLeather; chest.Hue = 2830; StuddedArms arms = new StuddedArms(); arms.Resource = CraftResource.BeastLeather; arms.Hue = 2830; StuddedLegs legs = new StuddedLegs(); legs.Resource = CraftResource.BeastLeather; legs.Hue = 2830; StuddedGorget gorget = new StuddedGorget(); gorget.Resource = CraftResource.BeastLeather; gorget.Hue = 2830; StuddedGloves gloves = new StuddedGloves(); gloves.Resource = CraftResource.BeastLeather; gloves.Hue = 2830; VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield(); shield.Resource = CraftResource.Bronze; shield.Name = "Society of Rymaliel Kite Shield"; shield.Hue = 2413; shield.ItemID = 15726; ThighBoots boots = new ThighBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 2989; EquipItem( chest ); EquipItem( arms ); EquipItem( legs ); EquipItem( gorget ); EquipItem( gloves ); EquipItem( shield ); EquipItem( boots ); EquipItem( new FlangedMace() ); break; } case 3: { LeatherChest chest = new LeatherChest(); chest.Resource = CraftResource.BeastLeather; chest.Hue = 2830; LeatherArms arms = new LeatherArms(); arms.Resource = CraftResource.BeastLeather; arms.Hue = 2830; LeatherLegs legs = new LeatherLegs(); legs.Resource = CraftResource.BeastLeather; legs.Hue = 2830; LeatherGorget gorget = new LeatherGorget(); gorget.Resource = CraftResource.BeastLeather; gorget.Hue = 2830; LeatherGloves gloves = new LeatherGloves(); gloves.Resource = CraftResource.BeastLeather; gloves.Hue = 2830; ThighBoots boots = new ThighBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 2830; EquipItem( chest ); EquipItem( arms ); EquipItem( legs ); EquipItem( gorget ); EquipItem( gloves ); EquipItem( boots ); EquipItem( new CompositeShortbow() ); AI = AIType.AI_Archer; PackItem( new Arrow( Utility.RandomMinMax( 10, 20 ) ) ); break; } } Surcoat surcoat = new Surcoat(); surcoat.Name = "Society of Rymaliel Surcoat"; surcoat.ItemID = 15483; EquipItem( surcoat ); }
public override void InitOutfit() { this.AddItem(new Backpack()); this.AddItem(new Boots(0x1BB)); Item item; item = new LeatherLegs(); item.Hue = 0x901; this.AddItem(item); item = new LeatherGloves(); item.Hue = 0x1BB; this.AddItem(item); item = new LeatherChest(); item.Hue = 0x1BB; this.AddItem(item); item = new LeatherArms(); item.Hue = 0x901; this.AddItem(item); item = new CompositeBow(); item.Hue = 0x606; this.AddItem(item); }
public Kashiel() : base( AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2 ) { Name = "Kashiel"; Title = "the archer"; Race = Race.Human; BodyValue = 0x191; Female = true; Hue = Race.RandomSkinHue(); InitStats( 100, 100, 25 ); Utility.AssignRandomHair( this, true ); AddItem( new Backpack() ); Item item; item = new LeatherChest(); item.Hue = 0x1BB; AddItem( item ); item = new LeatherLegs(); item.Hue = 0x901; AddItem( item ); item = new LeatherArms(); item.Hue = 0x901; AddItem( item ); item = new LeatherGloves(); item.Hue = 0x1BB; AddItem( item ); AddItem( new Boots( 0x1BB ) ); AddItem( new CompositeBow() ); }
public EvilGenetecist() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { SpeechHue = Utility.RandomDyedHue(); Title = "the evil genetecist"; Hue = Utility.RandomSkinHue(); if ( this.Female = Utility.RandomBool() ) { Body = 0x191; Name = NameList.RandomName( "female" ); } else { Body = 0x190; Name = NameList.RandomName( "male" ); } SetStr( 200, 275 ); SetDex( 115, 125 ); SetInt( 200, 275 ); SetHits( 1900, 2100 ); SetMana( 1000 ); 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 ); SetSkill( SkillName.EvalInt, 55.0, 67.5 ); SetSkill( SkillName.Magery, 90.0, 105.5 ); Fame = 5000; Karma = -5000; AddItem( new Boots() ); int hue = Utility.RandomMinMax( 1410, 1450 ); //Random Zog Green Item robe = new Robe(); robe.Hue = hue; AddItem( robe ); Item chest = new LeatherChest(); chest.Hue = hue; AddItem( chest ); Item gloves = new LeatherGloves(); gloves.Hue = hue; AddItem( gloves ); Item gorget = new LeatherGorget(); gorget.Hue = hue; AddItem( gorget ); Item legs = new LeatherLegs(); legs.Hue = hue; AddItem( legs ); Item arms = new LeatherArms(); arms.Hue = hue; AddItem( arms ); Item hair = new Item( Utility.RandomList( 0x203B, 0x2049, 0x2048, 0x204A ) ); hair.Hue = Utility.RandomNondyedHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); PackItem( new Organics( Utility.RandomMinMax( 250, 400 ) ) ); if ( Utility.Random( 100 ) < 35 ) { switch ( Utility.Random( 2 )) { case 0: PackItem( new EmptyDNAVial() ); break; case 1: PackItem( new EmptyDNAVialSet() ); break; } } if ( Utility.Random( 500 ) < 3 ) { DNAItem dna = new DNAItem(); switch ( Utility.Random( 4 ) ) { case 0: dna.DNAName = "a dark father"; dna.DNAType = DNAType.Prowess; dna.DNAQuality = DNAQuality.VeryHigh; dna.DNAStr = 500; dna.DNAHits = 30000; dna.DNADamageMin = 17; dna.DNADamageMax = 21; dna.DNAArmor = 64; dna.DNAPhysicalResist = 30; dna.DNATactics = 100; dna.DNAWrestling = 100; PackItem( dna ); break; case 1: dna.DNAName = "a fox guardian"; dna.DNAType = DNAType.Environment; dna.DNAQuality = DNAQuality.VeryHigh; dna.DNADex = 275; dna.DNAStam = 300; dna.DNAColdResist = 30; dna.DNAFireResist = 60; dna.DNAPoisoning = 100; PackItem( dna ); break; case 2: dna.DNAName = "Mondain The Wizard"; dna.DNAType = DNAType.Mental; dna.DNAQuality = DNAQuality.VeryHigh; dna.DNAInt = 415; dna.DNAMana = 1000; dna.DNAEnergyResist = 70; dna.DNAPoisonResist = 70; dna.DNAMagery = 100; dna.DNAEvalInt = 100; PackItem( dna ); break; case 3: dna.DNAName = "a hell chicken"; dna.DNAType = DNAType.Mimic; dna.DNABodyValue = 208; dna.DNASoundID = 110; dna.DNAHealAttack = true; dna.DNATrialByFire = true; PackItem( dna ); break; } } }
public EvilTannis() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Evil Tannis"; Title = "the spider genetecist"; Hue = 0; Body = 400; SetStr(200, 275); SetDex(115, 125); SetInt(200, 275); SetHits(1900, 2100); SetMana(1000); 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); SetSkill(SkillName.EvalInt, 55.0, 67.5); SetSkill(SkillName.Magery, 90.0, 105.5); Fame = 5000; Karma = -5000; AddItem(new Boots()); int hue = Utility.RandomMinMax(1410, 1450); //Random Zog Green Item robe = new Robe(); robe.Hue = hue; AddItem(robe); Item chest = new LeatherChest(); chest.Hue = hue; AddItem(chest); Item gloves = new LeatherGloves(); gloves.Hue = hue; AddItem(gloves); Item gorget = new LeatherGorget(); gorget.Hue = hue; AddItem(gorget); Item legs = new LeatherLegs(); legs.Hue = hue; AddItem(legs); Item arms = new LeatherArms(); arms.Hue = hue; AddItem(arms); Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = Utility.RandomNondyedHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); PackItem(new EvilTannisHead()); }
public static void CreateItem(ItemInfo info, Mobile m) { if (m == null) return; Item item = null; BaseCreature bc = null; switch (info.IncrID) { case 0: item = new BlackPearl(999); break; case 1: item = new Bloodmoss(999); break; case 2: item = new MandrakeRoot(999); break; case 3: item = new Garlic(999); break; case 4: item = new Ginseng(999); break; case 5: item = new Nightshade(999); break; case 6: item = new SpidersSilk(999); break; case 7: item = new SulfurousAsh(999); break; case 8: item = new Bag(); ((Bag)item).DropItem( new BlackPearl(100) ); ((Bag)item).DropItem( new Bloodmoss(100) ); ((Bag)item).DropItem( new MandrakeRoot(100) ); ((Bag)item).DropItem( new Garlic(100) ); ((Bag)item).DropItem( new Ginseng(100) ); ((Bag)item).DropItem( new Nightshade(100) ); ((Bag)item).DropItem( new SpidersSilk(100) ); ((Bag)item).DropItem( new SulfurousAsh(100) ); break; case 9: item = new BatWing(999); break; case 10: item = new GraveDust(999); break; case 11: item = new DaemonBlood(999); break; case 12: item = new NoxCrystal(999); break; case 13: item = new PigIron(999); break; case 14: item = new Bag(); ((Bag)item).DropItem( new BatWing(100) ); ((Bag)item).DropItem( new GraveDust(100) ); ((Bag)item).DropItem( new DaemonBlood(100) ); ((Bag)item).DropItem( new NoxCrystal(100) ); ((Bag)item).DropItem( new PigIron(100) ); break; case 15: for (int i=0; i < 2; i++) //The last potion is dropped later { item = new RefreshPotion(); m.AddToBackpack(item); } item = new RefreshPotion(); break; case 16: for (int i=0; i < 2; i++) //The last potion is dropped later { item = new RefreshPotion(); m.AddToBackpack(item); } item = new LesserCurePotion(); break; case 17: for (int i=0; i < 2; i++) //The last potion is dropped later { item = new RefreshPotion(); m.AddToBackpack(item); } item = new LesserHealPotion(); break; case 18: for (int i=0; i < 2; i++) //The last potion is dropped later { item = new RefreshPotion(); m.AddToBackpack(item); } item = new NightSightPotion(); break; case 19: item = new Bandage(50); break; case 20: item = new Bandage(200); break; case 21: item = new Bandage(1000); break; case 22: item = new Arrow(100); break; case 23: item = new Arrow(1000); break; case 24: item = new Bolt(100); break; case 25: item = new Bolt(1000); break; case 26: bc = new Horse(); break; case 27: bc = new PackLlama(); break; case 28: item = new Club(); BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 29: item = new WarFork(); BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 30: item = new Katana(); BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 31: item = new Bow(); BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 32: item = new MetalKiteShield(); BaseRunicTool.ApplyAttributesTo((BaseShield)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 33: item = new WoodenShield(); BaseRunicTool.ApplyAttributesTo((BaseShield)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 34: item = new LeatherChest(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 35: item = new LeatherGloves(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 36: item = new LeatherGorget(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 37: item = new LeatherLegs(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 38: item = new LeatherCap(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 39: item = new LeatherArms(); BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80); break; case 40: item = new Gold(300); break; case 41: item = new Gold(3000); break; case 42: item = new Server.Engines.BulkOrders.BulkOrderBook(); break; case 43: item = new Drums(); ((BaseInstrument)item).Quality = InstrumentQuality.Exceptional; break; case 44: item = new TambourineTassel(); ((BaseInstrument)item).Quality = InstrumentQuality.Exceptional; break; case 45: item = new Server.Multis.SmallDragonBoatDeed(); break; case 46: item = new Server.Multis.LargeDragonBoatDeed(); break; } if (item != null) { m.AddToBackpack(item); m.SendMessage("Here are the goods you requested."); } else if (bc != null) { bc.Controlled = true; bc.ControlMaster = m; bc.MoveToWorld( m.Location, m.Map ); m.SendMessage("Here is the pet you requested."); } else { m.SendMessage("That item is not available. Please report the bug at the site that will open in your browser."); m.LaunchBrowser( "http://bug.casiopia.net/" ); m.AddToBackpack( new VeriteGem(info.Price) ); } }
public DummySuper() : base(AIType.AI_Mage, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Super Mage int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats this.InitStats( 125, 125, 125 ); this.Skills[SkillName.Magery].Base = 120; this.Skills[SkillName.EvalInt].Base = 120; this.Skills[SkillName.Anatomy].Base = 120; this.Skills[SkillName.Wrestling].Base = 120; this.Skills[SkillName.Meditation].Base = 120; this.Skills[SkillName.Poisoning].Base = 100; this.Skills[SkillName.Inscribe].Base = 100; // Name this.Name = "Super Mage"; // Equip Spellbook book = new Spellbook(); book.Movable = false; book.LootType = LootType.Newbied; book.Content =0xFFFFFFFFFFFFFFFF; AddItem( book ); LeatherArms lea = new LeatherArms(); lea.Movable = false; lea.LootType = LootType.Newbied; lea.Crafter = this; lea.Quality = ArmorQuality.Regular; AddItem( lea ); LeatherChest lec = new LeatherChest(); lec.Movable = false; lec.LootType = LootType.Newbied; lec.Crafter = this; lec.Quality = ArmorQuality.Regular; AddItem( lec ); LeatherGorget leg = new LeatherGorget(); leg.Movable = false; leg.LootType = LootType.Newbied; leg.Crafter = this; leg.Quality = ArmorQuality.Regular; AddItem( leg ); LeatherLegs lel = new LeatherLegs(); lel.Movable = false; lel.LootType = LootType.Newbied; lel.Crafter = this; lel.Quality = ArmorQuality.Regular; AddItem( lel ); Sandals snd = new Sandals(); snd.Hue = iHue; snd.LootType = LootType.Newbied; AddItem( snd ); JesterHat jhat = new JesterHat(); jhat.Hue = iHue; AddItem( jhat ); Doublet dblt = new Doublet(); dblt.Hue = iHue; AddItem( dblt ); // Spells AddSpellAttack( typeof(Spells.First.MagicArrowSpell) ); AddSpellAttack( typeof(Spells.First.WeakenSpell) ); AddSpellAttack( typeof(Spells.Third.FireballSpell) ); AddSpellDefense( typeof(Spells.Third.WallOfStoneSpell) ); AddSpellDefense( typeof(Spells.First.HealSpell) ); }
public MongbatHideoutTreasureChest1() : base(0xE43) { Name = "a treasure chest -40-"; Movable = true; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 40; LockLevel = 40; MaxLockLevel = 80; /////////////////////////////////// Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(20, 300))); } /////////////////////////////////////// Supplies switch (Utility.Random(19)) { case 0: DropItem(new Board(60)); break; case 1: DropItem(new BoltOfCloth(60)); break; case 2: DropItem(new Bottle(60)); break; case 3: DropItem(new CopperWire(60)); break; case 4: DropItem(new Cotton(60)); break; case 5: DropItem(new DarkYarn(60)); break; case 6: DropItem(new Feather(60)); break; case 7: DropItem(new Flax(60)); break; case 8: DropItem(new Gears(60)); break; case 9: DropItem(new GoldWire(60)); break; case 10: DropItem(new IronIngot(60)); break; case 11: DropItem(new IronWire(60)); break; case 12: DropItem(new Leather(60)); break; case 13: DropItem(new LightYarn(60)); break; case 14: DropItem(new Shaft(60)); break; case 15: DropItem(new SilverWire(60)); break; case 16: DropItem(new SpoolOfThread(60)); break; case 17: DropItem(new Springs(60)); break; case 18: DropItem(new Wool(60)); break; } switch (Utility.Random(5)) { case 0: DropItem(new BeetleEgg(15)); break; case 1: DropItem(new FishScale(15)); break; case 2: DropItem(new Nirnroot(15)); break; case 3: DropItem(new SerpentScale(15)); break; case 4: DropItem(new ThunderStone(15)); break; } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.RandomMinMax(5, 10); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.05) { DropItem(new SackFlour()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } /////////////////////////////////////// LV 1-15 if (Utility.RandomDouble() < 0.10) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(36)) { case 0: weapon = new Hatchet(); break; // Lv1 case 1: weapon = new Axe(); break; // Lv5 case 2: weapon = new BattleAxe(); break; // Lv10 case 3: weapon = new Bow(); break; // Lv1 case 4: weapon = new Crossbow(); break; // Lv1 case 5: weapon = new Balestra(); break; // Lv5 case 6: weapon = new ElvenLeafBow(); break; // Lv5 case 7: weapon = new MagicalShortbow(); break; // Lv10 case 8: weapon = new RepeatingCrossbow(); break; // Lv10 case 9: weapon = new SkinningKnife(); break; // Lv1 case 10: weapon = new Cleaver(); break; // Lv5 case 11: weapon = new Dagger(); break; // Lv5 case 12: weapon = new ButcherKnife(); break; // Lv10 case 13: weapon = new EbonyDagger(); break; // Lv10 case 14: weapon = new Sai(); break; // Lv15 case 15: weapon = new Club(); break; // Lv1 case 16: weapon = new Nunchaku(); break; // Lv1 case 17: weapon = new Mace(); break; // Lv5 case 18: weapon = new Maul(); break; // Lv10 case 19: weapon = new Scepter(); break; // Lv15 case 20: weapon = new Pitchfork(); break; // Lv1 case 21: weapon = new ShortSpear(); break; // Lv5 case 22: weapon = new Pilum(); break; // Lv10 case 23: weapon = new Pike(); break; // Lv15 case 24: weapon = new GnarledStaff(); break; // Lv1 case 25: weapon = new ShepherdsCrook(); break; // Lv1 case 26: weapon = new QuarterStaff(); break; // Lv10 case 27: weapon = new ReptilianStaff(); break; // Lv15 case 28: weapon = new Bokuto(); break; // Lv1 case 29: weapon = new BoneHarvester(); break; // Lv1 case 30: weapon = new Cutlass(); break; // Lv1 case 31: weapon = new ElvenMachete(); break; // Lv1 case 32: weapon = new Kryss(); break; // Lv1 case 33: weapon = new EbonyRapier(); break; // Lv10 case 34: weapon = new Scimitar(); break; // Lv10 default: weapon = new Leafblade(); break; // Lv1 } switch (Utility.Random(14)) { case 0: weapon.Attributes.AttackChance = Utility.RandomMinMax(1, 5); break; case 1: weapon.Attributes.DefendChance = Utility.RandomMinMax(1, 5); break; case 2: weapon.Attributes.Luck = Utility.RandomMinMax(1, 10); break; case 3: weapon.Attributes.WeaponSpeed = Utility.RandomMinMax(1, 25); break; case 4: weapon.WeaponAttributes.HitDispel = Utility.RandomMinMax(2, 10); break; case 5: weapon.WeaponAttributes.HitFireball = Utility.RandomMinMax(2, 10); break; case 6: weapon.WeaponAttributes.HitHarm = Utility.RandomMinMax(2, 10); break; case 7: weapon.WeaponAttributes.HitLeechHits = Utility.RandomMinMax(2, 10); break; case 8: weapon.WeaponAttributes.HitLeechMana = Utility.RandomMinMax(2, 10); break; case 9: weapon.WeaponAttributes.HitLeechStam = Utility.RandomMinMax(2, 10); break; case 10: weapon.WeaponAttributes.HitLightning = Utility.RandomMinMax(2, 10); break; case 11: weapon.WeaponAttributes.HitLowerAttack = Utility.RandomMinMax(2, 10); break; case 12: weapon.WeaponAttributes.HitLowerDefend = Utility.RandomMinMax(2, 10); break; default: weapon.Attributes.WeaponDamage = Utility.RandomMinMax(1, 10); break; } DropItem(weapon); } /////////////////////////////////////// LV 1-15 if (Utility.RandomDouble() < 0.10) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(39)) { case 0: armor = new LeatherArms(); break; // Lv1 case 1: armor = new LeatherBustierArms(); break; // Lv1 case 2: armor = new LeatherCap(); break; // Lv1 case 3: armor = new LeatherChest(); break; // Lv1 case 4: armor = new LeatherGloves(); break; // Lv1 case 5: armor = new LeatherGorget(); break; // Lv1 case 6: armor = new LeatherLegs(); break; // Lv1 case 7: armor = new LeatherShorts(); break; // Lv1 case 8: armor = new LeatherSkirt(); break; // Lv1 case 9: armor = new FemaleLeafChest(); break; // Lv1 case 10: armor = new LeafArms(); break; // Lv3 case 11: armor = new LeafChest(); break; // Lv3 case 12: armor = new LeafGloves(); break; // Lv3 case 13: armor = new LeafGorget(); break; // Lv3 case 14: armor = new LeafLegs(); break; // Lv3 case 15: armor = new LeafTonlet(); break; // Lv3 case 16: armor = new LeatherDo(); break; // Lv6 case 17: armor = new LeatherHaidate(); break; // Lv6 case 18: armor = new LeatherHiroSode(); break; // Lv6 case 19: armor = new LeatherJingasa(); break; // Lv6 case 20: armor = new LeatherMempo(); break; // Lv6 case 21: armor = new LeatherNinjaHood(); break; // Lv6 case 22: armor = new LeatherNinjaJacket(); break; // Lv6 case 23: armor = new LeatherNinjaMitts(); break; // Lv6 case 24: armor = new LeatherNinjaPants(); break; // Lv6 case 25: armor = new LeatherSuneate(); break; // Lv6 case 26: armor = new EbonsilkArms(); break; // Lv9 case 27: armor = new EbonsilkChest(); break; // Lv9 case 28: armor = new EbonsilkGloves(); break; // Lv9 case 29: armor = new EbonsilkGorget(); break; // Lv9 case 30: armor = new EbonsilkLegs(); break; // Lv9 case 31: armor = new EbonsilkTiara(); break; // Lv9 case 32: armor = new ChitinArms(); break; // Lv12 case 33: armor = new ChitinChest(); break; // Lv12 case 34: armor = new ChitinGloves(); break; // Lv12 case 35: armor = new ChitinGorget(); break; // Lv12 case 36: armor = new ChitinHelmet(); break; // Lv12 case 37: armor = new ChitinLegs(); break; // Lv12 default: armor = new FemaleLeatherChest(); break; // Lv1 } BaseRunicTool.ApplyAttributesTo(armor, 3, 5, 50); DropItem(armor); } if (Utility.RandomDouble() < 0.05) { BaseHat hat = Loot.RandomHat(true); BaseRunicTool.ApplyAttributesTo(hat, 3, 5, 10); DropItem(hat); } if (Utility.RandomDouble() < 0.05) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 5, 10); DropItem(clothing); } if (Utility.RandomDouble() < 0.05) { BaseShield shield1 = new Buckler(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield1, 3, 5, 50); } DropItem(shield1); } if (Utility.RandomDouble() < 0.05) { BaseShield shield2 = new WoodenShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield2, 3, 5, 50); } DropItem(shield2); } if (Utility.RandomDouble() < 0.05) { BaseShield shield3 = new AmmoniteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield3, 3, 5, 50); } DropItem(shield3); } if (Utility.RandomDouble() < 0.05) { BaseShield shield4 = new BronzeShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield4, 3, 5, 50); } DropItem(shield4); } if (Utility.RandomDouble() < 0.05) { BaseShield shield5 = new MetalShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield5, 3, 5, 50); } DropItem(shield5); } if (Utility.RandomDouble() < 0.05) { BaseShield shield6 = new WoodenKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield6, 3, 5, 50); } DropItem(shield6); } if (Utility.RandomDouble() < 0.05) { BaseJewel bracelet = new SilverBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 3, 5, 10); } DropItem(bracelet); } if (Utility.RandomDouble() < 0.05) { BaseJewel earrings = new SilverEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 3, 5, 10); } DropItem(earrings); } if (Utility.RandomDouble() < 0.05) { BaseJewel necklace = new SilverNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 3, 5, 10); } DropItem(necklace); } if (Utility.RandomDouble() < 0.05) { BaseJewel ring = new SilverRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 3, 5, 10); } DropItem(ring); } }
public DummyHealer() : base(AIType.AI_Healer, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Healer Mage int iHue = 20 + this.Team * 40; int jHue = 25 + this.Team * 40; // Skills and Stats this.InitStats(125, 125, 125); this.Skills[SkillName.Magery].Base = 120; this.Skills[SkillName.EvalInt].Base = 120; this.Skills[SkillName.Anatomy].Base = 120; this.Skills[SkillName.Wrestling].Base = 120; this.Skills[SkillName.Meditation].Base = 120; this.Skills[SkillName.Healing].Base = 100; // Name this.Name = "Healer"; // Equip Spellbook book = new Spellbook(); book.Movable = false; book.LootType = LootType.Newbied; book.Content = 0xFFFFFFFFFFFFFFFF; this.AddItem(book); LeatherArms lea = new LeatherArms(); lea.Movable = false; lea.LootType = LootType.Newbied; lea.Crafter = this; lea.Quality = ArmorQuality.Regular; this.AddItem(lea); LeatherChest lec = new LeatherChest(); lec.Movable = false; lec.LootType = LootType.Newbied; lec.Crafter = this; lec.Quality = ArmorQuality.Regular; this.AddItem(lec); LeatherGorget leg = new LeatherGorget(); leg.Movable = false; leg.LootType = LootType.Newbied; leg.Crafter = this; leg.Quality = ArmorQuality.Regular; this.AddItem(leg); LeatherLegs lel = new LeatherLegs(); lel.Movable = false; lel.LootType = LootType.Newbied; lel.Crafter = this; lel.Quality = ArmorQuality.Regular; this.AddItem(lel); Sandals snd = new Sandals(); snd.Hue = iHue; snd.LootType = LootType.Newbied; this.AddItem(snd); Cap cap = new Cap(); cap.Hue = iHue; this.AddItem(cap); Robe robe = new Robe(); robe.Hue = iHue; this.AddItem(robe); }
public Stalker() : base(AIType.AI_Stealth, FightMode.Closest, 10, 1, 0.1, 0.2) { Name = "Selene the Stalker"; Body = 401; Female = true; Hue = 900; SetStr( 81, 105 ); SetDex( 140, 150 ); SetInt( 900, 1000 ); SetHits( 450, 500 ); SetDamage( 14, 17 ); SetDamageType( ResistanceType.Physical, 100 ); SetResistance( ResistanceType.Physical, 65, 70 ); SetResistance( ResistanceType.Fire, 80, 85 ); SetResistance( ResistanceType.Cold, 60, 65 ); SetResistance( ResistanceType.Poison, 60, 65 ); SetResistance( ResistanceType.Energy, 60, 65 ); SetSkill( SkillName.Healing, 110.1, 120.0 ); SetSkill( SkillName.EvalInt, 100.1, 110.0 ); SetSkill( SkillName.Meditation, 90.1, 100.0 ); SetSkill( SkillName.MagicResist, 95.0, 107.5 ); SetSkill( SkillName.Anatomy, 110.2, 120.0 ); SetSkill( SkillName.Tactics, 100.0, 110.5 ); SetSkill( SkillName.Parry, 100.0, 110.5 ); SetSkill( SkillName.Wrestling, 100.0, 110.5 ); SetSkill( SkillName.Fencing, 180.2, 200.0 ); SetSkill( SkillName.Hiding, 100.0, 100.0 ); SetSkill( SkillName.Stealth, 120.0, 120.0 ); Fame = 15000; Karma = -15000; VirtualArmor = -30; AddItem( new Bandana( 50 ) ); AddItem( new Sandals() ); LeatherBustierArms chest = new LeatherBustierArms(); chest.Hue = 800; AddItem( chest ); LeatherGloves gloves = new LeatherGloves(); gloves.Hue = 800; AddItem( gloves ); LeatherLegs legs = new LeatherLegs(); legs.Hue = 800; AddItem( legs ); Spear weapon = new Spear(); weapon.Movable = false; weapon.Attributes.WeaponDamage = 150; weapon.Attributes.WeaponSpeed = 15; weapon.Attributes.AttackChance = 30; weapon.WeaponAttributes.HitLightning = 100; weapon.Hue = 16500; AddItem( weapon ); Item hair = new Item( Utility.RandomList( 0x203B, 0x2049, 0x2048, 0x204A ) ); hair.Hue = 700; hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); }
public static BaseArmor NewbLuckArmor() { BaseArmor armor = null; switch( Utility.Random( 6 ) ) { case 0: armor = new LeatherChest(); break; case 1: armor = new LeatherLegs(); break; case 2: armor = new LeatherArms(); break; case 3: armor = new LeatherGloves(); break; case 4: armor = new LeatherGorget(); break; case 5: armor = new LeatherCap(); break; } BaseRunicTool.ApplyAttributesTo(armor, Utility.Random( 4 ), 40, 80); int luck = 65 + Utility.Random( 21 ) + Utility.Random( 21 ); if( luck > 100 ) luck = 100; armor.Attributes.Luck = luck; armor.Hue = 2123; return armor; }
public ChickenPlucker() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { SetStr( 2205, 3245 ); SetDex( 781, 995 ); SetInt( 2361, 4475 ); SetHits( 8650, 10000 ); SetDamage( 15, 25 ); SetDamageType( ResistanceType.Physical, 50, 70 ); SetDamageType( ResistanceType.Fire, 50, 70 ); SetDamageType( ResistanceType.Energy, 50, 70 ); SetDamageType( ResistanceType.Poison, 50, 70 ); SetResistance( ResistanceType.Physical, 100 ); SetResistance( ResistanceType.Fire, 30, 50 ); SetResistance( ResistanceType.Cold, 30, 50 ); SetResistance( ResistanceType.Poison, 30, 50 ); SetResistance( ResistanceType.Energy, 30, 50 ); SetSkill( SkillName.Wrestling, 90, 120 ); SetSkill( SkillName.Tactics, 90, 120 ); SetSkill( SkillName.Healing, 120, 150 ); SetSkill( SkillName.SpiritSpeak, 120, 150 ); SetSkill( SkillName.Anatomy, 90, 120 ); SetSkill( SkillName.Magery, 90, 120 ); SetSkill( SkillName.MagicResist, 90, 120 ); SetSkill( SkillName.Meditation, 90, 120 ); SetSkill( SkillName.DetectHidden, 20000, 30000 ); Fame = 5000; Karma = -5000; Name = "Pixel"; Title = "The Chicken Plucking Thief"; Body = 0x190; SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); LeatherChest chest = new LeatherChest(); chest.Hue = 2492; AddItem( chest ); LeatherArms arms = new LeatherArms(); arms.Hue = 2492; AddItem( arms ); LeatherGloves gloves = new LeatherGloves(); gloves.Hue = 2492; AddItem( gloves ); LeatherGorget gorget = new LeatherGorget(); gorget.Hue = 2492; AddItem( gorget ); LeatherLegs legs = new LeatherLegs(); legs.Hue = 2492; AddItem( legs ); PackGold( 2420, 3690 ); if( Utility.Random( 50 ) < 50 ) switch ( Utility.Random( 50 )) { case 0: PackItem( new FighterCloak() ); break; case 1: PackItem( new DruidCloak() ); break; case 2: PackItem( new Piwafwi() ); break; case 3: PackItem( new RogueCloak() ); break; case 4: PackItem( new RogueSandals() ); break; case 5: PackItem( new MasterSandals() ); break; } }
public InsulariiHealer() : base(Nation.Alyrian) { int chance = Utility.RandomMinMax( 1, 6 ); Nation nation = Nation.Alyrian; switch( chance ) { case 1: nation = Nation.Alyrian; break; case 2: nation = Nation.Azhuran; break; case 3: nation = Nation.Khemetar; break; case 4: nation = Nation.Mhordul; break; case 5: nation = Nation.Tyrean; break; case 6: nation = Nation.Vhalurian; break; } Hue = BaseKhaerosMobile.AssignRacialHue( nation ); HairItemID = BaseKhaerosMobile.AssignRacialHair( nation, this.Female ); int hairhue = BaseKhaerosMobile.AssignRacialHairHue( nation ); HairHue = hairhue; if( !this.Female ) { FacialHairItemID = BaseKhaerosMobile.AssignRacialFacialHair( nation ); FacialHairHue = hairhue; } if( this.Backpack == null ) AddItem( new Backpack() ); SetStr( 150 ); SetDex( 75 ); SetInt( 75 ); SetDamage( 10, 15 ); SetHits( 400 ); SetMana( 300 ); SetDamageType( ResistanceType.Blunt, 100 ); SetResistance( ResistanceType.Blunt, 10 ); SetResistance( ResistanceType.Piercing, 10 ); SetResistance( ResistanceType.Slashing, 10 ); SetSkill( SkillName.Anatomy, 100.0 ); SetSkill( SkillName.Archery, 100.0 ); SetSkill( SkillName.Fencing, 100.0 ); SetSkill( SkillName.Macing, 100.0 ); SetSkill( SkillName.Swords, 100.0 ); SetSkill( SkillName.Tactics, 100.0 ); SetSkill( SkillName.Polearms, 100.0 ); SetSkill( SkillName.ExoticWeaponry, 100.0 ); SetSkill( SkillName.Axemanship, 100.0 ); SetSkill( SkillName.UnarmedFighting, 100.0 ); this.Fame = 14000; this.VirtualArmor = 0; FightMode = FightMode.Closest; Title = "the Insularii Healer"; Name = BaseKhaerosMobile.GiveInsulariiName( this.Female ); LeatherChest chest = new LeatherChest(); chest.Resource = CraftResource.BeastLeather; chest.Hue = 2591; LeatherArms arms = new LeatherArms(); arms.Resource = CraftResource.BeastLeather; arms.Hue = 2591; LeatherLegs legs = new LeatherLegs(); legs.Resource = CraftResource.BeastLeather; legs.Hue = 2591; LeatherGorget gorget = new LeatherGorget(); gorget.Resource = CraftResource.BeastLeather; gorget.Hue = 2591; LeatherGloves gloves = new LeatherGloves(); gloves.Resource = CraftResource.BeastLeather; gloves.Hue = 2591; BlackLeatherBoots boots = new BlackLeatherBoots(); boots.Hue = 2591; GnarledStaff staff = new GnarledStaff(); staff.Resource = CraftResource.Redwood; EquipItem( chest ); EquipItem( arms ); EquipItem( legs ); EquipItem( gorget ); EquipItem( gloves ); EquipItem( boots ); EquipItem( staff ); Surcoat surcoat = new Surcoat(); surcoat.Name = "Insularii Surcoat"; surcoat.ItemID = 15502; surcoat.Hue = 2799; EquipItem( surcoat ); }
public DummyThief() : base(AIType.AI_Thief, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Hybrid Thief int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats this.InitStats( 105, 105, 105 ); this.Skills[SkillName.Healing].Base = 120; this.Skills[SkillName.Anatomy].Base = 120; this.Skills[SkillName.Stealing].Base = 120; this.Skills[SkillName.ArmsLore].Base = 100; this.Skills[SkillName.Meditation].Base = 120; this.Skills[SkillName.Wrestling].Base = 120; // Name this.Name = "Hybrid Thief"; // Equip Spellbook book = new Spellbook(); book.Movable = false; book.LootType = LootType.Newbied; book.Content =0xFFFFFFFFFFFFFFFF; AddItem( book ); LeatherArms lea = new LeatherArms(); lea.Movable = false; lea.LootType = LootType.Newbied; lea.Crafter = this; lea.Quality = ArmorQuality.Regular; AddItem( lea ); LeatherChest lec = new LeatherChest(); lec.Movable = false; lec.LootType = LootType.Newbied; lec.Crafter = this; lec.Quality = ArmorQuality.Regular; AddItem( lec ); LeatherGorget leg = new LeatherGorget(); leg.Movable = false; leg.LootType = LootType.Newbied; leg.Crafter = this; leg.Quality = ArmorQuality.Regular; AddItem( leg ); LeatherLegs lel = new LeatherLegs(); lel.Movable = false; lel.LootType = LootType.Newbied; lel.Crafter = this; lel.Quality = ArmorQuality.Regular; AddItem( lel ); Sandals snd = new Sandals(); snd.Hue = iHue; snd.LootType = LootType.Newbied; AddItem( snd ); Cap cap = new Cap(); cap.Hue = iHue; AddItem( cap ); Robe robe = new Robe(); robe.Hue = iHue; AddItem( robe ); Bandage band = new Bandage( 50 ); AddToBackpack( band ); }
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 ); }
public PegLeg() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Name = "Peg Leg"; Body = 159; SetStr( 60, 110 ); SetDex( 60, 100 ); SetInt( 60, 100 ); SetHits( 200 ); SetDamage( 5, 25 ); SetDamageType( ResistanceType.Physical, 50 ); SetDamageType( ResistanceType.Fire, 60 ); SetDamageType( ResistanceType.Energy, 10 ); SetResistance( ResistanceType.Physical, 30, 80 ); SetResistance( ResistanceType.Fire, 20, 100 ); SetResistance( ResistanceType.Cold, 10, 15 ); SetResistance( ResistanceType.Poison, 20 ); SetResistance( ResistanceType.Energy, 0, 20 ); SetSkill( SkillName.Anatomy, 120 ); SetSkill( SkillName.EvalInt, 90, 95.0 ); SetSkill( SkillName.Magery, 50.5, 100.0 ); SetSkill( SkillName.Meditation, 60 ); SetSkill( SkillName.MagicResist, 10.1, 50.0 ); SetSkill( SkillName.Tactics, 115, 125 ); SetSkill( SkillName.Swords, 115, 125 ); Fame = 8000; Karma = -8000; Kills = 10; Hue = 1271; VirtualArmor = 50; LeatherArms LeatherArms = new LeatherArms(); LeatherArms.Hue = 1175; AddItem( LeatherArms ); LeatherCap LeatherCap = new LeatherCap(); LeatherCap.Hue = 1157; AddItem( LeatherCap ); LeatherGloves LeatherGloves = new LeatherGloves(); LeatherGloves.Hue = 1175; AddItem( LeatherGloves ); LeatherLegs LeatherLegs = new LeatherLegs(); LeatherLegs.Hue = 1157; AddItem( LeatherLegs ); LeatherChest LeatherChest = new LeatherChest(); LeatherChest.Hue = 1175; AddItem( LeatherChest ); LeatherGorget LeatherGorget = new LeatherGorget(); LeatherGorget.Hue = 1157; AddItem( LeatherGorget ); //AddItem( new SparrowBlade() ); PackItem( new PegLeghook() ); PackItem( new PegLegHead() ); }
public DummyStun() : base(AIType.AI_Mage, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Stun Mage int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats this.InitStats( 90, 90, 125 ); this.Skills[SkillName.Magery].Base = 100; this.Skills[SkillName.EvalInt].Base = 120; this.Skills[SkillName.Anatomy].Base = 80; this.Skills[SkillName.Wrestling].Base = 80; this.Skills[SkillName.Meditation].Base = 100; this.Skills[SkillName.Poisoning].Base = 100; // Name this.Name = "Stun Mage"; // Equip Spellbook book = new Spellbook(); book.Movable = false; book.LootType = LootType.Newbied; book.Content =0xFFFFFFFFFFFFFFFF; AddItem( book ); LeatherArms lea = new LeatherArms(); lea.Movable = false; lea.LootType = LootType.Newbied; lea.Crafter = this; lea.Quality = ArmorQuality.Regular; AddItem( lea ); LeatherChest lec = new LeatherChest(); lec.Movable = false; lec.LootType = LootType.Newbied; lec.Crafter = this; lec.Quality = ArmorQuality.Regular; AddItem( lec ); LeatherGorget leg = new LeatherGorget(); leg.Movable = false; leg.LootType = LootType.Newbied; leg.Crafter = this; leg.Quality = ArmorQuality.Regular; AddItem( leg ); LeatherLegs lel = new LeatherLegs(); lel.Movable = false; lel.LootType = LootType.Newbied; lel.Crafter = this; lel.Quality = ArmorQuality.Regular; AddItem( lel ); Boots bts = new Boots(); bts.Hue = iHue; AddItem( bts ); Cap cap = new Cap(); cap.Hue = iHue; AddItem( cap ); // Spells AddSpellAttack( typeof(Spells.First.MagicArrowSpell) ); AddSpellAttack( typeof(Spells.First.WeakenSpell) ); AddSpellAttack( typeof(Spells.Third.FireballSpell) ); AddSpellDefense( typeof(Spells.Third.WallOfStoneSpell) ); AddSpellDefense( typeof(Spells.First.HealSpell) ); }
public static void EquipSociety(Armament a, Mobile m) { if (a == Armament.LightCavalry) a = (Armament)1; else if (a == Armament.HeavyCavalry) a = (Armament)3; switch (a) { case Armament.Light: { LeatherChest chest = new LeatherChest(); chest.Resource = CraftResource.BeastLeather; chest.Hue = 2830; LeatherArms arms = new LeatherArms(); arms.Resource = CraftResource.BeastLeather; arms.Hue = 2830; LeatherLegs legs = new LeatherLegs(); legs.Resource = CraftResource.BeastLeather; legs.Hue = 2830; LeatherGorget gorget = new LeatherGorget(); gorget.Resource = CraftResource.BeastLeather; gorget.Hue = 2830; LeatherGloves gloves = new LeatherGloves(); gloves.Resource = CraftResource.BeastLeather; gloves.Hue = 2830; ThighBoots boots = new ThighBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 2830; m.EquipItem(chest); m.EquipItem(arms); m.EquipItem(legs); m.EquipItem(gorget); m.EquipItem(gloves); m.EquipItem(boots); Shortsword ss = new Shortsword(); ss.Resource = CraftResource.Bronze; m.EquipItem(ss); VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield(); shield.Resource = CraftResource.Bronze; shield.Name = "Society of Rymaliel Kite Shield"; shield.Hue = 2413; shield.ItemID = 15726; m.EquipItem(shield); break; } case Armament.Medium: { ChainChest chest = new ChainChest(); chest.Resource = CraftResource.Bronze; chest.Hue = 2830; ChainArms arms = new ChainArms(); arms.Resource = CraftResource.Bronze; arms.Hue = 2830; ChainLegs legs = new ChainLegs(); legs.Resource = CraftResource.Bronze; legs.Hue = 2830; ChainGorget gorget = new ChainGorget(); gorget.Resource = CraftResource.Bronze; gorget.Hue = 2830; ChainGloves gloves = new ChainGloves(); gloves.Resource = CraftResource.Bronze; gloves.Hue = 2830; VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield(); shield.Resource = CraftResource.Bronze; shield.Name = "Society of Rymaliel Kite Shield"; shield.Hue = 2413; shield.ItemID = 15726; m.EquipItem(shield); FlangedMace fm = new FlangedMace(); fm.Resource = CraftResource.Bronze; m.EquipItem(fm); ThighBoots boots = new ThighBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 2989; m.EquipItem(chest); m.EquipItem(arms); m.EquipItem(legs); m.EquipItem(gorget); m.EquipItem(gloves); m.EquipItem(shield); m.EquipItem(fm); m.EquipItem(boots); break; } case Armament.Heavy: { PlateChest chest = new PlateChest(); chest.Resource = CraftResource.Bronze; chest.Hue = 2830; PlateArms arms = new PlateArms(); arms.Resource = CraftResource.Bronze; arms.Hue = 2830; PlateLegs legs = new PlateLegs(); legs.Resource = CraftResource.Bronze; legs.Hue = 2830; PlateGorget gorget = new PlateGorget(); gorget.Resource = CraftResource.Bronze; gorget.Hue = 2830; PlateGloves gloves = new PlateGloves(); gloves.Resource = CraftResource.Bronze; gloves.Hue = 2830; CloseHelm helm = new CloseHelm(); helm.Resource = CraftResource.Bronze; helm.Hue = 2830; VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield(); shield.Resource = CraftResource.Bronze; shield.Name = "Society of Rymaliel Kite Shield"; shield.Hue = 2413; shield.ItemID = 15726; m.EquipItem(shield); Longsword sword = new Longsword(); sword.Resource = CraftResource.Iron; m.EquipItem(chest); m.EquipItem(arms); m.EquipItem(legs); m.EquipItem(gorget); m.EquipItem(gloves); m.EquipItem(shield); m.EquipItem(helm); m.EquipItem(sword); m.EquipItem(new ElegantCloak(2751)); break; } case Armament.Ranged: { LeatherChest chest = new LeatherChest(); chest.Resource = CraftResource.BeastLeather; chest.Hue = 2830; LongPants legs = new LongPants(); legs.Resource = CraftResource.Wool; legs.Hue = 2830; LeatherGorget gorget = new LeatherGorget(); gorget.Resource = CraftResource.BeastLeather; gorget.Hue = 2830; LeatherGloves gloves = new LeatherGloves(); gloves.Resource = CraftResource.BeastLeather; gloves.Hue = 2830; ThighBoots boots = new ThighBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 2830; WingedHelm helm = new WingedHelm(); helm.Resource = CraftResource.Copper; CompositeBow bow = new CompositeBow(); bow.Resource = CraftResource.Ash; m.EquipItem(chest); m.EquipItem(legs); m.EquipItem(gorget); m.EquipItem(gloves); m.EquipItem(boots); m.EquipItem(helm); m.EquipItem(bow); if (m is BaseCreature) { BaseCreature bc = m as BaseCreature; bc.AI = AIType.AI_Archer; bc.PackItem(new Arrow(Utility.RandomMinMax(10, 20))); } break; } } Surcoat coat = new Surcoat(); coat.ItemID = 15483; coat.Name = "A Surcoat of the Society of Rymaliel"; m.EquipItem(coat); }
public DummyAssassin() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6) { // A Dummy Hybrid Assassin int iHue = 20 + Team * 40; int jHue = 25 + Team * 40; // Skills and Stats this.InitStats( 105, 105, 105 ); this.Skills[SkillName.Magery].Base = 120; this.Skills[SkillName.EvalInt].Base = 120; this.Skills[SkillName.Swords].Base = 120; this.Skills[SkillName.Tactics].Base = 120; this.Skills[SkillName.Meditation].Base = 120; this.Skills[SkillName.Poisoning].Base = 100; // Name this.Name = "Hybrid Assassin"; // Equip Spellbook book = new Spellbook(); book.Movable = false; book.LootType = LootType.Newbied; book.Content =0xFFFFFFFFFFFFFFFF; AddToBackpack( book ); Katana kat = new Katana(); kat.Movable = false; kat.LootType = LootType.Newbied; kat.Crafter = this; kat.Poison = Poison.Deadly; kat.PoisonCharges = 12; kat.Quality = WeaponQuality.Regular; AddToBackpack( kat ); LeatherArms lea = new LeatherArms(); lea.Movable = false; lea.LootType = LootType.Newbied; lea.Crafter = this; lea.Quality = ArmorQuality.Regular; AddItem( lea ); LeatherChest lec = new LeatherChest(); lec.Movable = false; lec.LootType = LootType.Newbied; lec.Crafter = this; lec.Quality = ArmorQuality.Regular; AddItem( lec ); LeatherGorget leg = new LeatherGorget(); leg.Movable = false; leg.LootType = LootType.Newbied; leg.Crafter = this; leg.Quality = ArmorQuality.Regular; AddItem( leg ); LeatherLegs lel = new LeatherLegs(); lel.Movable = false; lel.LootType = LootType.Newbied; lel.Crafter = this; lel.Quality = ArmorQuality.Regular; AddItem( lel ); Sandals snd = new Sandals(); snd.Hue = iHue; snd.LootType = LootType.Newbied; AddItem( snd ); Cap cap = new Cap(); cap.Hue = iHue; AddItem( cap ); Robe robe = new Robe(); robe.Hue = iHue; AddItem( robe ); DeadlyPoisonPotion pota = new DeadlyPoisonPotion(); pota.LootType = LootType.Newbied; AddToBackpack( pota ); DeadlyPoisonPotion potb = new DeadlyPoisonPotion(); potb.LootType = LootType.Newbied; AddToBackpack( potb ); DeadlyPoisonPotion potc = new DeadlyPoisonPotion(); potc.LootType = LootType.Newbied; AddToBackpack( potc ); DeadlyPoisonPotion potd = new DeadlyPoisonPotion(); potd.LootType = LootType.Newbied; AddToBackpack( potd ); Bandage band = new Bandage( 50 ); AddToBackpack( band ); }
public AmazonTreeSettlementTreasureChest() : base(0xE43) { Name = "a treasure chest -10-"; Movable = true; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 10; LockLevel = 10; MaxLockLevel = 15; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(15, 200))); } /////////////////////////////////////// Supplies if (Utility.RandomDouble() < 0.10) { DropItem(new Arrow(Utility.Random(2, 6))); } if (Utility.RandomDouble() < 0.10) { DropItem(new Bolt(Utility.Random(2, 6))); } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.Random(2, 6); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.10) { DropItem(new Bandage(Utility.Random(2, 6))); } if (Utility.RandomDouble() < 0.10) { DropItem(new Bedroll()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Bottle(Utility.Random(2, 6))); } if (Utility.RandomDouble() < 0.10) { DropItem(new Lockpick(Utility.Random(2, 6))); } Item PotionLoot = Loot.RandomPotion(); DropItem(PotionLoot); /////////////////////////////////////// Tools if (Utility.RandomDouble() < 0.10) { DropItem(new FishingPole()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Shovel()); } if (Utility.RandomDouble() < 0.10) { DropItem(new Skillet()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterBelt()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterBoots()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterBustier()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterGloves()); } if (Utility.RandomDouble() < 0.05) { DropItem(new AmazonianFighterHelmet()); } if (Utility.RandomDouble() < 0.10) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(21)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 2, 10, 15); weapon.DamageLevel = (WeaponDamageLevel)Utility.Random(2); weapon.AccuracyLevel = (WeaponAccuracyLevel)Utility.Random(2); weapon.DurabilityLevel = (WeaponDurabilityLevel)Utility.Random(2); weapon.Quality = WeaponQuality.Regular; DropItem(weapon); } if (Utility.RandomDouble() < 0.10) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(10)) { case 0: armor = new FemaleLeatherChest(); break; case 1: armor = new LeatherBustierArms(); break; case 2: armor = new LeatherArms(); break; case 3: armor = new LeatherCap(); break; case 4: armor = new LeatherGloves(); break; case 5: armor = new LeatherGorget(); break; case 6: armor = new LeatherLegs(); break; case 7: armor = new LeatherShorts(); break; case 8: armor = new LeatherSkirt(); break; default: armor = new LeatherChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 3, 10, 15); armor.ProtectionLevel = (ArmorProtectionLevel)Utility.Random(3); armor.Durability = (ArmorDurabilityLevel)Utility.Random(3); armor.Quality = ArmorQuality.Regular; DropItem(armor); } if (Utility.RandomDouble() < 0.10) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new BearMask(); break; case 1: hat = new DeerMask(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new WizardsHat(); break; default: hat = new TribalMask(); break; } BaseRunicTool.ApplyAttributesTo(hat, 3, 10, 15); DropItem(hat); } if (Utility.RandomDouble() < 0.10) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 10, 15); DropItem(clothing); } if (Utility.RandomDouble() < 0.10) { BaseShield shield = new MetalShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 3, 10, 15); } DropItem(shield); } if (Utility.RandomDouble() < 0.10) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 3, 10, 15); } DropItem(bracelet); } if (Utility.RandomDouble() < 0.10) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 3, 10, 15); } DropItem(earrings); } if (Utility.RandomDouble() < 0.10) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 3, 10, 15); } DropItem(necklace); } if (Utility.RandomDouble() < 0.10) { BaseJewel ring = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 3, 10, 15); } DropItem(ring); } }
public static void EquipAzhuran(Armament a, Mobile m) { if (a == Armament.LightCavalry) a = (Armament)1; else if (a == Armament.HeavyCavalry) a = (Armament)3; switch (a) { case Armament.Light: { Sandals sandals = new Sandals(); sandals.Resource = CraftResource.BeastLeather; sandals.Hue = 2810; m.EquipItem(sandals); LeatherLegs ll = new LeatherLegs(); ll.Resource = CraftResource.ScaledLeather; m.EquipItem(ll); LeatherGloves lg = new LeatherGloves(); lg.Resource = CraftResource.ScaledLeather; m.EquipItem(lg); AzhuranJesterMask mask = new AzhuranJesterMask(); mask.Hue = 2810; m.EquipItem(mask); Shortsword sword = new Shortsword(); if (Utility.Random(100) + 1 > 99) sword.Resource = CraftResource.Obsidian; else sword.Resource = CraftResource.Bronze; m.EquipItem(sword); BoiledLeatherShield shield = new BoiledLeatherShield(); shield.Resource = CraftResource.Ash; m.EquipItem(shield); break; } case Armament.Medium: { AzhuranLeatherTunic chest = new AzhuranLeatherTunic(); chest.Resource = CraftResource.BeastLeather; AzhuranLeatherPauldrons pauldrons = new AzhuranLeatherPauldrons(); pauldrons.Resource = CraftResource.BeastLeather; AzhuranLeatherBoots boots = new AzhuranLeatherBoots(); boots.Resource = CraftResource.BeastLeather; AzhuranLeatherLegs legs = new AzhuranLeatherLegs(); legs.Resource = CraftResource.BeastLeather; LeatherGloves gloves = new LeatherGloves(); gloves.Resource = CraftResource.BeastLeather; LeatherArms arms = new LeatherArms(); arms.Resource = CraftResource.BeastLeather; AzhuranSpear spear = new AzhuranSpear(); spear.Resource = CraftResource.Bronze; m.EquipItem(chest); m.EquipItem(pauldrons); m.EquipItem(new Bandana(2810)); m.EquipItem(spear); m.EquipItem(boots); m.EquipItem(legs); m.EquipItem(gloves); m.EquipItem(arms); break; } case Armament.Heavy: { AzhuranHelm helm = new AzhuranHelm(); helm.Resource = CraftResource.Bronze; AzhuranSpikedChainChest chest = new AzhuranSpikedChainChest(); chest.Resource = CraftResource.Bronze; RingmailArms arms = new RingmailArms(); arms.Resource = CraftResource.Bronze; ChainLegs legs = new ChainLegs(); legs.Resource = CraftResource.Bronze; RingmailGloves gloves = new RingmailGloves(); gloves.Resource = CraftResource.Bronze; m.EquipItem(helm); m.EquipItem(chest); Sandals sandals = new Sandals(); sandals.Resource = CraftResource.BeastLeather; sandals.Hue = 2810; m.EquipItem(sandals); m.EquipItem(gloves); m.EquipItem(arms); m.EquipItem(legs); m.EquipItem(new Cloak(2810)); if (m.Female) { AzhuranKiteShield shield = new AzhuranKiteShield(); shield.Resource = CraftResource.Bronze; AzhuranHookedClub club = new AzhuranHookedClub(); club.Resource = CraftResource.Bronze; m.EquipItem(shield); m.EquipItem(club); m.EquipItem(new ElegantWaistCloth(2810)); } else { AzhuranRoundShield shield = new AzhuranRoundShield(); shield.Resource = CraftResource.Bronze; AzhuranBroadsword sword = new AzhuranBroadsword(); sword.Resource = CraftResource.Bronze; m.EquipItem(shield); m.EquipItem(sword); } break; } case Armament.Ranged: { Sandals sandals = new Sandals(); sandals.Resource = CraftResource.BeastLeather; sandals.Hue = 2810; m.EquipItem(sandals); if (m.Female) { AzhuranShortbow bow = new AzhuranShortbow(); bow.Resource = CraftResource.Redwood; m.EquipItem(bow); m.EquipItem(new MetallicBra()); m.EquipItem(new WaistCloth(2810)); } else { AzhuranBoomerang bow = new AzhuranBoomerang(); bow.Resource = CraftResource.Redwood; m.EquipItem(bow); m.EquipItem(new LoinCloth(2810)); } if (m is BaseCreature) { BaseCreature bc = m as BaseCreature; bc.AI = AIType.AI_Archer; if (m.Female) bc.PackItem(new Arrow(Utility.RandomMinMax(10, 20))); } break; } } }
public NewPlayerPackage() { Name = "New Player Welcome Package"; Hue = 1281; LootType = LootType.Newbied; /* * Spellbook book1 = new Spellbook(); * book1.Content = ulong.MaxValue; * DropItem(book1); * book1.Location = new Point3D(16, 83, 0); * * BookOfChivalry book2 = new BookOfChivalry(); * book2.Content = 1023;//all spells * DropItem(book2); * book2.Location = new Point3D(33, 83, 0); * * NecromancerSpellbook book3 = new NecromancerSpellbook(); * book3.Content = 0x1FFFF; * DropItem(book3); * book3.Location = new Point3D(49, 83, 0); */ BaseArmor armor = new LeatherChest(); armor.Hue = 537; armor.LootType = LootType.Newbied; armor.ArmorAttributes.DurabilityBonus = 20; armor.Attributes.LowerManaCost = 2; armor.Attributes.LowerRegCost = 5; armor.Attributes.Luck = 10; armor.Attributes.BonusMana = 3; armor.Attributes.RegenMana = 1; armor.ColdBonus = 1; armor.EnergyBonus = 1; armor.FireBonus = 1; //armor.ArmorRatingBonus = 2; armor.PoisonBonus = 1; DropItem(armor); armor.Location = new Point3D(61, 74, 0); armor = new LeatherLegs(); armor.Hue = 537; armor.LootType = LootType.Newbied; armor.ArmorAttributes.DurabilityBonus = 20; armor.Attributes.RegenHits = 1; armor.Attributes.BonusHits = 3; armor.Attributes.LowerManaCost = 2; armor.Attributes.LowerRegCost = 5; armor.Attributes.Luck = 10; armor.ColdBonus = 1; armor.EnergyBonus = 1; armor.FireBonus = 1; //armor.ArmorRatingBonus = 2; armor.PoisonBonus = 1; DropItem(armor); armor.Location = new Point3D(71, 78, 0); armor = new LeatherArms(); armor.Hue = 537; armor.LootType = LootType.Newbied; armor.ArmorAttributes.DurabilityBonus = 20; armor.Attributes.LowerManaCost = 2; armor.Attributes.LowerRegCost = 5; armor.Attributes.Luck = 10; armor.Attributes.BonusStam = 3; armor.Attributes.RegenStam = 1; armor.ColdBonus = 1; armor.EnergyBonus = 1; armor.FireBonus = 1; //armor.ArmorRatingBonus = 2; armor.PoisonBonus = 1; DropItem(armor); armor.Location = new Point3D(94, 84, 0); armor = new LeatherGloves(); armor.Hue = 537; armor.LootType = LootType.Newbied; armor.ArmorAttributes.DurabilityBonus = 20; armor.Attributes.LowerManaCost = 2; armor.Attributes.LowerRegCost = 5; armor.Attributes.Luck = 10; armor.Attributes.BonusStr = 2; armor.ColdBonus = 1; armor.EnergyBonus = 1; armor.FireBonus = 1; //armor.ArmorRatingBonus = 2; armor.PoisonBonus = 1; DropItem(armor); armor.Location = new Point3D(108, 85, 0); armor = new LeatherGorget(); armor.Hue = 537; armor.LootType = LootType.Newbied; armor.ArmorAttributes.DurabilityBonus = 20; armor.Attributes.LowerManaCost = 2; armor.Attributes.LowerRegCost = 5; armor.Attributes.BonusInt = 2; armor.Attributes.Luck = 10; armor.ColdBonus = 1; armor.EnergyBonus = 1; armor.FireBonus = 1; //armor.ArmorRatingBonus = 2; armor.PoisonBonus = 1; DropItem(armor); armor.Location = new Point3D(122, 79, 0); armor = new LeatherCap(); armor.Hue = 537; armor.LootType = LootType.Newbied; armor.ArmorAttributes.DurabilityBonus = 20; armor.Attributes.BonusDex = 2; armor.Attributes.LowerManaCost = 2; armor.Attributes.LowerRegCost = 5; armor.Attributes.Luck = 10; armor.ColdBonus = 1; armor.EnergyBonus = 1; armor.FireBonus = 1; //armor.ArmorRatingBonus = 2; armor.PoisonBonus = 1; DropItem(armor); armor.Location = new Point3D(115, 88, 0); armor = new MetalShield(); armor.Hue = 537; armor.LootType = LootType.Newbied; armor.ArmorAttributes.DurabilityBonus = 20; armor.Attributes.AttackChance = 5; armor.Attributes.DefendChance = 5; armor.Attributes.SpellChanneling = 1; armor.Attributes.Luck = 10; armor.ColdBonus = 1; armor.EnergyBonus = 1; armor.FireBonus = 1; //armor.ArmorRatingBonus = 2; armor.PoisonBonus = 1; DropItem(armor); armor.Location = new Point3D(132, 85, 0); BaseJewel ring = new GoldRing(); ring.LootType = LootType.Newbied; ring.Attributes.NightSight = 1; ring.Attributes.SpellDamage = 5; ring.Attributes.WeaponDamage = 5; DropItem(ring); ring.Location = new Point3D(140, 60, 0); Item item = new Bandage(100); DropItem(item); item.Location = new Point3D(135, 66, 0); }
public static void EquipTyrean(Armament a, Mobile m) { if (a == Armament.LightCavalry) a = (Armament)1; else if (a == Armament.HeavyCavalry) a = (Armament)3; Surcoat coat = new Surcoat(); coat.ItemID = 15477; coat.Name = "A Surcoat of the Jarlsgaard"; coat.Hue = 2741; m.EquipItem(coat); switch (a) { case Armament.Light: { StuddedChest lc = new StuddedChest(); lc.Resource = CraftResource.BeastLeather; lc.Hue = 1899; m.EquipItem(lc); StuddedLegs ll = new StuddedLegs(); ll.Resource = CraftResource.BeastLeather; ll.Hue = 1899; m.EquipItem(ll); StuddedArms la = new StuddedArms(); la.Resource = CraftResource.BeastLeather; la.Hue = 1899; m.EquipItem(ll); StuddedGloves lg = new StuddedGloves(); lg.Resource = CraftResource.BeastLeather; lg.Hue = 1899; m.EquipItem(lg); StuddedGorget lo = new StuddedGorget(); lo.Resource = CraftResource.BeastLeather; lo.Hue = 1899; m.EquipItem(lo); BearMask mask = new BearMask(); mask.Hue = 1899; m.EquipItem(mask); FurBoots boots = new FurBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 2741; m.EquipItem(boots); TyreanThrowingAxe tta = new TyreanThrowingAxe(); tta.Resource = CraftResource.Bronze; m.EquipItem(tta); LeatherShield ls = new LeatherShield(); ls.Resource = CraftResource.Yew; m.EquipItem(ls); break; } case Armament.Medium: { ChainChest cc = new ChainChest(); cc.Resource = CraftResource.Bronze; cc.Hue = 1899; m.EquipItem(cc); ChainLegs cl = new ChainLegs(); cl.Resource = CraftResource.Bronze; cl.Hue = 1899; m.EquipItem(cl); RingmailArms ra = new RingmailArms(); ra.Resource = CraftResource.Bronze; ra.Hue = 1899; m.EquipItem(ra); RingmailGloves rg = new RingmailGloves(); rg.Resource = CraftResource.Bronze; rg.Hue = 1899; m.EquipItem(rg); TyreanHornedHelm thh = new TyreanHornedHelm(); thh.Resource = CraftResource.Bronze; thh.Hue = 1899; m.EquipItem(thh); FurBoots boots = new FurBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 2741; m.EquipItem(boots); bool WeaponChance = Utility.RandomBool(); if (WeaponChance) { TyreanHarpoon weapon = new TyreanHarpoon(); weapon.Resource = CraftResource.Bronze; m.EquipItem(weapon); } else { TyreanBattleAxe weapon = new TyreanBattleAxe(); weapon.Resource = CraftResource.Bronze; m.EquipItem(weapon); } break; } case Armament.Heavy: { TyreanHalfPlateChest thpc = new TyreanHalfPlateChest(); thpc.Resource = CraftResource.Bronze; thpc.Hue = 1899; m.EquipItem(thpc); TyreanHalfPlateLegs thpl = new TyreanHalfPlateLegs(); thpl.Resource = CraftResource.Bronze; thpl.Hue = 1899; m.EquipItem(thpl); TyreanHalfPlateSabatons thps = new TyreanHalfPlateSabatons(); thps.Resource = CraftResource.Bronze; thps.Hue = 1899; m.EquipItem(thps); TyreanHalfPlateArms thpa = new TyreanHalfPlateArms(); thpa.Resource = CraftResource.Bronze; thpa.Hue = 1899; m.EquipItem(thpa); TyreanHalfPlateGloves thpg = new TyreanHalfPlateGloves(); thpg.Resource = CraftResource.Bronze; thpg.Hue = 1899; m.EquipItem(thpg); TyreanHalfPlateGorget thpo = new TyreanHalfPlateGorget(); thpo.Resource = CraftResource.Bronze; thpo.Hue = 1899; m.EquipItem(thpo); TyreanKiteShield tks = new TyreanKiteShield(); tks.Resource = CraftResource.Bronze; tks.Hue = 1899; m.EquipItem(tks); m.EquipItem(new Cloak(1445)); TyreanWingedHelm twh = new TyreanWingedHelm(); twh.Resource = CraftResource.Bronze; twh.Hue = 1899; m.EquipItem(twh); bool WeaponChance = Utility.RandomBool(); if (WeaponChance) { TyreanWarAxe axe = new TyreanWarAxe(); axe.Resource = CraftResource.Bronze; m.EquipItem(axe); } else { TyreanOrnateAxe axe = new TyreanOrnateAxe(); axe.Resource = CraftResource.Bronze; m.EquipItem(axe); } break; } case Armament.Ranged: { FancyShirt shirt = new FancyShirt(); shirt.Resource = CraftResource.Wool; shirt.Hue = 1899; m.EquipItem(shirt); LeatherChest lc = new LeatherChest(); lc.Resource = CraftResource.BeastLeather; lc.Hue = 1899; m.EquipItem(lc); LeatherLegs ll = new LeatherLegs(); ll.Resource = CraftResource.BeastLeather; ll.Hue = 1899; m.EquipItem(ll); LeatherGloves lg = new LeatherGloves(); lg.Resource = CraftResource.BeastLeather; lg.Hue = 1899; m.EquipItem(lg); FurBoots boots = new FurBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 2741; m.EquipItem(boots); m.EquipItem(new Cloak(1445)); TyreanCompositeBow bow = new TyreanCompositeBow(); bow.Resource = CraftResource.Redwood; m.EquipItem(bow); if (m is BaseCreature) { BaseCreature bc = m as BaseCreature; bc.AI = AIType.AI_Archer; bc.PackItem(new Arrow(Utility.RandomMinMax(10, 20))); } break; } } }
public EvilBioEngineer() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { SpeechHue = Utility.RandomDyedHue(); Title = "the insane bio engineer"; Hue = Utility.RandomSkinHue(); if ( this.Female = Utility.RandomBool() ) { Body = 0x191; Name = NameList.RandomName( "female" ); } else { Body = 0x190; Name = NameList.RandomName( "male" ); } SetStr( 125, 175 ); SetDex( 115, 125 ); SetInt( 115, 125 ); SetHits( 750, 1250 ); SetMana( 1000 ); 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 ); SetSkill( SkillName.EvalInt, 55.0, 67.5 ); SetSkill( SkillName.Magery, 55.0, 67.5 ); 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; } Fame = 5000; Karma = -5000; AddItem( new Boots() ); int hue = Utility.RandomMinMax( 1355, 1378 ); //Random Damage Type Hue Item robe = new Robe(); robe.Hue = hue; AddItem( robe ); Item chest = new LeatherChest(); chest.Hue = hue; AddItem( chest ); Item gloves = new LeatherGloves(); gloves.Hue = hue; AddItem( gloves ); Item gorget = new LeatherGorget(); gorget.Hue = hue; AddItem( gorget ); Item legs = new LeatherLegs(); legs.Hue = hue; AddItem( legs ); Item arms = new LeatherArms(); arms.Hue = hue; AddItem( arms ); Item hair = new Item( Utility.RandomList( 0x203B, 0x2049, 0x2048, 0x204A ) ); hair.Hue = Utility.RandomNondyedHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); PackItem( new Organics( Utility.RandomMinMax( 150, 300 ) ) ); if ( Utility.Random( 100 ) < 25 ) { switch ( Utility.Random( 2 )) { case 0: PackItem( new EmptyDNAVial() ); break; case 1: PackItem( new EmptyDNAVialSet() ); break; } } }