- Thread Author
- #1
Okay I've started writing a test script I can't really run it but it was a request from another member I can't test my scripts so I can't test the script so before I get any further with it I was going to see if someone can test it for me and tell me where it breaks at it is a flax spinner in lumbridge so if someone can test the script for me and tell me if my tasks even work it would be greatly appreciated
package com.whitlock.bots;
import com.runemate.game.api.hybrid.entities.GameObject;
import com.runemate.game.api.hybrid.entities.Player;
import com.runemate.game.api.hybrid.entities.details.Interactable;
import com.runemate.game.api.hybrid.input.Mouse;
import com.runemate.game.api.hybrid.local.hud.InteractablePoint;
import com.runemate.game.api.hybrid.local.hud.interfaces.Bank;
import com.runemate.game.api.hybrid.local.hud.interfaces.InterfaceComponent;
import com.runemate.game.api.hybrid.local.hud.interfaces.Interfaces;
import com.runemate.game.api.hybrid.local.hud.interfaces.Inventory;
import com.runemate.game.api.hybrid.location.Coordinate;
import com.runemate.game.api.hybrid.location.navigation.Path;
import com.runemate.game.api.hybrid.location.navigation.Traversal;
import com.runemate.game.api.hybrid.location.navigation.web.Web;
import com.runemate.game.api.hybrid.location.navigation.web.WebPath;
import com.runemate.game.api.hybrid.region.GameObjects;
import com.runemate.game.api.hybrid.region.Players;
import com.runemate.game.api.hybrid.util.Filter;
import com.runemate.game.api.script.framework.LoopingScript;
import com.sun.org.apache.xerces.internal.impl.xpath.XPath;
import javafx.animation.PauseTransition;
/**
* Created by Whitwock on 10/20/2015.
*/
public class Script1 extends LoopingScript {
public int flax = 418;
@Override
public void onLoop() {
try {
bank();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
}
}
public void bank() throws InterruptedException, IllegalAccessException, InstantiationException {
if (!Bank.isOpen()) {
Bank.open();
Bank.withdraw(flax, 28);
Bank.close();
walktostaircase();
}
}
public void walktostaircase() throws InstantiationException, IllegalAccessException {
Traversal.getDestination().derive(3205, 3209, 0).click();
godown();
}
public void godown() throws IllegalAccessException, InstantiationException {
InteractablePoint.class.newInstance().interact("Climb-down Staircase");
gotowheel();
}
public void gotowheel() throws InstantiationException, IllegalAccessException {
Traversal.getDestination().derive(3209,3213,0).click();
clickwheel();
}
public void clickwheel() throws IllegalAccessException, InstantiationException {
InteractablePoint.class.newInstance().interact("Spin Spinning wheel");
clickspin();
}
public void clickspin() throws IllegalAccessException, InstantiationException {
Interactable.class.newInstance().interact("Spin");
walkupstaircase();
}
private void walkupstaircase() throws InstantiationException, IllegalAccessException {
Traversal.getDestination().derive(3215,3210).click();
climbup();
}
private void climbup() throws IllegalAccessException, InstantiationException {
Interactable.class.newInstance().interact("Climb -up Staircase");
}
}
had to update the ID for flax still had it pulling out shark
package com.whitlock.bots;
import com.runemate.game.api.hybrid.entities.GameObject;
import com.runemate.game.api.hybrid.entities.Player;
import com.runemate.game.api.hybrid.entities.details.Interactable;
import com.runemate.game.api.hybrid.input.Mouse;
import com.runemate.game.api.hybrid.local.hud.InteractablePoint;
import com.runemate.game.api.hybrid.local.hud.interfaces.Bank;
import com.runemate.game.api.hybrid.local.hud.interfaces.InterfaceComponent;
import com.runemate.game.api.hybrid.local.hud.interfaces.Interfaces;
import com.runemate.game.api.hybrid.local.hud.interfaces.Inventory;
import com.runemate.game.api.hybrid.location.Coordinate;
import com.runemate.game.api.hybrid.location.navigation.Path;
import com.runemate.game.api.hybrid.location.navigation.Traversal;
import com.runemate.game.api.hybrid.location.navigation.web.Web;
import com.runemate.game.api.hybrid.location.navigation.web.WebPath;
import com.runemate.game.api.hybrid.region.GameObjects;
import com.runemate.game.api.hybrid.region.Players;
import com.runemate.game.api.hybrid.util.Filter;
import com.runemate.game.api.script.framework.LoopingScript;
import com.sun.org.apache.xerces.internal.impl.xpath.XPath;
import javafx.animation.PauseTransition;
/**
* Created by Whitwock on 10/20/2015.
*/
public class Script1 extends LoopingScript {
public int flax = 418;
@Override
public void onLoop() {
try {
bank();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
}
}
public void bank() throws InterruptedException, IllegalAccessException, InstantiationException {
if (!Bank.isOpen()) {
Bank.open();
Bank.withdraw(flax, 28);
Bank.close();
walktostaircase();
}
}
public void walktostaircase() throws InstantiationException, IllegalAccessException {
Traversal.getDestination().derive(3205, 3209, 0).click();
godown();
}
public void godown() throws IllegalAccessException, InstantiationException {
InteractablePoint.class.newInstance().interact("Climb-down Staircase");
gotowheel();
}
public void gotowheel() throws InstantiationException, IllegalAccessException {
Traversal.getDestination().derive(3209,3213,0).click();
clickwheel();
}
public void clickwheel() throws IllegalAccessException, InstantiationException {
InteractablePoint.class.newInstance().interact("Spin Spinning wheel");
clickspin();
}
public void clickspin() throws IllegalAccessException, InstantiationException {
Interactable.class.newInstance().interact("Spin");
walkupstaircase();
}
private void walkupstaircase() throws InstantiationException, IllegalAccessException {
Traversal.getDestination().derive(3215,3210).click();
climbup();
}
private void climbup() throws IllegalAccessException, InstantiationException {
Interactable.class.newInstance().interact("Climb -up Staircase");
}
}
had to update the ID for flax still had it pulling out shark