private void InitContents( BarrelType type ) { Item item = null; byte count = (byte)Utility.RandomMinMax( 10, 30 ); for( byte i = 0; i < count; i++ ) { switch( type ) { default: case BarrelType.Arrows: item = new Arrow( Utility.RandomMinMax( 2, 6 ) ); break; case BarrelType.Bolts: item = new Bolt( Utility.RandomMinMax( 2, 6 ) ); break; case BarrelType.Farming: { if( i > 3 ) return; switch( Utility.Random( 3 ) ) { case 0: item = new Shovel(); break; case 1: item = new Scythe(); break; case 2: item = new Pitchfork(); break; } break; } case BarrelType.LargeMining: { if( i > 5 ) return; switch( Utility.Random( 5 ) ) { case 0: item = new Pitchfork(); break; case 1: case 2: item = new Shovel(); break; case 3: case 4: item = new Pickaxe(); break; } break; } case BarrelType.LargeWeapon1: case BarrelType.LargeWeapon2: case BarrelType.LargeWeapon3: { if( i > 6 ) return; switch( Utility.Random( 6 ) ) { case 0: item = new Spear(); break; case 1: item = new Halberd(); break; case 2: item = new Axe(); break; case 3: item = new ThinLongsword(); break; case 4: item = new WarAxe(); break; case 5: item = new VikingSword(); break; } break; } case BarrelType.Mining: { if( i > 3 ) return; item = new Pickaxe(); break; } case BarrelType.Spears: { if( i > 4 ) return; item = new Spear(); break; } case BarrelType.Weapons: { if( i > 3 ) return; switch( Utility.Random( 3 ) ) { case 0: item = new WarAxe(); break; case 1: item = new WarMace(); break; case 2: item = new Maul(); break; } break; } } if( item != null ) DropItem( item ); } }
public TheCommodore() { Name = "The Commodore"; Title = "the Grandmaster of Funk"; Body = 0x190; Hue = Utility.RandomSkinHue(); Blessed = true; Boots b = new Boots(); b.Hue = 1; AddItem(b); LongPants lp = new LongPants(); lp.Hue = 292; AddItem(lp); FancyShirt fs = new FancyShirt(); fs.Hue = 1153; AddItem(fs); Pitchfork pf = new Pitchfork(); AddItem(pf); AddItem(new LongHair(1337)); }
public override void OnDeath(Container c) { base.OnDeath(c); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { BaseWeapon fork = new Pitchfork(); fork.MinDamage = fork.MinDamage + 4; fork.MaxDamage = fork.MaxDamage + 8; fork.Attributes.BonusHits = 50; fork.AosElementDamages.Fire = 100; fork.Hue = 0x4EC; fork.Name = "fire salamander trident"; c.DropItem(fork); } } }
public Tritun() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "a tritun"; Body = 690; BaseSoundID = 0x553; SetStr(116, 135); SetDex(106, 125); SetInt(71, 85); SetDamage(23, 27); SetDamageType(ResistanceType.Physical, 100); SetSkill(SkillName.Fencing, 60.0, 82.5); SetSkill(SkillName.Macing, 60.0, 82.5); SetSkill(SkillName.Poisoning, 60.0, 82.5); SetSkill(SkillName.MagicResist, 57.5, 80.0); SetSkill(SkillName.Swords, 60.0, 82.5); SetSkill(SkillName.Tactics, 60.0, 82.5); Fame = 1100; Karma = -1100; VirtualArmor = 20; Pitchfork wep = new Pitchfork(); wep.Hue = 0x499; wep.Name = "poseidon trident"; wep.MinDamage = wep.MinDamage + 3; wep.MaxDamage = wep.MaxDamage + 5; PackItem(wep); }
public override void InitOutfit() { Name = "Uncle John"; Title = "the farming fool"; Body = 400; Female = false; Race = Race.Human; Hue = 0x83F5; HairItemID = 8251; HairHue = 1337; FacialHairItemID = 0; FacialHairHue = 0; Boots b = new Boots(); b.Hue = 1; AddItem(b); LongPants lp = new LongPants(); lp.Hue = 292; AddItem(lp); FancyShirt fs = new FancyShirt(); fs.Hue = 1153; AddItem(fs); Pitchfork pf = new Pitchfork(); AddItem(pf); }
public UncleJohn() { Name = "Uncle John"; Title = "the farming fool"; Body = 0x190; Hue = Utility.RandomSkinHue(); Boots b = new Boots(); b.Hue = 1; AddItem(b); LongPants lp = new LongPants(); lp.Hue = 292; AddItem(lp); FancyShirt fs = new FancyShirt(); fs.Hue = 1153; AddItem(fs); Pitchfork pf = new Pitchfork(); AddItem(pf); AddItem(new LongHair(1337)); }
public Gastin() { Name = "Gastin"; Title = "the Crazed Farmer"; Body = 0x190; Hue = Utility.RandomSkinHue(); Blessed = true; Boots b = new Boots(); b.Hue = 1; AddItem(b); LongPants lp = new LongPants(); lp.Hue = 292; AddItem(lp); FancyShirt fs = new FancyShirt(); fs.Hue = 1153; AddItem(fs); Pitchfork pf = new Pitchfork(); AddItem(pf); AddItem(new LongHair(1337)); }
protected override void Awake() { mUnitType = UnitType.Peasant; base.Awake(); this.InitializeStats(); mMeleeWeapon = new Pitchfork(mLevel); mCurrentWeapon = mMeleeWeapon; }
protected override void Awake() { mUnitType = UnitType.Peasant; base.Awake(); this.InitializeStats(); mMeleeWeapon = new Pitchfork (mLevel); mCurrentWeapon = mMeleeWeapon; }
void Start() { mWeapons = new SortedList(); Weapon pitchfork = new Pitchfork(); mWeapons.Add (pitchfork.Range, pitchfork); mCurrentWeapon = pitchfork; mHealth = mDefaultHealth; mPreviousHealth = mHealth; mSprites = null; }
public FarmerJones() { Name = "Jones"; Title = "the Farmer"; Body = 0x190; CantWalk = true; Hue = Utility.RandomSkinHue(); Item Boots = new Boots(); Boots.Hue = 2829; Boots.Name = "Non-Leather Boots"; Boots.Movable = false; AddItem(Boots); Item FancyShirt = new FancyShirt(); FancyShirt.Hue = 2829; FancyShirt.Name = "Shirt"; FancyShirt.Movable = false; AddItem(FancyShirt); Item LongPants = new LongPants(); LongPants.Hue = 847; LongPants.Name = "Pants"; LongPants.Movable = false; AddItem(LongPants); Item Pitchfork = new Pitchfork(); //Cloak.Hue = 1267; Pitchfork.Name = "Farm Tool"; Pitchfork.Movable = false; AddItem(Pitchfork); int hairHue = 1814; switch (Utility.Random(1)) { case 0: AddItem(new PonyTail(hairHue)); break; case 1: AddItem(new Goatee(hairHue)); break; } Blessed = true; }
public override void OnDeath(Container c) { base.OnDeath(c); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 4) == 1) { int mod = 0; if (this.Name == "Scarthis") { mod = Utility.RandomMinMax(5, 10); } BaseWeapon axe = new Pitchfork(); axe.AccuracyLevel = WeaponAccuracyLevel.Supremely; axe.MinDamage = axe.MinDamage + 5 + mod; axe.MaxDamage = axe.MaxDamage + 10 + mod; axe.DurabilityLevel = WeaponDurabilityLevel.Indestructible; axe.AosElementDamages.Poison = 25; axe.Hue = 0x491; axe.Name = "sleestax trident"; if (this.Title == "the silisk") { axe.Name = "silisk trident"; } if (this.Name == "Scarthis") { axe.Name = "Trident of Scarthis"; } c.DropItem(axe); } } } }
public InternalBuyInfo() { Add(new GenericBuyInfo("Dagger", typeof(Dagger), Dagger.GetSBPurchaseValue(), 25, 0xF52, 0)); Add(new GenericBuyInfo("Kryss", typeof(Kryss), Kryss.GetSBPurchaseValue(), 25, 0x1401, 0)); Add(new GenericBuyInfo("War Fork", typeof(WarFork), WarFork.GetSBPurchaseValue(), 25, 0x1405, 0)); Add(new GenericBuyInfo("Short Spear", typeof(ShortSpear), ShortSpear.GetSBPurchaseValue(), 25, 0x1403, 0)); Add(new GenericBuyInfo("Pitchfork", typeof(Pitchfork), Pitchfork.GetSBPurchaseValue(), 25, 0xE87, 0)); Add(new GenericBuyInfo("Spear", typeof(Spear), Spear.GetSBPurchaseValue(), 25, 0xF62, 0)); Add(new GenericBuyInfo("Hammer Pick", typeof(HammerPick), HammerPick.GetSBPurchaseValue(), 25, 0x143D, 0)); Add(new GenericBuyInfo("War Axe", typeof(WarAxe), WarAxe.GetSBPurchaseValue(), 25, 0x13B0, 0)); Add(new GenericBuyInfo("Mace", typeof(Mace), Mace.GetSBPurchaseValue(), 25, 0xF5C, 0)); Add(new GenericBuyInfo("Maul", typeof(Maul), Maul.GetSBPurchaseValue(), 25, 0x143B, 0)); Add(new GenericBuyInfo("WarHammer", typeof(WarHammer), WarHammer.GetSBPurchaseValue(), 25, 0x1439, 0)); Add(new GenericBuyInfo("War Mace", typeof(WarMace), WarMace.GetSBPurchaseValue(), 25, 0x1407, 0)); Add(new GenericBuyInfo("Butcher Knife", typeof(ButcherKnife), ButcherKnife.GetSBPurchaseValue(), 25, 0x13F6, 0)); Add(new GenericBuyInfo("Skinning Knife", typeof(SkinningKnife), SkinningKnife.GetSBPurchaseValue(), 25, 0xEC4, 0)); Add(new GenericBuyInfo("Cleaver", typeof(Cleaver), Cleaver.GetSBPurchaseValue(), 25, 0xEC3, 0)); Add(new GenericBuyInfo("Cutlass", typeof(Cutlass), Cutlass.GetSBPurchaseValue(), 25, 0x1441, 0)); Add(new GenericBuyInfo("Katana", typeof(Katana), Katana.GetSBPurchaseValue(), 25, 0x13FF, 0)); Add(new GenericBuyInfo("Scimitar", typeof(Scimitar), Scimitar.GetSBPurchaseValue(), 25, 0x13B6, 0)); Add(new GenericBuyInfo("Broadsword", typeof(Broadsword), Broadsword.GetSBPurchaseValue(), 25, 0xF5E, 0)); Add(new GenericBuyInfo("Longsword", typeof(Longsword), Longsword.GetSBPurchaseValue(), 25, 0xF61, 0)); Add(new GenericBuyInfo("Viking Sword", typeof(VikingSword), VikingSword.GetSBPurchaseValue(), 25, 0x13B9, 0)); Add(new GenericBuyInfo("Axe", typeof(Axe), Axe.GetSBPurchaseValue(), 25, 0xF49, 0)); Add(new GenericBuyInfo("Battle Axe", typeof(BattleAxe), BattleAxe.GetSBPurchaseValue(), 25, 0xF47, 0)); Add(new GenericBuyInfo("Double Axe", typeof(DoubleAxe), DoubleAxe.GetSBPurchaseValue(), 25, 0xF4B, 0)); Add(new GenericBuyInfo("Executioner's Axe", typeof(ExecutionersAxe), ExecutionersAxe.GetSBPurchaseValue(), 25, 0xF45, 0)); Add(new GenericBuyInfo("Large Battle Axe", typeof(LargeBattleAxe), LargeBattleAxe.GetSBPurchaseValue(), 25, 0x13FB, 0)); Add(new GenericBuyInfo("Two-Handed Axe", typeof(TwoHandedAxe), TwoHandedAxe.GetSBPurchaseValue(), 25, 0x1443, 0)); Add(new GenericBuyInfo("Bardiche", typeof(Bardiche), Bardiche.GetSBPurchaseValue(), 25, 0xF4D, 0)); Add(new GenericBuyInfo("Halberd", typeof(Halberd), Halberd.GetSBPurchaseValue(), 25, 0x143E, 0)); Add(new GenericBuyInfo("Bow", typeof(Bow), Bow.GetSBPurchaseValue(), 25, 0x13B2, 0)); Add(new GenericBuyInfo("Crossbow", typeof(Crossbow), Crossbow.GetSBPurchaseValue(), 25, 0xF50, 0)); Add(new GenericBuyInfo("Heavy Crossbow", typeof(HeavyCrossbow), HeavyCrossbow.GetSBPurchaseValue(), 25, 0x13FD, 0)); }
public InternalSellInfo() { Add(typeof(Dagger), Dagger.GetSBSellValue()); Add(typeof(Kryss), Kryss.GetSBSellValue()); Add(typeof(WarFork), WarFork.GetSBSellValue()); Add(typeof(ShortSpear), ShortSpear.GetSBSellValue()); Add(typeof(Pitchfork), Pitchfork.GetSBSellValue()); Add(typeof(Spear), Spear.GetSBSellValue()); Add(typeof(HammerPick), HammerPick.GetSBSellValue()); Add(typeof(WarAxe), WarAxe.GetSBSellValue()); Add(typeof(Mace), Mace.GetSBSellValue()); Add(typeof(Maul), Maul.GetSBSellValue()); Add(typeof(WarHammer), WarHammer.GetSBSellValue()); Add(typeof(WarMace), WarMace.GetSBSellValue()); Add(typeof(ButcherKnife), ButcherKnife.GetSBSellValue()); Add(typeof(SkinningKnife), SkinningKnife.GetSBSellValue()); Add(typeof(Cleaver), Cleaver.GetSBSellValue()); Add(typeof(Cutlass), Cutlass.GetSBSellValue()); Add(typeof(Katana), Katana.GetSBSellValue()); Add(typeof(Scimitar), Scimitar.GetSBSellValue()); Add(typeof(Broadsword), Broadsword.GetSBSellValue()); Add(typeof(Longsword), Longsword.GetSBSellValue()); Add(typeof(VikingSword), VikingSword.GetSBSellValue()); Add(typeof(Axe), Axe.GetSBSellValue()); Add(typeof(BattleAxe), BattleAxe.GetSBSellValue()); Add(typeof(DoubleAxe), DoubleAxe.GetSBSellValue()); Add(typeof(ExecutionersAxe), ExecutionersAxe.GetSBSellValue()); Add(typeof(LargeBattleAxe), LargeBattleAxe.GetSBSellValue()); Add(typeof(TwoHandedAxe), TwoHandedAxe.GetSBSellValue()); Add(typeof(Bardiche), Bardiche.GetSBSellValue()); Add(typeof(Halberd), Halberd.GetSBSellValue()); Add(typeof(Bow), Bow.GetSBSellValue()); Add(typeof(Crossbow), Crossbow.GetSBSellValue()); Add(typeof(HeavyCrossbow), HeavyCrossbow.GetSBSellValue()); }
public Gastin() : base(AIType.AI_Animal, FightMode.None, 10, 1, 0.2, 0.4) { InitStats(100, 100, 25); Name = "Gastin"; Title = "the Crazed Farmer"; Body = 400; Female = false; Race = Race.Human; Hue = 33821; HairItemID = 8253; HairHue = 1337; FacialHairItemID = 0; FacialHairHue = 0; Blessed = true; Boots b = new Boots(); b.Hue = 1; AddItem(b); LongPants lp = new LongPants(); lp.Hue = 292; AddItem(lp); FancyShirt fs = new FancyShirt(); fs.Hue = 1153; AddItem(fs); Pitchfork pf = new Pitchfork(); AddItem(pf); }
public InternalBuyInfo() { //Tools Add(new GenericBuyInfo("Tongs", typeof(Tongs), Tongs.GetSBPurchaseValue(), 50, 0xFBB, 0)); Add(new GenericBuyInfo("Smith's Hammer", typeof(SmithHammer), SmithHammer.GetSBPurchaseValue(), 50, 0x13E3, 0)); //Armor Add(new GenericBuyInfo("Ringmail Helm", typeof(RingmailHelm), RingmailHelm.GetSBPurchaseValue(), 25, 5131, 0)); Add(new GenericBuyInfo("Ringmail Gorget", typeof(RingmailGorget), RingmailGorget.GetSBPurchaseValue(), 25, 5078, 1812)); Add(new GenericBuyInfo("Ringmail Arms", typeof(RingmailArms), RingmailArms.GetSBPurchaseValue(), 25, 0x13EE, 0)); Add(new GenericBuyInfo("Ringmail Gloves", typeof(RingmailGloves), RingmailGloves.GetSBPurchaseValue(), 25, 0x13eb, 0)); Add(new GenericBuyInfo("Ringmail Chest", typeof(RingmailChest), RingmailChest.GetSBPurchaseValue(), 25, 0x13ec, 0)); Add(new GenericBuyInfo("Ringmail Legs", typeof(RingmailLegs), RingmailLegs.GetSBPurchaseValue(), 25, 0x13F0, 0)); Add(new GenericBuyInfo("Chainmail Coif", typeof(ChainmailCoif), ChainmailCoif.GetSBPurchaseValue(), 25, 0x13BB, 0)); Add(new GenericBuyInfo("Chainmail Gorget", typeof(ChainmailGorget), ChainmailGorget.GetSBPurchaseValue(), 25, 5063, 2500)); Add(new GenericBuyInfo("Chainmail Arms", typeof(ChainmailArms), ChainmailArms.GetSBPurchaseValue(), 25, 5103, 2500)); Add(new GenericBuyInfo("Chainmail Gloves", typeof(ChainmailGloves), ChainmailGloves.GetSBPurchaseValue(), 25, 5106, 2500)); Add(new GenericBuyInfo("Chainmail Chest", typeof(ChainmailChest), ChainmailChest.GetSBPurchaseValue(), 25, 0x13BF, 0)); Add(new GenericBuyInfo("Chainmail Legs", typeof(ChainmailLegs), ChainmailLegs.GetSBPurchaseValue(), 25, 0x13BE, 0)); Add(new GenericBuyInfo("Platemail Helm", typeof(PlateHelm), PlateHelm.GetSBPurchaseValue(), 25, 0x1412, 0)); Add(new GenericBuyInfo("Platemail Gorget", typeof(PlateGorget), PlateGorget.GetSBPurchaseValue(), 25, 0x1413, 0)); Add(new GenericBuyInfo("Platemail Arms", typeof(PlateArms), PlateArms.GetSBPurchaseValue(), 25, 0x1410, 0)); Add(new GenericBuyInfo("Platemail Gloves", typeof(PlateGloves), PlateGloves.GetSBPurchaseValue(), 25, 0x1414, 0)); Add(new GenericBuyInfo("Platemail PlateChest", typeof(PlateChest), PlateChest.GetSBPurchaseValue(), 25, 0x1415, 0)); Add(new GenericBuyInfo("Female Plate Chest", typeof(FemalePlateChest), FemalePlateChest.GetSBPurchaseValue(), 25, 7173, 0)); Add(new GenericBuyInfo("Platemail Legs", typeof(PlateLegs), PlateLegs.GetSBPurchaseValue(), 25, 0x1411, 0)); Add(new GenericBuyInfo("Bascinet", typeof(Bascinet), Bascinet.GetSBPurchaseValue(), 25, 5132, 0)); Add(new GenericBuyInfo("Close Helm", typeof(CloseHelm), CloseHelm.GetSBPurchaseValue(), 25, 5129, 0)); Add(new GenericBuyInfo("Norse Helm", typeof(NorseHelm), NorseHelm.GetSBPurchaseValue(), 25, 5135, 0)); Add(new GenericBuyInfo("Buckler", typeof(Buckler), Buckler.GetSBPurchaseValue(), 25, 0x1B73, 0)); Add(new GenericBuyInfo("Metal Shield", typeof(MetalShield), MetalShield.GetSBPurchaseValue(), 25, 0x1B7B, 0)); Add(new GenericBuyInfo("Bronze Shield", typeof(BronzeShield), BronzeShield.GetSBPurchaseValue(), 25, 0x1B72, 0)); Add(new GenericBuyInfo("Metal Kite Shield", typeof(MetalKiteShield), MetalKiteShield.GetSBPurchaseValue(), 25, 0x1B74, 0)); Add(new GenericBuyInfo("Heater Shield", typeof(HeaterShield), HeaterShield.GetSBPurchaseValue(), 25, 0x1B76, 0)); //Weapons Add(new GenericBuyInfo("Dagger", typeof(Dagger), Dagger.GetSBPurchaseValue(), 25, 0xF52, 0)); Add(new GenericBuyInfo("Kryss", typeof(Kryss), Kryss.GetSBPurchaseValue(), 25, 0x1401, 0)); Add(new GenericBuyInfo("War Fork", typeof(WarFork), WarFork.GetSBPurchaseValue(), 25, 0x1405, 0)); Add(new GenericBuyInfo("Short Spear", typeof(ShortSpear), ShortSpear.GetSBPurchaseValue(), 25, 0x1403, 0)); Add(new GenericBuyInfo("Pitchfork", typeof(Pitchfork), Pitchfork.GetSBPurchaseValue(), 25, 0xE87, 0)); Add(new GenericBuyInfo("Spear", typeof(Spear), Spear.GetSBPurchaseValue(), 25, 0xF62, 0)); Add(new GenericBuyInfo("Hammer Pick", typeof(HammerPick), HammerPick.GetSBPurchaseValue(), 25, 0x143D, 0)); Add(new GenericBuyInfo("War Axe", typeof(WarAxe), WarAxe.GetSBPurchaseValue(), 25, 0x13B0, 0)); Add(new GenericBuyInfo("Mace", typeof(Mace), Mace.GetSBPurchaseValue(), 25, 0xF5C, 0)); Add(new GenericBuyInfo("Maul", typeof(Maul), Maul.GetSBPurchaseValue(), 25, 0x143B, 0)); Add(new GenericBuyInfo("WarHammer", typeof(WarHammer), WarHammer.GetSBPurchaseValue(), 25, 0x1439, 0)); Add(new GenericBuyInfo("War Mace", typeof(WarMace), WarMace.GetSBPurchaseValue(), 25, 0x1407, 0)); Add(new GenericBuyInfo("Butcher Knife", typeof(ButcherKnife), ButcherKnife.GetSBPurchaseValue(), 25, 0x13F6, 0)); Add(new GenericBuyInfo("Skinning Knife", typeof(SkinningKnife), SkinningKnife.GetSBPurchaseValue(), 25, 0xEC4, 0)); Add(new GenericBuyInfo("Cleaver", typeof(Cleaver), Cleaver.GetSBPurchaseValue(), 25, 0xEC3, 0)); Add(new GenericBuyInfo("Cutlass", typeof(Cutlass), Cutlass.GetSBPurchaseValue(), 25, 0x1441, 0)); Add(new GenericBuyInfo("Katana", typeof(Katana), Katana.GetSBPurchaseValue(), 25, 0x13FF, 0)); Add(new GenericBuyInfo("Scimitar", typeof(Scimitar), Scimitar.GetSBPurchaseValue(), 25, 0x13B6, 0)); Add(new GenericBuyInfo("Broadsword", typeof(Broadsword), Broadsword.GetSBPurchaseValue(), 25, 0xF5E, 0)); Add(new GenericBuyInfo("Longsword", typeof(Longsword), Longsword.GetSBPurchaseValue(), 25, 0xF61, 0)); Add(new GenericBuyInfo("Viking Sword", typeof(VikingSword), VikingSword.GetSBPurchaseValue(), 25, 0x13B9, 0)); Add(new GenericBuyInfo("Axe", typeof(Axe), Axe.GetSBPurchaseValue(), 25, 0xF49, 0)); Add(new GenericBuyInfo("Battle Axe", typeof(BattleAxe), BattleAxe.GetSBPurchaseValue(), 25, 0xF47, 0)); Add(new GenericBuyInfo("Double Axe", typeof(DoubleAxe), DoubleAxe.GetSBPurchaseValue(), 25, 0xF4B, 0)); Add(new GenericBuyInfo("Executioner's Axe", typeof(ExecutionersAxe), ExecutionersAxe.GetSBPurchaseValue(), 25, 0xF45, 0)); Add(new GenericBuyInfo("Large Battle Axe", typeof(LargeBattleAxe), LargeBattleAxe.GetSBPurchaseValue(), 25, 0x13FB, 0)); Add(new GenericBuyInfo("Two-Handed Axe", typeof(TwoHandedAxe), TwoHandedAxe.GetSBPurchaseValue(), 25, 0x1443, 0)); Add(new GenericBuyInfo("Bardiche", typeof(Bardiche), Bardiche.GetSBPurchaseValue(), 25, 0xF4D, 0)); Add(new GenericBuyInfo("Halberd", typeof(Halberd), Halberd.GetSBPurchaseValue(), 25, 0x143E, 0)); }
public Urk() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { BaseSoundID = 0x45A; Hue = 0x430; Body = 0x190; Name = NameList.RandomName("urk"); HairItemID = 0; FacialHairItemID = 0; Item helm = new WornHumanDeco(); helm.Name = "urkish face"; helm.ItemID = 0x141B; helm.Hue = 0x430; helm.Layer = Layer.Helm; AddItem(helm); if (Utility.RandomMinMax(1, 2) == 1) { LeatherArms ratarms = new LeatherArms(); ratarms.Name = "urkish rat skin arms"; ratarms.PoisonBonus = 6; ratarms.Hue = 0x972; AddItem(ratarms); LeatherChest ratchest = new LeatherChest(); ratchest.Name = "urkish rat skin tunic"; ratchest.PoisonBonus = 8; ratchest.Hue = 0x972; AddItem(ratchest); LeatherGloves ratgloves = new LeatherGloves(); ratgloves.Name = "urkish rat skin gloves"; ratgloves.PoisonBonus = 5; ratgloves.Hue = 0x972; AddItem(ratgloves); LeatherGorget ratgorget = new LeatherGorget(); ratgorget.Name = "urkish rat skin gorget"; ratgorget.PoisonBonus = 4; ratgorget.Hue = 0x972; AddItem(ratgorget); LeatherLegs ratlegs = new LeatherLegs(); ratlegs.Name = "urkish rat skin leggings"; ratlegs.PoisonBonus = 7; ratlegs.Hue = 0x972; AddItem(ratlegs); } else { BoneChest bonechest = new BoneChest(); bonechest.Name = "urkish chest piece"; bonechest.PoisonBonus = 8; bonechest.Hue = 0x972; AddItem(bonechest); BoneArms bonearms = new BoneArms(); bonearms.Name = "urkish bracers"; bonearms.PoisonBonus = 6; bonearms.Hue = 0x972; AddItem(bonearms); BoneLegs bonelegs = new BoneLegs(); bonelegs.Name = "urkish leggings"; bonelegs.PoisonBonus = 7; bonelegs.Hue = 0x972; AddItem(bonelegs); BoneGloves bonegloves = new BoneGloves(); bonegloves.Name = "urkish gauntlets"; bonegloves.PoisonBonus = 5; bonegloves.Hue = 0x972; AddItem(bonegloves); } Item weapon = new BattleAxe(); switch (Utility.Random(28)) { case 0: weapon = new BattleAxe(); weapon.Name = "battle axe"; break; case 1: weapon = new VikingSword(); weapon.Name = "great sword"; break; case 2: weapon = new Halberd(); weapon.Name = "halberd"; break; case 3: weapon = new DoubleAxe(); weapon.Name = "double axe"; break; case 4: weapon = new ExecutionersAxe(); weapon.Name = "great axe"; break; case 5: weapon = new WarAxe(); weapon.Name = "war axe"; break; case 6: weapon = new TwoHandedAxe(); weapon.Name = "two handed axe"; break; case 7: weapon = new Cutlass(); weapon.Name = "cutlass"; break; case 8: weapon = new Katana(); weapon.Name = "katana"; break; case 9: weapon = new Kryss(); weapon.Name = "kryss"; break; case 10: weapon = new Broadsword(); weapon.Name = "broadsword"; break; case 11: weapon = new Longsword(); weapon.Name = "longsword"; break; case 12: weapon = new ThinLongsword(); weapon.Name = "longsword"; break; case 13: weapon = new Scimitar(); weapon.Name = "scimitar"; break; case 14: weapon = new BoneHarvester(); weapon.Name = "sickle"; break; case 15: weapon = new CrescentBlade(); weapon.Name = "crescent blade"; break; case 16: weapon = new DoubleBladedStaff(); weapon.Name = "double bladed staff"; break; case 17: weapon = new Pike(); weapon.Name = "pike"; break; case 18: weapon = new Scythe(); weapon.Name = "scythe"; break; case 19: weapon = new Pitchfork(); weapon.Name = "trident"; break; case 20: weapon = new ShortSpear(); weapon.Name = "short spear"; break; case 21: weapon = new Spear(); weapon.Name = "spear"; break; case 22: weapon = new Club(); weapon.Name = "club"; break; case 23: weapon = new HammerPick(); weapon.Name = "hammer pick"; break; case 24: weapon = new Mace(); weapon.Name = "mace"; break; case 25: weapon = new Maul(); weapon.Name = "maul"; break; case 26: weapon = new WarHammer(); weapon.Name = "war hammer"; break; case 27: weapon = new WarMace(); weapon.Name = "war mace"; break; } weapon.Name = "urkish " + weapon.Name; weapon.Hue = 0x7D1; ((BaseWeapon)weapon).AosElementDamages.Physical = 60; ((BaseWeapon)weapon).AosElementDamages.Poison = 40; AddItem(weapon); switch (Utility.RandomMinMax(0, 5)) { case 0: Title = "the urk warrior"; break; case 1: Title = "the urk savage"; break; case 2: Title = "the urk barbarian"; break; case 3: Title = "the urk fighter"; break; case 4: Title = "the urk gladiator"; break; case 5: Title = "the urk berserker"; break; } SetStr(196, 250); SetDex(76, 95); SetInt(36, 60); SetHits(118, 150); SetDamage(8, 18); SetDamageType(ResistanceType.Physical, 60); SetDamageType(ResistanceType.Poison, 40); SetResistance(ResistanceType.Physical, 35, 45); SetResistance(ResistanceType.Fire, 20, 30); SetResistance(ResistanceType.Cold, 50, 60); SetResistance(ResistanceType.Poison, 60, 80); SetResistance(ResistanceType.Energy, 30, 40); SetSkill(SkillName.MagicResist, 65.1, 80.0); SetSkill(SkillName.Tactics, 85.1, 100.0); SetSkill(SkillName.Macing, 85.1, 95.0); SetSkill(SkillName.Swords, 85.1, 95.0); SetSkill(SkillName.Fencing, 85.1, 95.0); SetSkill(SkillName.Wrestling, 85.1, 95.0); Fame = 3000; Karma = -3000; VirtualArmor = 40; }
private void InitContents(BarrelType type) { Item item = null; byte count = (byte)Utility.RandomMinMax(10, 30); for (byte i = 0; i < count; i++) { switch (type) { default: case BarrelType.Arrows: item = new Arrow(Utility.RandomMinMax(2, 6)); break; case BarrelType.Bolts: item = new Bolt(Utility.RandomMinMax(2, 6)); break; case BarrelType.Farming: { if (i > 3) { return; } switch (Utility.Random(3)) { case 0: item = new Shovel(); break; case 1: item = new Scythe(); break; case 2: item = new Pitchfork(); break; } break; } case BarrelType.LargeMining: { if (i > 5) { return; } switch (Utility.Random(5)) { case 0: item = new Pitchfork(); break; case 1: case 2: item = new Shovel(); break; case 3: case 4: item = new Pickaxe(); break; } break; } case BarrelType.LargeWeapon1: case BarrelType.LargeWeapon2: case BarrelType.LargeWeapon3: { if (i > 6) { return; } switch (Utility.Random(6)) { case 0: item = new Spear(); break; case 1: item = new Halberd(); break; case 2: item = new Axe(); break; case 3: item = new ThinLongsword(); break; case 4: item = new WarAxe(); break; case 5: item = new VikingSword(); break; } break; } case BarrelType.Mining: { if (i > 3) { return; } item = new Pickaxe(); break; } case BarrelType.Spears: { if (i > 4) { return; } item = new Spear(); break; } case BarrelType.Weapons: { if (i > 3) { return; } switch (Utility.Random(3)) { case 0: item = new WarAxe(); break; case 1: item = new WarMace(); break; case 2: item = new Maul(); break; } break; } } if (item != null) { DropItem(item); } } }
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons { Mobile from = state.Mobile; PlayerMobile pm = from as PlayerMobile; PlayerModule module = pm.PlayerModule; m_cost = 50; //MOD COST OF WEAPON HERE!! Item wep = from.FindItemOnLayer(Layer.FirstValid); Item weps = from.FindItemOnLayer(Layer.TwoHanded); Container pack = from.Backpack; if (wep != null) { pack.TryDropItem(from, wep, false); } if (weps != null) { pack.TryDropItem(from, weps, false); } switch (info.ButtonID) { case 0: //Cancel { from.SendMessage("You decide against spending your skill points."); //from.SendGump( new LevelGump( from ) ); break; } case 1: //Katana { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Katana kat = new Katana(); (( Item )kat).Name = "Katana [Level Item]"; kat.Identified = true; //Prevents others from being used in the upgrading! kat.LootType = LootType.Blessed; from.EquipItem(kat); } from.SendGump(new WepUpgradeGump(from)); break; } case 2: //Broad Sword { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Broadsword bs = new Broadsword(); bs.Identified = true; bs.Name = "Broadsword"; bs.LootType = LootType.Blessed; from.EquipItem(bs); from.SendMessage(102, "You chose a Broadsword"); } from.SendGump(new WepUpgradeGump(from)); break; } case 3: //Scimitar { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Scimitar sc = new Scimitar(); sc.Identified = true; sc.Name = "Scimitar"; sc.LootType = LootType.Blessed; from.EquipItem(sc); from.SendMessage(102, "You chose a Scimitar"); } from.SendGump(new WepUpgradeGump(from)); break; } case 4: //Viking sword { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; VikingSword vs = new VikingSword(); vs.Identified = true; vs.Name = "Vikingsword"; vs.LootType = LootType.Blessed; from.EquipItem(vs); from.SendMessage(102, "You chose a Viking Sword"); } from.SendGump(new WepUpgradeGump(from)); break; } case 5: //Halberd { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Halberd hb = new Halberd(); hb.Identified = true; hb.Name = "Halberd"; hb.LootType = LootType.Blessed; from.EquipItem(hb); from.SendMessage(102, "You chose a Halberd"); } from.SendGump(new WepUpgradeGump(from)); break; } case 6: //Bardiche { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Bardiche bd = new Bardiche(); bd.Identified = true; bd.Name = "Bardiche"; bd.LootType = LootType.Blessed; from.EquipItem(bd); from.SendMessage(102, "You chose a Bardiche"); } from.SendGump(new WepUpgradeGump(from)); break; } case 7: //Double Axe { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; DoubleAxe da = new DoubleAxe(); da.Identified = true; da.Name = "Double Axe"; da.LootType = LootType.Blessed; from.EquipItem(da); from.SendMessage(102, "You chose a Double Axe"); } from.SendGump(new WepUpgradeGump(from)); break; } case 8: //Large Battle Axe { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; LargeBattleAxe lba = new LargeBattleAxe(); lba.Identified = true; lba.Name = "Large Battle Axe"; lba.LootType = LootType.Blessed; from.EquipItem(lba); from.SendMessage(102, "You chose a Large Battle Axe"); } from.SendGump(new WepUpgradeGump(from)); break; } case 9: //Axe { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Axe a = new Axe(); a.Identified = true; a.Name = "Axe"; a.LootType = LootType.Blessed; from.EquipItem(a); from.SendMessage(102, "You chose an Axe"); } from.SendGump(new WepUpgradeGump(from)); break; } case 10: //Kryss { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Kryss k = new Kryss(); k.Identified = true; k.Name = "Kryss"; k.LootType = LootType.Blessed; from.EquipItem(k); from.SendMessage(102, "You chose a Kryss"); } from.SendGump(new WepUpgradeGump(from)); break; } case 11: //War Fork { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; WarFork wf = new WarFork(); wf.Identified = true; wf.Name = "War Fork"; wf.LootType = LootType.Blessed; from.EquipItem(wf); from.SendMessage(102, "You chose a War Fork"); } from.SendGump(new WepUpgradeGump(from)); break; } case 12: //Dagger { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Dagger d = new Dagger(); d.Identified = true; d.Name = "Dagger"; d.LootType = LootType.Blessed; from.EquipItem(d); from.SendMessage(102, "You chose a Dagger"); } from.SendGump(new WepUpgradeGump(from)); break; } case 13: //Pike { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Pike p = new Pike(); p.Identified = true; p.Name = "Pike"; p.LootType = LootType.Blessed; from.EquipItem(p); from.SendMessage(102, "You chose a Pike"); } from.SendGump(new WepUpgradeGump(from)); break; } case 14: //Short Spear { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; ShortSpear ss = new ShortSpear(); ss.Identified = true; ss.Name = "Short Spear"; ss.LootType = LootType.Blessed; from.EquipItem(ss); from.SendMessage(102, "You chose a Short Spear"); } from.SendGump(new WepUpgradeGump(from)); break; } case 15: //Long Spear { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Spear ls = new Spear(); ls.Identified = true; ls.Name = "Long Spear"; ls.LootType = LootType.Blessed; from.EquipItem(ls); from.SendMessage(102, "You chose a Long Spear"); } from.SendGump(new WepUpgradeGump(from)); break; } case 16: //Pitchfork { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Pitchfork p = new Pitchfork(); p.Identified = true; p.Name = "Pitchfork"; p.LootType = LootType.Blessed; from.EquipItem(p); from.SendMessage(102, "You chose a Pitchfork"); } from.SendGump(new WepUpgradeGump(from)); break; } case 17: //lance { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Lance l = new Lance(); l.Identified = true; l.Name = "Lance"; l.LootType = LootType.Blessed; from.EquipItem(l); from.SendMessage(102, "You chose a Lance"); } from.SendGump(new WepUpgradeGump(from)); break; } case 18: //Sai's { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Sai s = new Sai(); s.Identified = true; s.Name = "Sai"; s.LootType = LootType.Blessed; from.EquipItem(s); from.SendMessage(102, "You chose Sai's"); } from.SendGump(new WepUpgradeGump(from)); break; } case 19: //War Mace { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; WarMace wm = new WarMace(); wm.Identified = true; wm.Name = "War Mace"; wm.LootType = LootType.Blessed; from.EquipItem(wm); from.SendMessage(102, "You chose a War Mace"); } from.SendGump(new WepUpgradeGump(from)); break; } case 20: //War Hammer { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; WarHammer wh = new WarHammer(); wh.Identified = true; wh.Name = "War Hammer"; wh.LootType = LootType.Blessed; from.EquipItem(wh); from.SendMessage(102, "You chose a War Hammer"); } from.SendGump(new WepUpgradeGump(from)); break; } case 21: //Maul { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Maul w = new Maul(); w.Identified = true; w.Name = "Maul"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Maul"); } from.SendGump(new WepUpgradeGump(from)); break; } case 22: //Club { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Club w = new Club(); w.Identified = true; w.Name = "Club"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Club"); } from.SendGump(new WepUpgradeGump(from)); break; } case 23: //Q Staff { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; QuarterStaff w = new QuarterStaff(); w.Identified = true; w.Name = "Quarter Staff"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Quarter Staff"); } from.SendGump(new WepUpgradeGump(from)); break; } case 24: //G Staff { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; GnarledStaff w = new GnarledStaff(); w.Identified = true; w.Name = "Gnarled Staff"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Gnarled Staff"); } from.SendGump(new WepUpgradeGump(from)); break; } case 25: //B Staff { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; BlackStaff w = new BlackStaff(); w.Identified = true; w.Name = "BlackStaff"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Black Staff"); } from.SendGump(new WepUpgradeGump(from)); break; } case 26: //Hammer Pick { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; HammerPick w = new HammerPick(); w.Identified = true; w.Name = "Hammer Pick"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Hammer Pick"); } from.SendGump(new WepUpgradeGump(from)); break; } case 27: //War Axe { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; WarAxe w = new WarAxe(); w.Identified = true; w.Name = "War Axe"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a War Axe"); } from.SendGump(new WepUpgradeGump(from)); break; } case 28: //Bow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Bow w = new Bow(); w.Identified = true; w.Name = "Bow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Bow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 29: //Composite Bow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; CompositeBow w = new CompositeBow(); w.Identified = true; w.Name = "Composite Bow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Composite Bow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 30: //Crossbow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Crossbow w = new Crossbow(); w.Identified = true; w.Name = "Crossbow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Crossbow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 31: //Heavy Crossbow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; HeavyCrossbow w = new HeavyCrossbow(); w.Identified = true; w.Name = "Heavy Crossbow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Heavy Crossbow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 32: //Repeating Crossbow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; RepeatingCrossbow w = new RepeatingCrossbow(); w.Identified = true; w.Name = "Repeating Crossbow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Repeating Crossbow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 33: //Yumi { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Yumi w = new Yumi(); w.Identified = true; w.Name = "Yumi"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Yumi"); } from.SendGump(new WepUpgradeGump(from)); break; } } }
public override void OnDeath(Container c) { base.OnDeath(c); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 4) == 1) { BaseWeapon fork = new Pitchfork(); fork.AccuracyLevel = WeaponAccuracyLevel.Supremely; fork.MinDamage = fork.MinDamage + 7; fork.MaxDamage = fork.MaxDamage + 12; fork.Attributes.BonusHits = 50; fork.AosElementDamages.Fire = 50; fork.Name = "Satan's Pitchfork"; fork.Slayer = SlayerName.Repond; if (Utility.RandomMinMax(0, 100) > 50) { fork.WeaponAttributes.HitFireball = 50; } fork.Hue = 0x489; c.DropItem(fork); } ArrayList targets = new ArrayList(); foreach (Item item in World.Items.Values) { if (item is OrbOfTheAbyss) { targets.Add(item); } } for (int i = 0; i < targets.Count; ++i) { OrbOfTheAbyss item = ( OrbOfTheAbyss )targets[i]; if (killer == item.owner) { item.Delete(); } // PLAYERS ARE ONLY ALLOWED ONE ORB } OrbOfTheAbyss orb = new OrbOfTheAbyss(); orb.owner = killer; int min = 25; int max = 100; int props = 2 + Utility.RandomMinMax(0, 10); BaseRunicTool.ApplyAttributesTo((BaseJewel)orb, false, killer.Luck, props, min, max); killer.AddToBackpack(orb); killer.SendMessage("You have obtained Satan's Orb of the Abyss!"); LoggingFunctions.LogGenericQuest(killer, "has obtained Satan's orb of the abyss"); } } }
public BlueQuina() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 400; Name = "Quina"; Title = "Quen"; Hue = 2219; SpeechHue = 2219; Female = Utility.RandomBool(); SetStr(120); SetDex(90); SetInt(200); SetHits(7000); SetDamageType(ResistanceType.Physical, 0); SetDamageType(ResistanceType.Cold, 100); SetResistance(ResistanceType.Physical, 45, 55); SetResistance(ResistanceType.Fire, 45, 55); SetResistance(ResistanceType.Cold, 100); SetResistance(ResistanceType.Poison, 45, 55); SetResistance(ResistanceType.Energy, 35, 45); SetSkill(SkillName.MagicResist, 145.1, 160.0); // Damage Pitchfork 13~14. Str +25% SetSkill(SkillName.Fencing, 100); // +25% SetSkill(SkillName.Tactics, 80.0); // +50% SetSkill(SkillName.Anatomy, 200.0); // +45% // Total 145% // Output: 31.85~34.3 Fame = 15000; Karma = -15000; VirtualArmor = 50; PackItem(new FrogDropBag()); // Weapon Pitchfork weapon = new Pitchfork(); weapon.Name = "<BASEFONT COLOR='#800000'>Fork of Maiming"; weapon.Attributes.AttackChance = 25; weapon.WeaponAttributes.HitLowerDefend = 100; weapon.AosElementDamages.Fire = 100; Ability.GiveItem(this, 1294, weapon); // Hat BlueHat hat = new BlueHat(); hat.ItemID = 5907; hat.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { hat.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1436, hat); // Chest BlueShirt chest = new BlueShirt(); chest.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { chest.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1194, chest); // Belt BlueBelt belt = new BlueBelt(); belt.ItemID = 5435; belt.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { belt.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 2017, belt); // Legs BluePants legs = new BluePants(); legs.ItemID = 5422; legs.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { legs.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1619, legs); // Boots BlueBoots boots = new BlueBoots(); boots.ItemID = 5901; boots.EnhanceOne = (BlueEnhance)(Utility.Random(9) + 1); if (Utility.RandomDouble() > 0.75) { boots.EnhanceTwo = (BlueEnhance)(Utility.Random(9) + 1); } Ability.GiveItem(this, 1436, boots); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static Item CreateMetalWeapon() { Item item = null; int nType = Utility.RandomMinMax(0, 41); switch (nType) { case 1: item = new Cutlass(); item.Name = "cutlass"; break; case 2: item = new Katana(); item.Name = "katana"; break; case 3: item = new Kryss(); item.Name = "kryss"; break; case 4: item = new Broadsword(); item.Name = "broadsword"; break; case 5: item = new Longsword(); item.Name = "longsword"; break; case 6: item = new ThinLongsword(); item.Name = "longsword"; break; case 7: item = new VikingSword(); item.Name = "barbarian sword"; break; case 8: item = new Scimitar(); item.Name = "scimitar"; break; case 9: item = new BoneHarvester(); item.Name = "sickle"; break; case 10: item = new CrescentBlade(); item.Name = "crescent blade"; break; case 11: item = new DoubleBladedStaff(); item.Name = "bladed staff"; break; case 12: item = new Lance(); item.Name = "lance"; break; case 13: item = new Pike(); item.Name = "pike"; break; case 14: item = new Scythe(); item.Name = "scythe"; break; case 15: item = new Dagger(); item.Name = "dagger"; break; case 16: item = new HammerPick(); item.Name = "hammer pick"; break; case 17: item = new Mace(); item.Name = "mace"; break; case 18: item = new Maul(); item.Name = "maul"; break; case 19: item = new WarHammer(); item.Name = "war hammer"; break; case 20: item = new WarMace(); item.Name = "war mace"; break; case 21: item = new ExecutionersAxe(); item.Name = "great axe"; break; case 22: item = new BattleAxe(); item.Name = "battle axe"; break; case 23: item = new TwoHandedAxe(); item.Name = "two-handed axe"; break; case 24: item = new Axe(); item.Name = "axe"; break; case 25: item = new DoubleAxe(); item.Name = "double axe"; break; case 26: item = new RoyalSword(); item.Name = "royal sword"; break; case 27: item = new LargeBattleAxe(); item.Name = "large battle axe"; break; case 28: item = new WarAxe(); item.Name = "war axe"; break; case 29: item = new Bardiche(); item.Name = "bardiche"; break; case 30: item = new Halberd(); item.Name = "halberd"; break; case 31: item = new Pitchfork(); item.Name = "trident"; break; case 32: item = new ShortSpear(); item.Name = "short spear"; break; case 33: item = new Spear(); item.Name = "spear"; break; case 34: item = new NoDachi(); item.Name = "no dachi"; break; case 35: item = new Wakizashi(); item.Name = "wakizashi"; break; case 36: item = new Tetsubo(); item.Name = "tetsubo"; break; case 37: item = new Lajatang(); item.Name = "lajatang"; break; case 38: item = new Daisho(); item.Name = "daisho"; break; case 39: item = new Tekagi(); item.Name = "tekagi"; break; case 40: item = new Kama(); item.Name = "kama"; break; case 41: item = new Sai(); item.Name = "sai"; break; } return(item); }
static void Main(string[] args) { // // OLD MACDONALD // Console.WriteLine("Farm Animals"); Console.WriteLine("Old MacDonald had a farm ee ay ee ay oh"); // Let's try singing about a Farm Animal Horse horse = new Horse(); Duck duck = new Duck(); Chicken tyson = new Chicken(); List <FarmAnimal> animals = new List <FarmAnimal>(); animals.Add(horse); animals.Add(duck); animals.Add(new Chicken()); animals.Add(new Horse()); // Can we swap out any animal in place here? // Polymorphis through inheritance foreach (FarmAnimal animal in animals) { Console.WriteLine("And on his farm there was a " + animal.Name + " ee ay ee ay oh"); Console.WriteLine("With a " + animal.MakeSoundTwice() + " here and a " + animal.MakeSoundTwice() + " there"); Console.WriteLine("Here a " + animal.MakeSoundOnce() + ", there a " + animal.MakeSoundOnce() + " everywhere a " + animal.MakeSoundTwice()); Console.WriteLine("Old Macdonald had a farm, ee ay ee ay oh"); Console.WriteLine(); } // What if we wanted to sing about other things on the farm that were // singable but not farm animals? // Can it be done? // Polymorphism through interface List <ISingable> singables = new List <ISingable>(); singables.Add(horse); singables.Add(duck); Tractor tractor = new Tractor(); singables.Add(tractor); Cow bessie = new Cow(); singables.Add(bessie); singables.Add(tyson); Pitchfork pitchfork = new Pitchfork(); singables.Add(pitchfork); Console.WriteLine(); Console.WriteLine("Singables"); Console.WriteLine("Old MacDonald had a farm ee ay ee ay oh"); foreach (ISingable singable in singables) { Console.WriteLine("And on his farm there was a " + singable.Name + " ee ay ee ay oh"); Console.WriteLine("With a " + singable.MakeSoundTwice() + " here and a " + singable.MakeSoundTwice() + " there"); Console.WriteLine("Here a " + singable.MakeSoundOnce() + ", there a " + singable.MakeSoundOnce() + " everywhere a " + singable.MakeSoundTwice()); Console.WriteLine("Old Macdonald had a farm, ee ay ee ay oh"); Console.WriteLine(); } List <ISellable> sellables = new List <ISellable>(); sellables.Add(tyson); sellables.Add(pitchfork); foreach (ISellable sellable in sellables) { Console.WriteLine(sellable); } Console.ReadLine(); }
public InternalSellInfo() { //Tools Add(typeof(Tongs), Tongs.GetSBSellValue()); Add(typeof(SmithHammer), SmithHammer.GetSBSellValue()); //Armor Add(typeof(RingmailHelm), RingmailHelm.GetSBSellValue()); Add(typeof(RingmailGorget), RingmailGorget.GetSBSellValue()); Add(typeof(RingmailArms), RingmailArms.GetSBSellValue()); Add(typeof(RingmailGloves), RingmailGloves.GetSBSellValue()); Add(typeof(RingmailChest), RingmailChest.GetSBSellValue()); Add(typeof(RingmailLegs), RingmailLegs.GetSBSellValue()); Add(typeof(ChainmailCoif), ChainmailCoif.GetSBSellValue()); Add(typeof(ChainmailGorget), ChainmailGorget.GetSBSellValue()); Add(typeof(ChainmailArms), ChainmailArms.GetSBSellValue()); Add(typeof(ChainmailGloves), ChainmailGloves.GetSBSellValue()); Add(typeof(ChainmailChest), ChainmailChest.GetSBSellValue()); Add(typeof(ChainmailLegs), ChainmailLegs.GetSBSellValue()); Add(typeof(PlateHelm), PlateHelm.GetSBSellValue()); Add(typeof(PlateGorget), PlateGorget.GetSBSellValue()); Add(typeof(PlateArms), PlateArms.GetSBSellValue()); Add(typeof(PlateGloves), PlateGloves.GetSBSellValue()); Add(typeof(PlateChest), PlateChest.GetSBSellValue()); Add(typeof(FemalePlateChest), FemalePlateChest.GetSBSellValue()); Add(typeof(PlateLegs), PlateLegs.GetSBSellValue()); Add(typeof(Bascinet), Bascinet.GetSBSellValue()); Add(typeof(CloseHelm), CloseHelm.GetSBSellValue()); Add(typeof(NorseHelm), NorseHelm.GetSBSellValue()); Add(typeof(Buckler), Buckler.GetSBSellValue()); Add(typeof(MetalShield), MetalShield.GetSBSellValue()); Add(typeof(BronzeShield), BronzeShield.GetSBSellValue()); Add(typeof(MetalKiteShield), MetalKiteShield.GetSBSellValue()); Add(typeof(HeaterShield), HeaterShield.GetSBSellValue()); //Weapons Add(typeof(Dagger), Dagger.GetSBSellValue()); Add(typeof(Kryss), Kryss.GetSBSellValue()); Add(typeof(WarFork), WarFork.GetSBSellValue()); Add(typeof(ShortSpear), ShortSpear.GetSBSellValue()); Add(typeof(Pitchfork), Pitchfork.GetSBSellValue()); Add(typeof(Spear), Spear.GetSBSellValue()); Add(typeof(HammerPick), HammerPick.GetSBSellValue()); Add(typeof(WarAxe), WarAxe.GetSBSellValue()); Add(typeof(Mace), Mace.GetSBSellValue()); Add(typeof(Maul), Maul.GetSBSellValue()); Add(typeof(WarHammer), WarHammer.GetSBSellValue()); Add(typeof(WarMace), WarMace.GetSBSellValue()); Add(typeof(ButcherKnife), ButcherKnife.GetSBSellValue()); Add(typeof(SkinningKnife), SkinningKnife.GetSBSellValue()); Add(typeof(Cleaver), Cleaver.GetSBSellValue()); Add(typeof(Cutlass), Cutlass.GetSBSellValue()); Add(typeof(Katana), Katana.GetSBSellValue()); Add(typeof(Scimitar), Scimitar.GetSBSellValue()); Add(typeof(Broadsword), Broadsword.GetSBSellValue()); Add(typeof(Longsword), Longsword.GetSBSellValue()); Add(typeof(VikingSword), VikingSword.GetSBSellValue()); Add(typeof(Axe), Axe.GetSBSellValue()); Add(typeof(BattleAxe), BattleAxe.GetSBSellValue()); Add(typeof(DoubleAxe), DoubleAxe.GetSBSellValue()); Add(typeof(ExecutionersAxe), ExecutionersAxe.GetSBSellValue()); Add(typeof(LargeBattleAxe), LargeBattleAxe.GetSBSellValue()); Add(typeof(TwoHandedAxe), TwoHandedAxe.GetSBSellValue()); Add(typeof(Bardiche), Bardiche.GetSBSellValue()); Add(typeof(Halberd), Halberd.GetSBSellValue()); }
public SamuraiFarmer() : base(AIType.AI_Melee, FightMode.Weakest, 10, 1, 0.175, 0.3) { Name = "Samurai Farmer"; Title = ", Defiance Cult Clan"; Body = 400; Hue = 33820; SpeechHue = 1150; BaseSoundID = 0; Team = 0; //new EtherealHorse().Rider = this; SetStr(125, 145); SetDex(130, 140); SetInt(0, 0); SetHits(125, 145); SetSkill(SkillName.Tactics, 100.7, 100.4); SetSkill(SkillName.MagicResist, 100.4, 100.7); SetSkill(SkillName.Fencing, 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 Pitchfork = new Pitchfork(); Pitchfork.Movable = false; Pitchfork.Hue = 0; //Bokuto.Name="SamuraiFarmer Bokuto"; EquipItem(Pitchfork); Item Kasa = new Kasa(); Kasa.Movable = false; Kasa.Hue = 0; EquipItem(Kasa); Item Shirt = new Shirt(); Shirt.Movable = false; Shirt.Hue = 0; EquipItem(Shirt); Item LeatherGloves = new LeatherGloves(); LeatherGloves.Movable = false; LeatherGloves.Hue = 0; EquipItem(LeatherGloves); Item TattsukeHakama = new TattsukeHakama(); TattsukeHakama.Movable = false; TattsukeHakama.Hue = 0; EquipItem(TattsukeHakama); Item Sandals = new Sandals(); Sandals.Movable = false; Sandals.Hue = 0; EquipItem(Sandals); Item hair = new Item(0x203D); hair.Hue = 1; hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); PackGold(140, 255); PackMagicItems(3, 7); PackMagicItems(3, 7); PackMagicItems(3, 7); PackMagicItems(3, 7); switch (Utility.Random(125)) { case 0: PackItem(new Kasa()); break; } }
public OrdenTheGrachioHerder() : base(AIType.AI_Animal, FightMode.None, 10, 1, 0.2, 0.4) { m_ListeningTo = null; m_LastSaid = null; m_LastHeard = null; Name = "Orden"; Title = "the Grachiosaur-Herder"; Body = 400; Female = false; Race = Race.Human; Hue = 33824; HairItemID = 8264; HairHue = 1125; FacialHairItemID = 8254; FacialHairHue = 1133; SetStr(386); SetDex(88); SetInt(49); SetDamage(4, 12); SetSkill(SkillName.Anatomy, 71.2, 81.4); SetSkill(SkillName.MagicResist, 25.9, 29.8); SetSkill(SkillName.Wrestling, 76.5, 98.1); SetSkill(SkillName.Tactics, 69.8, 82.6); AddItem(new JinBaori(883)); AddItem(new LeatherShirt(763)); AddItem(new LeatherPants(763)); AddItem(new FurBoots(798)); SpeechHue = 763; Container pack = new Backpack(); pack.DropItem(new Gold(45, 75)); pack.DropItem(Loot.RandomClothing()); pack.DropItem(Loot.RandomClothing()); if (Utility.RandomDouble() < 0.8) { Pitchfork weapon = new Pitchfork(); BaseRunicTool.ApplyAttributesTo(weapon, 5, 10, 15); weapon.WeaponAttributes.HitLightning = 5; weapon.Hue = 2405; weapon.Movable = true; pack.DropItem(weapon); } Container bag = new Bag(); bag.DropItem(new Bandage(Utility.RandomMinMax(9, 18))); Item ScrollLoot1 = Loot.RandomScroll(0, 50, SpellbookType.Regular); ScrollLoot1.Amount = Utility.Random(2, 5); bag.DropItem(ScrollLoot1); Item ScrollLoot2 = Loot.RandomScroll(0, 50, SpellbookType.Regular); ScrollLoot2.Amount = Utility.Random(2, 5); bag.DropItem(ScrollLoot2); bag.DropItem(Loot.RandomWand()); bag.DropItem(Loot.RandomPotion()); bag.DropItem(Loot.RandomGem()); pack.DropItem(bag); AddItem(pack); }