public static Item GetRandomHat() { Item hat = null; switch ( Utility.Random( 6 ) ) { case 0: hat = new SkullCap( GetRandomHue() ); break; case 1: hat = new Bandana( GetRandomHue() ); break; case 2: hat = new WideBrimHat(); break; case 3: hat = new TallStrawHat( Utility.RandomNeutralHue() ); break; case 4: hat = new StrawHat( Utility.RandomNeutralHue() ); break; case 5: hat = new TricorneHat( Utility.RandomNeutralHue() ); break; } return hat; }
public Rexxar () : base( AIType.AI_Melee, FightMode.Closest ) { Name = "Rexxar"; Title = "The murderer"; Body = 400; BaseSoundID = 427; Hue = 1175; SetStr( 200, 400 ); SetDex( 100, 150 ); SetInt( 46, 70 ); SetHits( 9000 ); SetDamage( 20, 25 ); SetSkill( SkillName.MagicResist, 125.1, 140.0 ); SetSkill( SkillName.Tactics, 90.1, 100.0 ); SetSkill( SkillName.Wrestling, 90.1, 100.0 ); Fame = 150000; Karma = -150000; VirtualArmor = 50; Bandana bandana = new Bandana(); bandana.Hue = 1175; bandana.Movable = false; AddItem( bandana ); ChainChest chest = new ChainChest(); chest.Hue = 1645; chest.Movable = false; AddItem( chest ); PlateArms arms = new PlateArms(); arms.Hue = 1645; arms.Movable = false; AddItem( arms ); PlateLegs legs = new PlateLegs(); legs.Hue = 1645; legs.Movable = false; AddItem( legs ); BodySash sash = new BodySash(); sash.Hue = 1175; sash.Movable = false; AddItem( sash ); DoubleAxe axe = new DoubleAxe(); axe.Hue = 1175; axe.Movable = false; AddItem( axe ); }
public static void EquipImperial(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 = 15476; coat.Name = "A Surcoat of the Imperial Legion"; coat.Hue = 2751; m.EquipItem(coat); switch (a) { case Armament.Light: { LeatherBoots boots = new LeatherBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 1899; m.EquipItem(boots); WolfMask mask = new WolfMask(); mask.Hue = 1899; m.EquipItem(mask); StuddedChest sc = new StuddedChest(); sc.Resource = CraftResource.BeastLeather; sc.Hue = 1899; m.EquipItem(sc); StuddedLegs sl = new StuddedLegs(); sl.Resource = CraftResource.BeastLeather; sl.Hue = 1899; m.EquipItem(sl); StuddedArms sa = new StuddedArms(); sa.Resource = CraftResource.BeastLeather; sa.Hue = 1899; m.EquipItem(sa); StuddedGloves sg = new StuddedGloves(); sg.Resource = CraftResource.BeastLeather; sg.Hue = 1899; m.EquipItem(sg); StuddedGorget so = new StuddedGorget(); so.Resource = CraftResource.BeastLeather; so.Hue = 1899; m.EquipItem(so); VhalurianGladius vg = new VhalurianGladius(); vg.Resource = CraftResource.Iron; vg.Hue = 0; m.EquipItem(vg); WoodenShield ws = new WoodenShield(); ws.Resource = CraftResource.Ash; m.EquipItem(ws); 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); ChainCoif co = new ChainCoif(); co.Resource = CraftResource.Bronze; co.Hue = 1899; m.EquipItem(co); 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); TyreanKiteShield vmks = new TyreanKiteShield(); vmks.Resource = CraftResource.Bronze; vmks.Hue = 1899; m.EquipItem(vmks); LeatherBoots boots = new LeatherBoots(); boots.Resource = CraftResource.BeastLeather; boots.Hue = 1899; m.EquipItem(boots); TyreanOrnateAxe axe = new TyreanOrnateAxe(); axe.Resource = CraftResource.Iron; m.EquipItem(axe); break; } case Armament.Heavy: { VhalurianOrnatePlateLegs vopl = new VhalurianOrnatePlateLegs(); vopl.Resource = CraftResource.Bronze; vopl.Hue = 1899; m.EquipItem(vopl); VhalurianOrnatePlateGorget vopo = new VhalurianOrnatePlateGorget(); vopo.Resource = CraftResource.Bronze; vopo.Hue = 1899; m.EquipItem(vopo); PlateSabatons ps = new PlateSabatons(); ps.Resource = CraftResource.Bronze; ps.Hue = 1899; m.EquipItem(ps); VhalurianOrnateKiteShield voks = new VhalurianOrnateKiteShield(); voks.Resource = CraftResource.Bronze; voks.Hue = 1899; m.EquipItem(voks); VhalurianWarHammer hammer = new VhalurianWarHammer(); hammer.Resource = CraftResource.Iron; m.EquipItem(hammer); TyreanHalfPlateChest thpc = new TyreanHalfPlateChest(); thpc.Resource = CraftResource.Bronze; thpc.Hue = 1899; m.EquipItem(thpc); 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); TyreanWingedHelm twh = new TyreanWingedHelm(); twh.Resource = CraftResource.Bronze; twh.Hue = 1899; m.EquipItem(twh); m.EquipItem(new ElegantCloak(2751)); break; } case Armament.Ranged: { FurBoots boots = new FurBoots(); boots.Resource = CraftResource.RegularLeather; boots.Hue = 1899; m.EquipItem(boots); Bandana bandana = new Bandana(); bandana.Hue = 1899; m.EquipItem(bandana); LeatherChest lc = new LeatherChest(); lc.Resource = CraftResource.RegularLeather; lc.Hue = 1899; m.EquipItem(lc); Quiver qv = new Quiver(); qv.Layer = Layer.Earrings; m.EquipItem(qv); RaggedPants rp = new RaggedPants(); rp.Resource = CraftResource.Cotton; rp.Hue = 1899; m.EquipItem(rp); LeatherGloves lg = new LeatherGloves(); lg.Resource = CraftResource.RegularLeather; lg.Hue = 1899; m.EquipItem(lg); VhalurianLongbow bow = new VhalurianLongbow(); bow.Resource = CraftResource.Yew; 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 UndeadArcherPirate() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.175, 0.2) { Title = "the unrested pirate"; Body = Utility.RandomList(400, 50, 3); Team = 1; Kills = 10; Hue = 0; SpeechHue=1153; this.Body = 0x190; this.Name = NameList.RandomName( "male" ); SetStr( 60, 85 ); SetDex( 50, 70 ); SetInt( 10, 20 ); SetDamage( 5, 7 ); SetSkill( SkillName.Archery, 35.0, 50.0 ); SetSkill( SkillName.MagicResist, 23.0, 27.5 ); SetSkill( SkillName.Tactics, 40.0, 45.5 ); SetSkill( SkillName.Healing, 30.2, 35.9 ); SetSkill( SkillName.Anatomy, 45.2, 50.9 ); SetSkill( SkillName.Swords, 50.0, 60.0); SetSkill(SkillName.Stealth, 120.0, 180.0); SetSkill(SkillName.Hiding, 120.0, 180.0); Fame = 2500; Karma = -2500; VirtualArmor = 0; Item hair = new Item( Utility.RandomList( 0x203B, 0x2049, 0x2048, 0x204A ) ); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); Item beard = new Item( Utility.RandomList( 0x2040, 0x203E , 0x204C, 0x204B, 0x203F ) ); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem( beard ); PackGold( 70, 95 ); PackItem( new Bandage( 10 ) ); Item crossbow = new Crossbow(); EquipItem( crossbow ); switch ( Utility.Random( 3 ) ) { case 0: { Item fancyshirt = new FancyShirt(); fancyshirt.Hue = Utility.RandomNeutralHue(); EquipItem( fancyshirt ); break; } case 1: { Item doublet = new Doublet(); doublet.Hue = Utility.RandomNeutralHue(); EquipItem( doublet ); break; } case 2: { break; } } switch ( Utility.Random( 2 ) ) { case 0: { Item longpants = new LongPants(); longpants.Hue = Utility.RandomNeutralHue(); EquipItem( longpants ); break; } case 1: { Item shortpants = new ShortPants(); shortpants.Hue = Utility.RandomNeutralHue(); EquipItem( shortpants ); break; } } switch ( Utility.Random( 4 ) ) { case 0: { Item boots = new Boots(); boots.Hue = 0; EquipItem( boots ); break; } case 1: { Item shoes = new Shoes(); shoes.Hue = 1713; EquipItem( shoes ); break; } case 3: { Item thighboots = new ThighBoots(); thighboots.Hue = 0; EquipItem( thighboots ); break; } case 4: { break; } } switch ( Utility.Random( 3 ) ) { case 0: { Item Bandana = new Bandana(); Bandana.Hue = Utility.RandomBirdHue(); EquipItem( Bandana ); break; } case 1: { Item skullcap = new SkullCap(); skullcap.Hue = Utility.RandomBirdHue(); EquipItem( skullcap ); break; } case 3: { break; } } }
public UndeadSwordPirateSTR() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.175, 0.2) { Title = "the unrested pirate"; Body = 400; Team = 1; Kills = 10; Hue = Utility.RandomSkinHue(); SpeechHue=1153; this.Body = 0x190; this.Name = NameList.RandomName( "male" ); SetStr( 90, 100 ); SetDex( 85, 100 ); SetInt( 10, 20 ); SetSkill( SkillName.Archery, 95.0, 100.0 ); SetSkill( SkillName.MagicResist, 75.0, 100.0 ); SetSkill( SkillName.Tactics, 90.0, 100.0 ); SetSkill( SkillName.Healing, 75.0, 100.0 ); SetSkill( SkillName.Anatomy, 90.0, 100.0 ); SetSkill(SkillName.Swords, 95.0, 100.0); SetSkill(SkillName.Stealth, 120.0, 180.0); SetSkill(SkillName.Hiding, 120.0, 180.0); Fame = 4500; Karma = -4500; VirtualArmor = 0; Item hair = new Item( Utility.RandomList( 0x203B, 0x2049, 0x2048, 0x204A ) ); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; Item beard = new Item( Utility.RandomList( 0x2040, 0x203E , 0x204C, 0x204B, 0x203F ) ); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem( beard ); AddItem( hair ); PackGold( 70, 95 ); PackItem( new Bandage( 20 ) ); switch ( Utility.Random( 2 ) ) { case 0: { Item scimitar = new Scimitar(); EquipItem( scimitar ); break; } case 1: { Item cutlass = new Cutlass(); EquipItem( cutlass ); break; } } switch ( Utility.Random( 3 ) ) { case 0: { Item fancyshirt = new FancyShirt(); fancyshirt.Hue = Utility.RandomNeutralHue(); EquipItem( fancyshirt ); break; } case 1: { Item doublet = new Doublet(); doublet.Hue = Utility.RandomNeutralHue(); EquipItem( doublet ); break; } case 2: { break; } } switch ( Utility.Random( 2 ) ) { case 0: { Item longpants = new LongPants(); longpants.Hue = Utility.RandomNeutralHue(); EquipItem( longpants ); break; } case 1: { Item shortpants = new ShortPants(); shortpants.Hue = Utility.RandomNeutralHue(); EquipItem( shortpants ); break; } } switch ( Utility.Random( 4 ) ) { case 0: { Item boots = new Boots(); boots.Hue = 0; EquipItem( boots ); break; } case 1: { Item shoes = new Shoes(); shoes.Hue = 1713; EquipItem( shoes ); break; } case 3: { Item thighboots = new ThighBoots(); thighboots.Hue = 0; EquipItem( thighboots ); break; } case 4: { break; } } switch ( Utility.Random( 3 ) ) { case 0: { Item Bandana = new Bandana(); Bandana.Hue = Utility.RandomBirdHue(); EquipItem( Bandana ); break; } case 1: { Item skullcap = new SkullCap(); skullcap.Hue = Utility.RandomBirdHue(); EquipItem( skullcap ); break; } case 3: { break; } } }
public AmazonHealer() : base( AIType.AI_Healer, FightMode.Weakest, 10, 1, 0.175, 0.3) { Name = "a Amazon Healer"; Title= ", Defiance Amazon Clan"; Hue= 33788; Body = 401; SpeechHue= 2305; BaseSoundID = 0; Team = 0; new Horse().Rider = this; SetStr( 185, 215); SetDex( 130, 140); SetInt( 300, 320); SetHits(185, 300); SetSkill( SkillName.Magery, 100.7, 100.4); SetSkill( SkillName.Tactics, 100.7, 100.4); SetSkill( SkillName.MagicResist, 191.4, 191.7); SetSkill( SkillName.Swords, 110.4, 110.7); SetSkill( SkillName.Anatomy, 110.4, 110.7); SetSkill( SkillName.Parry, 75.1, 100.1); Fame=15000; Karma=-15000; VirtualArmor= 75; Item Spellbook = new Spellbook(); Spellbook.Movable=false; Spellbook.Hue=1157; Spellbook.Name="Amazon Healing Guide"; EquipItem( Spellbook ); //Item Buckler = new Buckler(); //Buckler.Movable=false; //Buckler.Hue=1253; //EquipItem( Buckler ); Item Bandana = new Bandana(); Bandana.Movable=false; Bandana.Hue=0; EquipItem( Bandana ); Item Doublet = new Doublet(); Doublet.Movable=false; Doublet.Hue=1150; Doublet.Name="Amazon Clothing"; EquipItem( Doublet ); Item LeatherArms = new LeatherArms(); LeatherArms.Movable=false; LeatherArms.Hue=0; EquipItem( LeatherArms ); Item LeatherSkirt = new LeatherSkirt(); LeatherSkirt.Movable=false; LeatherSkirt.Hue=0; EquipItem( LeatherSkirt ); Item Boots = new Boots(); Boots.Movable=false; Boots.Hue=1175; EquipItem( Boots ); //Item BodySash = new BodySash(); //BodySash.Movable=false; //BodySash.Hue=4; //BodySash.Name="AmazonHealer Clan Member."; //EquipItem( BodySash ); Item hair = new Item( 0x203D); hair.Hue = 0; hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); PackGold( 250, 800); PackMagicItems( 0, 7); PackMagicItems( 0, 7); PackMagicItems( 0, 7); PackMagicItems( 0, 7); switch ( Utility.Random( 15 )) { case 0: PackItem( new HoodedShroudOfShadows() ); break; } }
public Commoner5() : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.8, 3.0) { SetStr( 10, 30 ); SetDex( 10, 30 ); SetInt( 10, 30 ); Fame = 50; Karma = 50; SetSkill( SkillName.Fishing, 60.0, 70.0 ); SetSkill( SkillName.Cooking, 60.0, 70.0 ); SpeechHue = Utility.RandomDyedHue(); Title = string.Empty;//Commoner5.Titles[Utility.Random( 0, Titles.Length )]; Hue = Utility.RandomSkinHue(); if ( this.Female = Utility.RandomBool() ) { this.Body = 0x191; this.Name = NameList.RandomName( "female" ); Item hair = new Item( Utility.RandomList( 0x203B, 0x203C, 0x203D, 0x2045, 0x204A, 0x2046 , 0x2049 ) ); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); Item hat = null; switch ( Utility.Random( 5 ) )//4 hats, one empty, for no hat { case 0: hat = new FloppyHat( Utility.RandomNeutralHue() ); break; case 1: hat = new FeatheredHat( Utility.RandomNeutralHue() ); break; case 2: hat = new Bonnet(); break; case 3: hat = new Cap( Utility.RandomNeutralHue() ); break; } AddItem( hat ); Item pants = null; switch ( Utility.Random( 3 ) ) { case 0: pants = new ShortPants( GetRandomHue() ); break; case 1: pants = new LongPants( GetRandomHue() ); break; case 2: pants = new Skirt( GetRandomHue() ); break; } AddItem( pants ); Item shirt = null; switch ( Utility.Random( 7 ) ) { case 0: shirt = new Doublet( GetRandomHue() ); break; case 1: shirt = new Surcoat( GetRandomHue() ); break; case 2: shirt = new Tunic( GetRandomHue() ); break; case 3: shirt = new FancyDress( GetRandomHue() ); break; case 4: shirt = new PlainDress( GetRandomHue() ); break; case 5: shirt = new FancyShirt( GetRandomHue() ); break; case 6: shirt = new Shirt( GetRandomHue() ); break; } AddItem( shirt ); } else { this.Body = 0x190; this.Name = NameList.RandomName( "male" ); Item hair = new Item( Utility.RandomList( 0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2048 ) ); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); Item beard = new Item( Utility.RandomList( 0x0000, 0x203E, 0x203F, 0x2040, 0x2041, 0x2067, 0x2068, 0x2069 ) ); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem( beard ); Item hat = null; switch ( Utility.Random( 7 ) ) //6 hats, one empty, for no hat { case 0: hat = new SkullCap( GetRandomHue() ); break; case 1: hat = new Bandana( GetRandomHue() ); break; case 2: hat = new WideBrimHat(); break; case 3: hat = new TallStrawHat( Utility.RandomNeutralHue() ); break; case 4: hat = new StrawHat( Utility.RandomNeutralHue() ); break; case 5: hat = new TricorneHat( Utility.RandomNeutralHue() ); break; } AddItem( hat ); Item pants = null; switch ( Utility.Random( 2 ) ) { case 0: pants = new ShortPants( GetRandomHue() ); break; case 1: pants = new LongPants( GetRandomHue() ); break; } AddItem( pants ); Item shirt = null; switch ( Utility.Random( 5 ) ) { case 0: shirt = new Doublet( GetRandomHue() ); break; case 1: shirt = new Surcoat( GetRandomHue() ); break; case 2: shirt = new Tunic( GetRandomHue() ); break; case 3: shirt = new FancyShirt( GetRandomHue() ); break; case 4: shirt = new Shirt( GetRandomHue() ); break; } AddItem( shirt ); } Item feet = null; switch ( Utility.Random( 3 ) ) { case 0: feet = new Boots( Utility.RandomNeutralHue() ); break; case 1: feet = new Shoes( Utility.RandomNeutralHue() ); break; case 2: feet = new Sandals( Utility.RandomNeutralHue() ); break; } AddItem( feet ); Container pack = new Backpack(); pack.DropItem( new Gold( 0, 50 ) ); pack.Movable = false; AddItem( pack ); }
public DrowAssassin() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); Title = "Drow Assasino"; Hue = 902; if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); } else { Body = 0x190; Name = NameList.RandomName("male"); } SetStr(186, 800); SetDex(81, 145); SetInt(61, 75); SetHits(222, 408); SetDamage(33, 48); SetSkill(SkillName.Fencing, 86.5, 177.5); SetSkill(SkillName.MagicResist, 95.5, 127.5); SetSkill(SkillName.Swords, 85.5, 177.5); SetSkill(SkillName.Tactics, 85.5, 177.5); SetSkill(SkillName.Wrestling, 95.5, 177.5); Fame = 1000; Karma = -1000; Item bodySash = new BodySash(); bodySash.Hue = 422; AddItem(bodySash); Item bandana = new Bandana(); bandana.Hue = 422; AddItem(bandana); //AddItem(new Piwafwi()); AddItem(new Boots()); //AddItem(new DrowRingmailGloves()); //AddItem(new DrowChainChest()); //AddItem(new DrowChainLegs()); switch (Utility.Random(5)) { case 0: AddItem(new Longsword()); break; case 1: AddItem(new Kryss()); break; case 2: AddItem(new Katana()); break; case 3: AddItem(new Dagger()); break; case 4: AddItem(new Spear()); break; } Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = 1153; hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); PackGold(500, 2500); PackArmor(2, 5, 0.8); PackWeapon(3, 5, 0.8); PackSlayer(); }
public override void InitOutfit() { Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = Utility.RandomNondyedHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new FancyShirt()); // all brigands wear a bandana, but won't drop this one // see OnBeforeDeath for the bandana they do drop Bandana bandana = new Bandana(); bandana.LootType = LootType.Newbied; AddItem(bandana); }
public PirateCaptain(BaseGalleon galleon) : base(galleon, AIType.AI_Melee, FightMode.Weakest, 25, 1, .2, .4) { PickRandomName(); if(m_PirateName > 0 && (m_PirateName == 1116679 || m_PirateName == 1116680 || m_PirateName == 1116683)) Female = true; SpeechHue = Utility.RandomDyedHue(); Title = "the dread pirate"; Hue = Race.RandomSkinHue(); Body = Female ? 0x191 : 0x190; AddItem(new ShortPants(Utility.RandomNeutralHue())); SetStr(500, 750); SetDex(125, 175); SetInt(61, 75); SetHits(4500, 5000); SetDamage(23, 35); SetSkill(SkillName.Fencing, 115.0, 120.0); SetSkill(SkillName.Macing, 115.0, 120.0); SetSkill(SkillName.MagicResist, 115.0, 120.0); SetSkill(SkillName.Swords, 115.0, 120.0); SetSkill(SkillName.Tactics, 115.0, 120.0); SetSkill(SkillName.Wrestling, 115.0, 120.0); SetSkill(SkillName.Anatomy, 115.0, 120.0); Item hat; Item fancyShirt = new FancyShirt(); Item shirt = new Shirt(GetRandomShirtHue()); shirt.Layer = Layer.OuterTorso; if (Utility.RandomBool()) hat = new Bandana(); else hat = new TricorneHat(); hat.Hue = Utility.RandomNeutralHue(); AddItem(new Boots()); AddItem(shirt); AddItem(fancyShirt); AddItem(hat); AddItem(new Cloak(Utility.RandomNeutralHue())); switch (Utility.Random(7)) { case 0: AddItem(new Longsword()); break; case 1: AddItem(new Cutlass()); break; case 2: AddItem(new Broadsword()); break; case 5: AddItem(new Dagger()); break; } Utility.AssignRandomHair(this); Fame = 22000; Karma = -22000; }
public Gambler() : base( AIType.AI_Melee, FightMode.None, 10, 1, 0.8, 3.0 ) { SetStr( 10, 30 ); SetDex( 10, 30 ); SetInt( 10, 30 ); Fame = 50; Karma = 50; SpeechHue = Utility.RandomDyedHue(); Title = "the gambler"; Hue = Utility.RandomSkinHue(); Blessed = true; NameHue = 0x35; if ( this.Female = Utility.RandomBool() ) { this.Body = 0x191; this.Name = NameList.RandomName( "female" ); Item hair = new Item( Utility.RandomList( 0x203B, 0x203C, 0x203D, 0x2045, 0x204A, 0x2046 , 0x2049 ) ); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); Item hat = null; switch ( Utility.Random( 5 ) ) { case 0: hat = new FloppyHat( Utility.RandomNeutralHue() ); break; case 1: hat = new FeatheredHat( Utility.RandomNeutralHue() ); break; case 2: hat = new Bonnet(); break; case 3: hat = new Cap( Utility.RandomNeutralHue() ); break; } AddItem( hat ); } else { this.Body = 0x190; this.Name = NameList.RandomName( "male" ); Item hair = new Item( Utility.RandomList( 0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2048 ) ); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); Item beard = new Item( Utility.RandomList( 0x0000, 0x203E, 0x203F, 0x2040, 0x2041, 0x2067, 0x2068, 0x2069 ) ); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem( beard ); Item hat = null; switch ( Utility.Random( 7 ) ) { case 0: hat = new SkullCap( GetRandomHue() ); break; case 1: hat = new Bandana( GetRandomHue() ); break; case 2: hat = new WideBrimHat(); break; case 3: hat = new TallStrawHat( Utility.RandomNeutralHue() ); break; case 4: hat = new StrawHat( Utility.RandomNeutralHue() ); break; case 5: hat = new TricorneHat( Utility.RandomNeutralHue() ); break; } AddItem( hat ); } AddItem( new LongPants( GetRandomHue() ) ); AddItem( new FancyShirt( GetRandomHue() ) ); AddItem( new Boots( Utility.RandomNeutralHue() ) ); AddItem( new Cloak( GetRandomHue() ) ); AddItem( new BodySash( GetRandomHue() ) ); Container pack = new Backpack(); pack.DropItem( new Gold( 5, 500 ) ); pack.Movable = false; pack.Visible = false; AddItem( pack ); //reset stats for ( int i = 0; i <= 5; ++i ) gamestats[i]=0; }
/// <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 TownChestClothier() : base(0xE43) { Name = "a metal chest -5-"; Movable = true; Weight = 1000.0; Hue = 83; TrapPower = 0; Locked = true; RequiredSkill = 5; LockLevel = 5; MaxLockLevel = 10; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(1, 25))); } // Supplies if (Utility.RandomDouble() < 0.20) { DropItem(new Cotton(Utility.Random(25, 50))); } if (Utility.RandomDouble() < 0.20) { DropItem(new Wool(Utility.Random(25, 50))); } if (Utility.RandomDouble() < 0.15) { DropItem(new DarkYarn(Utility.Random(25, 50))); } if (Utility.RandomDouble() < 0.15) { DropItem(new LightYarn(Utility.Random(25, 50))); } if (Utility.RandomDouble() < 0.15) { DropItem(new LightYarnUnraveled(Utility.Random(25, 50))); } if (Utility.RandomDouble() < 0.15) { DropItem(new SpoolOfThread(Utility.Random(25, 50))); } if (Utility.RandomDouble() < 0.20) { DropItem(new BoltOfCloth(Utility.Random(20, 45))); } if (Utility.RandomDouble() < 0.10) { DropItem(new Dyes()); } if (Utility.RandomDouble() < 0.25) { DropItem(new Leather(Utility.Random(15, 35))); } if (Utility.RandomDouble() < 0.15) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new Bandana(); break; case 1: hat = new Bonnet(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new FloppyHat(); break; default: hat = new TricorneHat(); break; } BaseRunicTool.ApplyAttributesTo(hat, 3, 15, 20); DropItem(hat); } if (Utility.RandomDouble() < 0.15) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 15, 20); DropItem(clothing); } }
public Gypsy() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8) { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the gypsy"; Name = NameList.RandomName( Female ? "female" : "male" ); Hue = Utility.RandomSkinHue(); SetStr( 41, 55 ); SetDex( 51, 65 ); SetInt( 61, 75 ); Karma = Utility.RandomMinMax( 13, -45 ); SetSkill( SkillName.Tactics, 35, 57.5 ); SetSkill( SkillName.MagicResist, 35, 57.5 ); SetSkill( SkillName.Parry, 35, 57.5 ); SetSkill( SkillName.Swords, 15, 37.5 ); SetSkill( SkillName.Macing, 15, 37.5 ); SetSkill( SkillName.Fencing, 15, 37.5 ); SetSkill( SkillName.Wrestling, 15, 37.5 ); SetSkill( SkillName.ItemID, 45, 67.5 ); SetSkill( SkillName.Hiding, 45, 67.5 ); SetSkill( SkillName.Stealing, 45, 67.5 ); SetSkill( SkillName.Snooping, 45, 67.5 ); SetSkill( SkillName.Lockpicking, 45, 67.5 ); SetSkill( SkillName.Camping, 45, 67.5 ); SetSkill( SkillName.Begging, 45, 67.5 ); Item item = null; if ( !Female ) { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair( item.Hue ); item = new Shirt(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new LongPants(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new Bandana(); item.Hue = Utility.RandomBlueHue(); AddItem( item ); switch ( Utility.Random( 4 ) ) { case 0: item = new Boots(); break; case 1: item = new ThighBoots(); break; case 2: item = new Shoes(); break; case 3: default: item = new Sandals(); break; } AddItem( item ); PackGold( 15, 100 ); } else { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = new Shirt(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new Skirt(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new Bandana(); item.Hue = Utility.RandomBlueHue(); AddItem( item ); switch ( Utility.Random( 4 ) ) { case 0: item = new Boots(); break; case 1: item = new ThighBoots(); break; case 2: item = new Shoes(); break; case 3: default: item = new Sandals(); break; } AddItem( item ); PackGold( 15, 100 ); } }
public Pirate() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8) { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the pirate"; Name = NameList.RandomName( Female ? "female" : "male" ); Hue = Utility.RandomSkinHue(); SetStr( 86, 100 ); SetDex( 86, 100 ); SetInt( 71, 85 ); Karma = 2; SetSkill( SkillName.Tactics, 65, 87.5 ); SetSkill( SkillName.MagicResist, 65, 87.5 ); SetSkill( SkillName.Parry, 65, 87.5 ); SetSkill( SkillName.Swords, 55, 77.5 ); SetSkill( SkillName.Macing, 25, 47.5 ); SetSkill( SkillName.Fencing, 25, 47.5 ); SetSkill( SkillName.Wrestling, 45, 67.5 ); Item item = null; if ( !Female ) { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair( item.Hue ); item = new Shirt(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new ShortPants(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new Cutlass(); AddItem( item ); if ( Utility.RandomBool() ) { item = new Bandana(); } else { item = new SkullCap(); } item.Hue = Utility.RandomRedHue(); AddItem( item ); item = new ThighBoots(); item.Hue = Utility.RandomNeutralHue(); AddItem( item ); PackGold( 15, 100 ); } else { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = new Shirt(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new ShortPants(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new Cutlass(); AddItem( item ); if ( Utility.RandomBool() ) { item = new Bandana(); } else { item = new SkullCap(); } item.Hue = Utility.RandomRedHue(); AddItem( item ); item = new ThighBoots(); item.Hue = Utility.RandomNeutralHue(); AddItem( item ); PackGold( 15, 100 ); } }