-
Running Loop Once then Nothing.
Now it works. Thank you!
-
Running Loop Once then Nothing.
private List<Node> nodes = new ArrayList<Node>(); @[member=Override] public void onStart() { Collections.addAll(nodes, new Chopping(this)); } @[member=Override] public int onLoop() throws InterruptedException { for (Node n : nodes) { if (n.validate()) { n.execute(); break; } } return 200; } Constants c = new Constants(); RS2Object tree = sA.objects.closest("Tree"); public Chopping(Script sA) { super(sA); // TODO Auto-generated constructor stub } @[member=Override] public boolean validate() throws InterruptedException { return !sA.inventory.isFull(); } @[member=Override] public int execute() { if (tree != null) { tree.interact("Chop down"); new ConditionalSleep(1000, 4000) { @[member=Override] public boolean condition() throws InterruptedException { // TODO Auto-generated method stub return !sA.myPlayer().isAnimating(); } }.sleep(); } else { sA.camera.toEntity(tree); } return 200; } }
-
Running Loop Once then Nothing.
It would fix the spam clicking but it still doesn't loop it just stands there after chopping down the tree, there are no errors and the script doesn't stop, so I'm not really sure what is causing it.
-
Running Loop Once then Nothing.
If I just check if Inventory is full then it will just spam click. Doing it that way doesn't work anyway. And yes.
-
Running Loop Once then Nothing.
I have added dropping as well, but yes I chops once and then just stands around.
-
Running Loop Once then Nothing.
Just one node. public boolean validate() throws InterruptedException { return tree != null && tree.hasAction("Chop down") && !sA.myPlayer().isAnimating() && !sA.inventory.isFull();
-
Running Loop Once then Nothing.
public int onLoop() throws InterruptedException { for (Node n : nodes) { if (n.validate()) { n.execute(); } } return 200; } When I run this, it checks validate and then executes, but after it has finished executing it just stands there?
-
Calling an Instance in onLoop
Okay, so I have this in a separate class (file) and in my onStart: public class ChopTrees { public void chopTrees(Script sI) { public void onStart() { new ChopTrees(); What now?
-
Calling an Instance in onLoop
If I were to use the following code in my onLoop it uses a lot of CPU, what would be a better option? new ChopTrees(this);
-
Amazon Help
Isn't 1KG = 1,000ml? How much perfume are you buying OP?
-
How Much $ Would You Trust The Person ^ You?
$0.00
- Explv's Dank GUI Tutorial
-
Explv's Dank GUI Tutorial
When I run the script it doesn't actually start, it just exits and doesn't display anything in the log.
-
[Free] Kebab Money - Easy Money Making No Requirements
There shouldn't be any bugs, but if you find any please report them. https://mega.nz/#!GEZxFazQ!MkGIWIN6YNvAGUifQAZeZT8Bp-t5UwPVJ9uh3SNn39E Update Log: Version 1.0 (Release) How To Use: Start the script with an empty inventory and withdraw amount of gold for kebabs. Either be in the bank or the Kebab shop. Requirements: There are no requirements for the scripts, all you need is gold. It works on F2P or P2P. Information: It will buy kebabs for 1gp each from Karim the Kebab seller and then bank them, currently the sell for 29gp each, so it is good for some quick easy money to get you started. 10,000gp * 29 = 290,000gp back.