From 850b09e6fca2131e70a972fcde076fb2036138ed Mon Sep 17 00:00:00 2001 From: Gptaqbc <56596815+Gptaqbc@users.noreply.github.com> Date: Tue, 24 Dec 2019 12:57:01 -0500 Subject: [PATCH] New stuff 5 (#322) * Refactored smithing and added cannonball making in there too (?) as the interface have an option for it. Refactored smithing and added cannonball making in there too (?) as the interface have an option for it. * Added check for hammer when smithing Added check for hammer when smithing --- .../game/content/skills/smithing/SmithingInterface.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/2006Redone Server/src/com/rebotted/game/content/skills/smithing/SmithingInterface.java b/2006Redone Server/src/com/rebotted/game/content/skills/smithing/SmithingInterface.java index 60b05bed..f1f38b6f 100644 --- a/2006Redone Server/src/com/rebotted/game/content/skills/smithing/SmithingInterface.java +++ b/2006Redone Server/src/com/rebotted/game/content/skills/smithing/SmithingInterface.java @@ -11,6 +11,11 @@ public class SmithingInterface { } public void showSmithInterface(int itemId) { + if (!c.getItemAssistant().playerHasItem(2347)) + { + c.getPacketSender().sendMessage("You need an hammer to do that."); + return; + } if (itemId == 2349 && c.tutorialProgress == 20) { c.getPacketSender().chatbox(6180); c.getDialogueHandler().chatboxText(c, "Now you have the Smithing menu open, you will see a list of all", "the things you can make. Only the dagger can be made at your", "skill level, this is shown by the white text under it. You'll need", "to select the dagger to continue.", "Smithing a dagger");