public override bool Axe(Mobile from, BaseAxe axe) { if (!this.TryCreateBoards(from, 100, new BloodwoodBoard())) return false; return true; }
public override bool Axe( Mobile from, BaseAxe axe ) { if ( !TryCreateBoards( from , 80, new AshBoard() ) ) return false; return true; }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 95, new PetrifiedBoard())) { return(false); } return(true); }
protected override void OnTarget(Mobile m, object o) { if (o is Item) { Item IT = (Item)o; if (IT.Parent != m.Backpack) { m.SendLocalizedMessage(1042001); box.NG(m, box); } else if (IT is BaseTool) { BaseTool j = (BaseTool)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is BaseHarvestTool) { BaseHarvestTool j = (BaseHarvestTool)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } //Modded this from to else if (IT is Hatchet || IT is SturdyHatchet || IT is Pickaxe || IT is SturdyPickaxe) else if (IT is Hatchet || IT is Pickaxe || IT is SturdyPickaxe) { BaseAxe j = (BaseAxe)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is ProspectorsTool) { ProspectorsTool j = (ProspectorsTool)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is GargoylesPickaxe) { GargoylesPickaxe j = (GargoylesPickaxe)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is BaseAxe) { m.SendMessage("I do not take axe other than pickaxe and gargoyle pickaxe."); box.NG(m, box); } else { m.SendMessage("I'm sorry but I do not recognize this type"); box.NG(m, box); } } else { m.SendMessage("I'm sorry but I do not recognize this type"); box.NG(m, box); } }
public virtual bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 0, new Board())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!this.TryCreateBoards(from, 95, new YewBoard())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 80, new AshBoard())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!this.TryCreateBoards(from, 100, new FrostwoodBoard())) { return(false); } return(true); }
public override void OnDoubleClick(Mobile from) { base.OnDoubleClick(from); BaseAxe axeFound = null; Item oneHand = from.FindItemOnLayer(Layer.OneHanded); Item twoHand = from.FindItemOnLayer(Layer.TwoHanded); if (oneHand is BaseAxe) { axeFound = oneHand as BaseAxe; } if (twoHand is BaseAxe) { axeFound = twoHand as BaseAxe; } if (axeFound == null && from.Backpack != null) { BaseAxe axe = from.Backpack.FindItemByType(typeof(BaseAxe)) as BaseAxe; if (axe != null) { axeFound = axe; } } if (axeFound != null) { from.PlaySound(0x13E); if (Amount > 1) { from.SendMessage("You shape the logs into boards."); } else { from.SendMessage("You shape the log into a board."); } Axe(from, axeFound); } else { from.SendMessage("You must have an axe equipped or in your backpack to create boards."); } }
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 80, new AshBoard());
public virtual bool Axe( Mobile from, BaseAxe axe ) { if( !TryCreateBoards( from, 0, new Board() ) ) return false; return true; }
public override bool Axe(Mobile from, BaseAxe axe) { if (!this.TryCreateBoards(from, 65, new OakBoard())) return false; return true; }
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new HeartwoodBoard());
public virtual bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 0, new Board());
public override bool Axe( Mobile from, BaseAxe axe ) { if ( !TryCreateBoards( from , 120, new HeartwoodBoard() ) ) return false; return true; }
public void Sharpening(Mobile from, object o) { if (o is Item) { if (!((Item)o).IsChildOf(from.Backpack)) { from.SendMessage(32, "This must be in your backpack to sharpen"); } else if (o is BaseSword && ((BaseSword)o).IsChildOf(from.Backpack)) { BaseSword weap = o as BaseSword; int i_DI = weap.Attributes.WeaponDamage; if (weap.Quality == WeaponQuality.Exceptional) { i_DI += 15; } if (i_DI >= 60) { from.SendMessage(32, "This weapon cannot be sharpened any further"); return; } else if (from.Skills[SkillName.Blacksmith].Value < 60.0) { from.SendMessage(32, "You need at least 60.0 blacksmith to sharpen weapons with this stone"); } else if (!Deleted) { int bonus = Utility.Random((int)(from.Skills[SkillName.Blacksmith].Value / 20)); if (bonus > 0) { if (60 < i_DI + bonus) { bonus = 60 - i_DI; } weap.Attributes.WeaponDamage += bonus; from.SendMessage(88, "You sharpened the weapon with {0} damange increase", bonus); } else { from.SendMessage(32, "You fail to sharpen the weapon"); } if (Uses <= 1) { from.SendMessage(32, "You used up the sharpening stone"); Delete(); } else { --Uses; from.SendMessage(32, "You have {0} uses left", Uses); } } } else if (o is BaseKnife && ((BaseKnife)o).IsChildOf(from.Backpack)) { BaseKnife weap = o as BaseKnife; int i_DI = weap.Attributes.WeaponDamage; if (weap.Quality == WeaponQuality.Exceptional) { i_DI += 15; } if (i_DI >= 60) { from.SendMessage(32, "This weapon cannot be sharpened any further"); return; } else if (from.Skills[SkillName.Blacksmith].Value < 60.0) { from.SendMessage(32, "You need at least 60.0 blacksmith to sharpen weapons with this stone"); } else if (!Deleted) { int bonus = Utility.Random((int)(from.Skills[SkillName.Blacksmith].Value / 20)); if (bonus > 0) { if (60 < i_DI + bonus) { bonus = 60 - i_DI; } weap.Attributes.WeaponDamage += bonus; from.SendMessage(88, "You sharpened the weapon with {0} damange increase", bonus); } else { from.SendMessage(32, "You fail to sharpen the weapon"); } if (Uses <= 1) { from.SendMessage(32, "You used up the sharpening stone"); Delete(); } else { --Uses; from.SendMessage(32, "You have {0} uses left", Uses); } } } else if (o is BaseAxe && ((BaseAxe)o).IsChildOf(from.Backpack)) { BaseAxe weap = o as BaseAxe; int i_DI = weap.Attributes.WeaponDamage; if (weap.Quality == WeaponQuality.Exceptional) { i_DI += 15; } if (i_DI >= 60) { from.SendMessage(32, "This weapon cannot be sharpened any further"); return; } else if (from.Skills[SkillName.Blacksmith].Value < 60.0) { from.SendMessage(32, "You need at least 60.0 blacksmith to sharpen weapons with this stone"); } else if (!Deleted) { int bonus = Utility.Random((int)(from.Skills[SkillName.Blacksmith].Value / 20)); if (bonus > 0) { if (60 < i_DI + bonus) { bonus = 60 - i_DI; } weap.Attributes.WeaponDamage += bonus; from.SendMessage(88, "You sharpened the weapon with {0} damange increase", bonus); } else { from.SendMessage(32, "You fail to sharpen the weapon"); } if (Uses <= 1) { from.SendMessage(32, "You used up the sharpening stone"); Delete(); } else { --Uses; from.SendMessage(32, "You have {0} uses left", Uses); } } } else { from.SendMessage(32, "You can only enhance edged weapons"); } } else { from.SendMessage(32, "You can only enhance edged weapons"); } }
public void Sharpening(Mobile from, object o) { if (o is Item) { if (!((Item)o).IsChildOf(from.Backpack)) { from.SendMessage(32, "This must be in your backpack to sharpen"); } else if (o is BaseSword && ((BaseSword)o).IsChildOf(from.Backpack)) { BaseSword weap = o as BaseSword; int i_DI = weap.Attributes.WeaponDamage; //if (weap.Quality == WeaponQuality.Exceptional) i_DI += 15; if (i_DI >= 70) { from.SendMessage(32, "This weapon cannot be sharpened any further"); return; } else if (from.Skills[SkillName.Blacksmith].Value < 100.0) { from.SendMessage(32, "You need at least 100.0 blacksmith and 80.0 chivalry to sharpen weapons with this stone"); } else if (from.Skills[SkillName.Chivalry].Value < 80.0) { from.SendMessage(32, "You need at least 100.0 blacksmith and 80 chivalry to sharpen weapons with this stone"); } else if (!Deleted) { int bonus = Utility.Random((int)(from.Skills[SkillName.Blacksmith].Value / 10)); if (bonus > 0) { if (70 < i_DI + bonus) { bonus = 70 - i_DI; } weap.Attributes.WeaponDamage += bonus; weap.Consecrated = true; weap.LootType = LootType.Blessed; from.SendMessage(88, "You sharpened the weapon with {0} damange increase", bonus); this.Amount = this.Amount - 1; } else { from.SendMessage(32, "You fail to sharpen the weapon"); } if (this.Amount == 0) { from.SendMessage(32, "You used up a sharpening stone"); Delete(); } else { //--Uses; from.SendMessage(32, "You were scared you'd cut your finger."); } } } else if (o is BaseKnife && ((BaseKnife)o).IsChildOf(from.Backpack)) { BaseKnife weap = o as BaseKnife; int i_DI = weap.Attributes.WeaponDamage; if (weap.Quality == WeaponQuality.Exceptional) { i_DI += 15; } if (i_DI >= 70) { from.SendMessage(32, "This weapon cannot be sharpened any further"); return; } else if (from.Skills[SkillName.Blacksmith].Value < 100.0) { from.SendMessage(32, "You need at least 100.0 blacksmith and 80.0 chivalry to sharpen weapons with this stone"); } else if (from.Skills[SkillName.Chivalry].Value < 80.0) { from.SendMessage(32, "You need at least 100.0 blacksmith and 80 chivalry to sharpen weapons with this stone"); } else if (!Deleted) { int bonus = Utility.Random((int)(from.Skills[SkillName.Blacksmith].Value / 10)); if (bonus > 0) { if (70 < i_DI + bonus) { bonus = 70 - i_DI; } weap.Attributes.WeaponDamage += bonus; weap.Consecrated = true; weap.LootType = LootType.Blessed; from.SendMessage(88, "You sharpened the weapon with {0} damange increase", bonus); } else { from.SendMessage(32, "You fail to sharpen the weapon"); } if (Uses <= 1) { from.SendMessage(32, "You used up the sharpening stone"); Delete(); } else { --Uses; from.SendMessage(32, "You have {0} uses left", Uses); } } } else if (o is BaseAxe && ((BaseAxe)o).IsChildOf(from.Backpack)) { BaseAxe weap = o as BaseAxe; int i_DI = weap.Attributes.WeaponDamage; if (weap.Quality == WeaponQuality.Exceptional) { i_DI += 15; } if (i_DI >= 70) { from.SendMessage(32, "This weapon cannot be sharpened any further"); return; } else if (from.Skills[SkillName.Blacksmith].Value < 100.0) { from.SendMessage(32, "You need at least 100.0 blacksmith and 80.0 chivalry to sharpen weapons with this stone"); } else if (from.Skills[SkillName.Chivalry].Value < 80.0) { from.SendMessage(32, "You need at least 100.0 blacksmith and 80 chivalry to sharpen weapons with this stone"); } else if (!Deleted) { int bonus = Utility.Random((int)(from.Skills[SkillName.Blacksmith].Value / 10)); if (bonus > 0) { if (70 < i_DI + bonus) { bonus = 70 - i_DI; } weap.Attributes.WeaponDamage += bonus; weap.Consecrated = true; weap.LootType = LootType.Blessed; from.SendMessage(88, "You sharpened the weapon with {0} damange increase", bonus); } else { from.SendMessage(32, "You fail to sharpen the weapon"); } if (Uses <= 1) { from.SendMessage(32, "You used up the sharpening stone"); Delete(); } else { --Uses; from.SendMessage(32, "You have {0} uses left", Uses); } } } else { from.SendMessage(32, "You can only enhance edged weapons"); } } else { from.SendMessage(32, "You can only enhance edged weapons"); } }
public override bool Axe(Mobile from, BaseAxe axe) { return(false); }
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 95, new YewBoard());
public override bool Axe(Mobile from, BaseAxe axe) { return false; }