Snippets
3 topics in this forum
-
Open source eating handler, welcome to any feed back as I use this in my combat scripts: Spoiler package utils; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.script.Script; import java.io.PrintWriter; import java.io.StringWriter; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.ReentrantLock; public class EatingHandler implements Runnable { private final Script script; private final int eatBelowHP; private final String food; private final ReentrantLock lock; private AtomicBoolean running; private volatile boolean stopped = false; private enum State { EATING_NOT_REQUI…
-
- 8 replies
- 1.4k views
- 1 follower
-
-
Wasn't satisfied with the available fly fish + cook scripts in the script network. Here's a simple snippet for you all: Simply have feathers and fly fishing rod in your inventory. Make sure inventory slot 2 is empty as the script will always cook the raw fish in this slot first, then will cook the opposite (salmon or trout) after. FYI: Since cooking on a fire causes the player to go out of animation after every cooking action, using My Player Is Not Animating is not good enough. If your player is cooking and your script enters the IF statement where you select the fish, by the time the script has selected that fish, your player will have cooked that fish. Your s…
-
- 1 reply
- 2.8k views
-
-
Wasn't happy with any of the iron ore power miners on the script network, so here's a simple one for you all: This one is for the 3 iron ores in Verdant Valley, Fossil Island. Change the rock positions and the rock ids and this'll work for any sets of rocks. <Integer>RockCounter:1 <Boolean>IsAnimating:false <Position>RockThree:3767,3756,0 <Position>RockTwo:3768,3757,0 <Position>RockOne:3767,3758,0 [1, RS2Object, getPosition, 2:11364, 1:RockOne, 1:==] [1, Variables, getInteger, 1:RockCounter, 1:==, 2:1] [1, MyPlayer, isAnimating, {false}] [1, Inventory, isFull, {false}] [1, RS2Object, interactWithAtPosition, 2:11364, 1:Mine, 1:RockO…
-
- 0 replies
- 1.6k views
-
Recently Browsing 0
- No registered users viewing this page.