Search the Community
Showing results for tags 'smither'.
-
import org.dreambot.api.methods.interactive.GameObjects; import org.dreambot.api.methods.interactive.Players; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.script.listener.AnimationListener; import org.dreambot.api.wrappers.interactive.GameObject; import org.dreambot.api.wrappers.interactive.Player; @ScriptManifest(author = "Deep Slayer", name = "Testing script", version = 1.0, description = "for testing snippets", category = Category.MISC ) public class TestingPurposes extends AbstractScript implements AnimationListener { private long idleAnimationStartTime = -1; // Time when the idle animation starts private boolean finishedSmelting = false; @Override public void onPlayerAnimation(Player player, int animation, int animationDelay) { // Check if not animating if (Players.getLocal().getAnimation() == -1) { // If not animating record the time if (idleAnimationStartTime == -1) { idleAnimationStartTime = System.currentTimeMillis(); } else { // Check if it has been more than 2 seconds if (System.currentTimeMillis() - idleAnimationStartTime > 2000) { finishedSmelting = true; log("We are finished smelting"); } } } else { // Reset the timer if the player starts a new animation idleAnimationStartTime = -1; finishedSmelting = false; log("We are NOT finished smelting"); } } @Override public int onLoop() { GameObject furnace = GameObjects.closest("Furnace"); if (furnace != null && furnace.isOnScreen() && Players.getLocal().isStandingStill()) { if (finishedSmelting) { furnace.interact("Smelt"); sleep(2000, 2500); // Adjust sleep as necessary finishedSmelting = false; // Reset flag after interaction } } return 500; } }
-
Why Choose this script: Progressive mode. Supports all bars Fast Exp Both f2p & p2p spots What does this script do: Gets you 1-99 Smithing Requirements: 1 Smithing Smithing supplies Supports: Bars: Bronze, Iron, Steel, Mithril, Adamant, Rune Items: Dagger, Sword, Scimitar, Long sword, Two hand sword, Axe, Mace, Wathammer, Battle axe, Chain body, Plate legs, Plate skirt, Plate body, Nails, Medium helm, Full helm, Square shield, Kite shield, Dart tips, Arrowtips, Knives, Javalin heads, Bolts, Limbs. How to start: Start the script anywhere on runescape ground floor Have Smithing supplies in the bank! GUI: Proggy: Signature: Get your own by adding this to you're signature: [img=http://nexscripting.com/users/YOURNAME&script=smither.png] On the SDN for only 9.99 Up-vote this thread & join the discord to request your trial: https://discord.gg/DtbhEXJ
- 133 replies