public InternalBuyInfo() { Add(new GenericBuyInfo("Pickaxe", typeof(Pickaxe), Pickaxe.GetSBPurchaseValue(), 50, 0xE86, 0)); Add(new GenericBuyInfo("Shovel", typeof(Shovel), Shovel.GetSBPurchaseValue(), 50, 0xF39, 0)); Add(new GenericBuyInfo("Hatchet", typeof(Hatchet), Hatchet.GetSBPurchaseValue(), 50, 0xF43, 0)); Add(new GenericBuyInfo("Lockpick", typeof(Lockpick), Lockpick.GetSBPurchaseValue(), 250, 0x14FC, 0)); Add(new GenericBuyInfo("Scissors", typeof(Scissors), Scissors.GetSBPurchaseValue(), 50, 0xF9F, 0)); Add(new GenericBuyInfo("Tongs", typeof(Tongs), Tongs.GetSBPurchaseValue(), 50, 0xFBB, 0)); Add(new GenericBuyInfo("SledgeHammer", typeof(SledgeHammer), SledgeHammer.GetSBPurchaseValue(), 50, 0xFB5, 0)); Add(new GenericBuyInfo("SmithHammer", typeof(SmithHammer), SmithHammer.GetSBPurchaseValue(), 50, 0x13E3, 0)); Add(new GenericBuyInfo("MortarPestle", typeof(MortarPestle), MortarPestle.GetSBPurchaseValue(), 50, 0xE9B, 0)); Add(new GenericBuyInfo("TinkerTools", typeof(TinkerTools), TinkerTools.GetSBPurchaseValue(), 50, 0x1EB8, 0)); Add(new GenericBuyInfo("SewingKit", typeof(SewingKit), SewingKit.GetSBPurchaseValue(), 50, 0xF9D, 0)); Add(new GenericBuyInfo("Skillet", typeof(Skillet), Skillet.GetSBPurchaseValue(), 50, 0x97F, 0)); Add(new GenericBuyInfo("RollingPin", typeof(RollingPin), RollingPin.GetSBPurchaseValue(), 50, 0x1043, 0)); Add(new GenericBuyInfo("MapmakersPen", typeof(MapmakersPen), MapmakersPen.GetSBPurchaseValue(), 50, 0x0FBF, 0)); Add(new GenericBuyInfo("ScribesPen", typeof(ScribesPen), ScribesPen.GetSBPurchaseValue(), 50, 0x0FBF, 0)); Add(new GenericBuyInfo("Scorp", typeof(Scorp), Scorp.GetSBPurchaseValue(), 50, 0x10E7, 0)); Add(new GenericBuyInfo("DrawKnife", typeof(DrawKnife), DrawKnife.GetSBPurchaseValue(), 50, 0x10E4, 0)); Add(new GenericBuyInfo("Saw", typeof(Saw), Saw.GetSBPurchaseValue(), 50, 0x1034, 0)); Add(new GenericBuyInfo("DovetailSaw", typeof(DovetailSaw), DovetailSaw.GetSBPurchaseValue(), 50, 0x1028, 0)); Add(new GenericBuyInfo("Froe", typeof(Froe), Froe.GetSBPurchaseValue(), 50, 0x10E5, 0)); Add(new GenericBuyInfo("Hammer", typeof(Hammer), Hammer.GetSBPurchaseValue(), 50, 0x102A, 0)); Add(new GenericBuyInfo("Inshave", typeof(Inshave), Inshave.GetSBPurchaseValue(), 50, 0x10E6, 0)); Add(new GenericBuyInfo("JointingPlane", typeof(JointingPlane), JointingPlane.GetSBPurchaseValue(), 50, 0x1030, 0)); Add(new GenericBuyInfo("WoodenPlane", typeof(WoodenPlane), WoodenPlane.GetSBPurchaseValue(), 50, 0x102C, 0)); Add(new GenericBuyInfo("SmoothingPlane", typeof(SmoothingPlane), SmoothingPlane.GetSBPurchaseValue(), 50, 0x1032, 0)); }
public InternalBuyInfo() { Add(new GenericBuyInfo("Hatchet", typeof(Hatchet), Hatchet.GetSBPurchaseValue(), 50, 0xF43, 0)); Add(new GenericBuyInfo("Saw", typeof(Saw), Saw.GetSBPurchaseValue(), 50, 0x1034, 0)); Add(new GenericBuyInfo("Club", typeof(Club), Club.GetSBPurchaseValue(), 25, 0x13B4, 0)); Add(new GenericBuyInfo("Shepherd's Crook", typeof(ShepherdsCrook), ShepherdsCrook.GetSBPurchaseValue(), 25, 0xE81, 0)); Add(new GenericBuyInfo("Quarter Staff", typeof(QuarterStaff), QuarterStaff.GetSBPurchaseValue(), 25, 0xE89, 0)); Add(new GenericBuyInfo("Gnarled Staff", typeof(GnarledStaff), GnarledStaff.GetSBPurchaseValue(), 25, 0x13F8, 0)); Add(new GenericBuyInfo("Black Staff", typeof(BlackStaff), BlackStaff.GetSBPurchaseValue(), 25, 0xDF0, 0)); Add(new GenericBuyInfo("Wooden Shield", typeof(WoodenShield), WoodenShield.GetSBPurchaseValue(), 25, 7034, 0)); Add(new GenericBuyInfo("Wooden Kite Shield", typeof(WoodenKiteShield), WoodenKiteShield.GetSBPurchaseValue(), 25, 7033, 0)); Add(new GenericBuyInfo("Lute", typeof(Lute), Lute.GetSBPurchaseValue(), 50, 0x0EB3, 0)); Add(new GenericBuyInfo("Drums", typeof(Drums), Drums.GetSBPurchaseValue(), 50, 0x0E9C, 0)); Add(new GenericBuyInfo("Harp", typeof(Harp), Harp.GetSBPurchaseValue(), 50, 0x0EB1, 0)); Add(new GenericBuyInfo("Tambourine", typeof(Tambourine), Tambourine.GetSBPurchaseValue(), 50, 0x0E9E, 0)); Add(new GenericBuyInfo("Scorp", typeof(Scorp), Scorp.GetSBPurchaseValue(), 50, 0x10E7, 0)); Add(new GenericBuyInfo("Smoothing Plane", typeof(SmoothingPlane), SmoothingPlane.GetSBPurchaseValue(), 50, 0x1032, 0)); Add(new GenericBuyInfo("Drawing Knife", typeof(DrawKnife), DrawKnife.GetSBPurchaseValue(), 50, 0x10E4, 0)); Add(new GenericBuyInfo("Froe", typeof(Froe), Froe.GetSBPurchaseValue(), 50, 0x10E5, 0)); Add(new GenericBuyInfo("Hammer", typeof(Hammer), Hammer.GetSBPurchaseValue(), 50, 0x102A, 0)); Add(new GenericBuyInfo("Inshave", typeof(Inshave), Inshave.GetSBPurchaseValue(), 50, 0x10E6, 0)); Add(new GenericBuyInfo("Jointing Plane", typeof(JointingPlane), JointingPlane.GetSBPurchaseValue(), 50, 0x1030, 0)); Add(new GenericBuyInfo("Wooden Plane", typeof(WoodenPlane), WoodenPlane.GetSBPurchaseValue(), 50, 0x102C, 0)); Add(new GenericBuyInfo("Dovetail Saw", typeof(DovetailSaw), DovetailSaw.GetSBPurchaseValue(), 50, 0x1028, 0)); }
public void GiftAxe() { if (Objective_Interface.instance.QuestCompletionStates[QUESTNAME.CrossBridge] == 1 && Objective_Interface.instance.QuestProgressStates[QUESTNAME.CrossBridge] == 1) { Hatchet giftHatchet = new Hatchet(); giftHatchet.ItemName = "Dull Hatchet"; Player_Accessor_Script.InventoryScript.AddItemToInventory(giftHatchet); Objective_Interface.instance.QuestObjectives["SpeakWithForeman"].Invoke(); } }
public InternalSellInfo() { Add(typeof(Hatchet), Hatchet.GetSBSellValue()); Add(typeof(Saw), Saw.GetSBSellValue()); //Add(typeof(Arrow), Arrow.GetSBSellValue()); //Add(typeof(Bolt), Bolt.GetSBSellValue()); Add(typeof(Bow), Bow.GetSBSellValue()); Add(typeof(Crossbow), Crossbow.GetSBSellValue()); Add(typeof(HeavyCrossbow), HeavyCrossbow.GetSBSellValue()); }
public InternalBuyInfo() { Add(new GenericBuyInfo("Hatchet", typeof(Hatchet), Hatchet.GetSBPurchaseValue(), 50, 0xF43, 0)); Add(new GenericBuyInfo("Saw", typeof(Saw), Saw.GetSBPurchaseValue(), 50, 0x1034, 0)); Add(new GenericBuyInfo("Arrow", typeof(Arrow), Arrow.GetSBPurchaseValue(), 500, 0xF3F, 0)); Add(new GenericBuyInfo("Bolt", typeof(Bolt), Bolt.GetSBPurchaseValue(), 500, 0x1BFB, 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(Hatchet), Hatchet.GetSBSellValue()); Add(typeof(Saw), Saw.GetSBSellValue()); Add(typeof(Scorp), Scorp.GetSBSellValue()); Add(typeof(SmoothingPlane), SmoothingPlane.GetSBSellValue()); Add(typeof(DrawKnife), DrawKnife.GetSBSellValue()); Add(typeof(Froe), Froe.GetSBSellValue()); Add(typeof(Hammer), Hammer.GetSBSellValue()); Add(typeof(Inshave), Inshave.GetSBSellValue()); Add(typeof(JointingPlane), JointingPlane.GetSBSellValue()); Add(typeof(WoodenPlane), WoodenPlane.GetSBSellValue()); Add(typeof(DovetailSaw), DovetailSaw.GetSBSellValue()); Add(typeof(Lute), Lute.GetSBSellValue()); Add(typeof(Drums), Drums.GetSBSellValue()); Add(typeof(Harp), Harp.GetSBSellValue()); Add(typeof(Tambourine), Tambourine.GetSBSellValue()); Add(typeof(Club), Club.GetSBSellValue()); Add(typeof(ShepherdsCrook), ShepherdsCrook.GetSBSellValue()); Add(typeof(QuarterStaff), QuarterStaff.GetSBSellValue()); Add(typeof(GnarledStaff), GnarledStaff.GetSBSellValue()); Add(typeof(BlackStaff), BlackStaff.GetSBSellValue()); Add(typeof(WoodenShield), WoodenShield.GetSBSellValue()); Add(typeof(WoodenKiteShield), WoodenKiteShield.GetSBSellValue()); /* * Add( typeof( WoodenBox ), 7 ); * Add( typeof( SmallCrate ), 5 ); * Add( typeof( MediumCrate ), 6 ); * Add( typeof( LargeCrate ), 7 ); * Add( typeof( WoodenChest ), 15 ); * * Add( typeof( LargeTable ), 10 ); * Add( typeof( Nightstand ), 7 ); * Add( typeof( YewWoodTable ), 10 ); * Add( typeof( WritingTable ), 9 ); * * Add( typeof( Throne ), 24 ); * Add( typeof( WoodenThrone ), 6 ); * Add( typeof( Stool ), 6 ); * Add( typeof( FootStool ), 6 ); * * Add( typeof( FancyWoodenChairCushion ), 12 ); * Add( typeof( CushionedWoodenChair ), 10 ); * Add( typeof( WoodenChair ), 8 ); * Add( typeof( BambooChair ), 6 ); * Add( typeof( WoodenBench ), 6 ); */ }
public override void OnAfterSpawn() { base.OnAfterSpawn(); Server.Misc.TavernPatrons.RemoveSomeGear(this, false); Server.Misc.MorphingTime.CheckNecromancer(this); Server.Items.EssenceBase.ColorCitizen(this); Item axe = new Hatchet(); axe.Name = "axe"; axe.ItemID = Utility.RandomList(0xF45, 0xF47, 0xF49, 0xF4B, 0x13FA, 0x1442); axe.Movable = false; AddItem(axe); }
public override void OnResponse(NetState state, RelayInfo info) { PlayerMobile m = m_user; ToolBox box = i_box; BaseTool tool; BaseHarvestTool toola; Hatchet toolh; Container pack = m.Backpack; switch (info.ButtonID) { default: { break; } case 2: { box.OW(m); break; } case 3: { tool = new Tongs(); tool.UsesRemaining = box.i_S; pack.DropItem(tool); box.i_S = 0; break; } case 4: { tool = new MouldingPlane(); tool.UsesRemaining = box.i_C; pack.DropItem(tool); box.i_C = 0; break; } case 5: { tool = new TinkerTools(); tool.UsesRemaining = box.i_Ti; pack.DropItem(tool); box.i_Ti = 0; break; } case 6: { tool = new SewingKit(); tool.UsesRemaining = box.i_T; pack.DropItem(tool); box.i_T = 0; break; } case 7: { toolh = new Hatchet(); toolh.UsesRemaining = box.i_L; pack.DropItem(toolh); box.i_L = 0; break; } case 8: { tool = new ScribesPen(); tool.UsesRemaining = box.i_Sc; pack.DropItem(tool); box.i_Sc = 0; break; } case 9: { toola = new Shovel(); toola.UsesRemaining = box.i_M; pack.DropItem(toola); box.i_M = 0; break; } case 10: { tool = new Skillet(); tool.UsesRemaining = box.i_Co; pack.DropItem(tool); box.i_Co = 0; break; } case 11: { tool = new FletcherTools(); tool.UsesRemaining = box.i_F; pack.DropItem(tool); box.i_F = 0; break; } case 12: { tool = new MortarPestle(); tool.UsesRemaining = box.i_A; pack.DropItem(tool); box.i_A = 0; break; } case 13: { tool = new MalletAndChisel(); tool.UsesRemaining = box.i_St; pack.DropItem(tool); box.i_St = 0; break; } case 14: { tool = new MapmakersPen(); tool.UsesRemaining = box.i_Ca; pack.DropItem(tool); box.i_Ca = 0; break; } case 15: { GargoylesPickaxe item = new GargoylesPickaxe(); item.UsesRemaining = box.i_Garg; pack.DropItem(item); box.i_Garg = 0; break; } case 16: { ProspectorsTool item = new ProspectorsTool(); item.UsesRemaining = box.i_Pros; pack.DropItem(item); box.i_Pros = 0; break; } case 17: { Blowpipe item = new Blowpipe(); item.UsesRemaining = box.i_G; pack.DropItem(item); box.i_G = 0; break; } } if (info.ButtonID > 2) { box.NG(m, box); } }
public InternalBuyInfo() { Add(new GenericBuyInfo("Hatchet", typeof(Hatchet), Hatchet.GetSBPurchaseValue(), 50, 0xF43, 0)); Add(new GenericBuyInfo("Saw", typeof(Saw), Saw.GetSBPurchaseValue(), 50, 0x1034, 0)); Add(new GenericBuyInfo("Arrow", typeof(Arrow), Arrow.GetSBPurchaseValue(), 500, 0xF3F, 0)); Add(new GenericBuyInfo("Bolt", typeof(Bolt), Bolt.GetSBPurchaseValue(), 500, 0x1BFB, 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)); Add(new AnimalBuyInfo(1, "Eagle", typeof(Eagle), Eagle.GetSBPurchaseValue(), 10, 0x5, 0)); Add(new AnimalBuyInfo(1, "Panther", typeof(Panther), Panther.GetSBPurchaseValue(), 10, 0xD6, 0)); Add(new AnimalBuyInfo(1, "Timber Wolf", typeof(TimberWolf), TimberWolf.GetSBPurchaseValue(), 10, 0xE1, 0)); Add(new AnimalBuyInfo(1, "Brown Bear", typeof(BrownBear), BrownBear.GetSBPurchaseValue(), 10, 0xA7, 0)); Add(new AnimalBuyInfo(1, "Grizzly Bear", typeof(GrizzlyBear), GrizzlyBear.GetSBPurchaseValue(), 10, 0xD4, 0)); }
public SpawnHelperMage() : base(AIType.AI_Mage, FightMode.Closest, 25, 1, 0.4, 0.3) { Title = "[BEC-Mage]"; if (Female = Utility.RandomBool()) { Body = 401; Name = NameList.RandomName("female"); } else { Body = 400; Name = NameList.RandomName("male"); } // Name.Hue = 2002; // Title.Hue = 2002; SetStr(100, 150); SetDex(100, 150); SetInt(250, 500); ActiveSpeed = 0.2; PassiveSpeed = 0; SetHits(200, 300); // SetDamage(12, 19); SetDamageType(ResistanceType.Physical, 120); SetResistance(ResistanceType.Physical, 65, 80); SetResistance(ResistanceType.Fire, 65, 80); SetResistance(ResistanceType.Cold, 65, 80); SetResistance(ResistanceType.Poison, 65, 80); SetResistance(ResistanceType.Energy, 65, 80); SetSkill(SkillName.Swords, 89.0, 120.0); SetSkill(SkillName.Tactics, 89.0, 120.0); SetSkill(SkillName.MagicResist, 89.0, 120.0); SetSkill(SkillName.Tactics, 89.0, 120.0); SetSkill(SkillName.Parry, 89.0, 120.0); SetSkill(SkillName.Anatomy, 85.0, 120.0); SetSkill(SkillName.Healing, 85.0, 120.0); SetSkill(SkillName.Magery, 99.0, 120.0); SetSkill(SkillName.EvalInt, 99.0, 120.0); SetSkill(SkillName.Poisoning, 85.0, 100.0); Fame = 18000; Karma = 10000; VirtualArmor = 50; switch (Utility.Random(4)) { case 0: BattleAxe weapona = new BattleAxe(); weapona.Hue = 2063; weapona.LootType = LootType.Newbied; weapona.Attributes.SpellChanneling = 1; weapona.WeaponAttributes.HitLeechMana = 60; weapona.Movable = false; AddItem(weapona); break; case 1: Axe weaponb = new Axe(); weaponb.Hue = 2063; weaponb.LootType = LootType.Newbied; weaponb.Attributes.SpellChanneling = 1; weaponb.WeaponAttributes.HitLeechMana = 60; weaponb.Movable = false; AddItem(weaponb); break; case 2: Bardiche weaponc = new Bardiche(); weaponc.Hue = 2063; weaponc.LootType = LootType.Newbied; weaponc.Attributes.SpellChanneling = 1; weaponc.WeaponAttributes.HitLeechMana = 60; weaponc.Movable = false; AddItem(weaponc); break; case 3: Hatchet weapond = new Hatchet(); weapond.Hue = 2063; weapond.LootType = LootType.Newbied; weapond.Attributes.SpellChanneling = 1; weapond.WeaponAttributes.HitLeechMana = 60; weapond.Movable = false; AddItem(weapond); break; } Item Robe = new Robe( ); Robe.Name = "Britania Electric Co."; Robe.Movable = false; Robe.Hue = 1109; AddItem(Robe); switch (Utility.Random(3)) { case 0: AddItem(new LongPants(1050)); break; case 1: Item LegsOfBane = new LeggingsOfBane(); LegsOfBane.Hue = 1269; LegsOfBane.LootType = LootType.Newbied; LegsOfBane.Movable = false; AddItem(LegsOfBane); break; case 2: break; } switch (Utility.Random(3)) { case 0: AddItem(new Boots()); break; case 1: Item Sandals = new Sandals(); Sandals.Hue = 1195; Sandals.LootType = LootType.Blessed; Sandals.Movable = false; AddItem(Sandals); break; case 2: break; } Item PlateHelm = new PlateHelm(); PlateHelm.Hue = 2063; PlateHelm.LootType = LootType.Newbied; PlateHelm.Movable = false; AddItem(PlateHelm); switch (Utility.Random(3)) { case 0: AddItem(new LeatherGloves()); break; case 1: break; case 2: break; } AddItem(new Shirt(743)); Utility.AssignRandomHair(this); for (int i = 0; i < 10; i++) { PackItem(new GreaterCurePotion()); PackItem(new GreaterHealPotion()); PackItem(new TotalRefreshPotion()); } PackItem(new Bandage(Utility.RandomMinMax(80, 200))); Horse ns = new Horse(); ns.Controlled = true; ns.Hue = 2063; ns.ControlMaster = this; ns.ControlOrder = OrderType.Stay; ns.Rider = this; }
private void Process(Mobile from) { Item rewardItem; switch (m_Skill.SkillID) { case 0: // alchemy rewardItem = new MortarPestle(); break; case 7: // Blacksmithy rewardItem = new GMSmithHammer(); break; case 8: // Bowcraft/fletching rewardItem = new Bow(); break; case 11: // Carpentry switch (m_Itemid) { case 4138: rewardItem = new Hammer(); break; case 4148: rewardItem = new Saw(); break; case 4146: rewardItem = new SmoothingPlane(); break; case 4325: rewardItem = new Froe(); break; case 4326: rewardItem = new Inshave(); break; case 4324: rewardItem = new DrawKnife(); break; default: return; } break; case 23: // Inscription rewardItem = new ScribesPen(); break; case 25: // Magery rewardItem = new Spellbook(); (rewardItem as Spellbook).Content = ulong.MaxValue; (rewardItem as Spellbook).LootType = LootType.Blessed; break; case 34: // Tailoring rewardItem = new RewardDyeTub(); break; case 35: // Animal Taming rewardItem = new ShepherdsCrook(); break; case 44: //Lumberjacking rewardItem = new Hatchet(); break; case 45: // Mining rewardItem = new Pickaxe(); break; //Bardic skills case 9: case 15: case 22: case 29: switch (m_Itemid) { case 3740: rewardItem = new Drums(); break; case 3761: rewardItem = new Harp(); break; case 3762: rewardItem = new LapHarp(); break; case 3763: rewardItem = new Lute(); break; case 3741: rewardItem = new Tambourine(); break; case 3742: rewardItem = new TambourineTassel(); break; default: return; } break; //"Thieving" skills case 21: case 28: case 33: case 47: rewardItem = new Cloak(); break; default: return; } rewardItem.Hue = m_CurrentHue; rewardItem.LootType = LootType.Blessed; if (m_Name != "") { rewardItem.Name = m_Name; } if (rewardItem is RewardDyeTub) { var tub = (RewardDyeTub)rewardItem; tub.DyedHue = rewardItem.Hue; tub.Redyable = false; tub.LootType = LootType.Blessed; tub.Owner = from; } else if (rewardItem is GMSmithHammer) { var hammer = (GMSmithHammer)rewardItem; hammer.Owner = from; } from.AddToBackpack(rewardItem); // Log RewardLogging.WriteLine(from, m_Skill, m_Name, m_CurrentHue); }