Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Map;
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.RSObject;
- import org.rsbot.script.wrappers.RSItem;
- @ScriptManifest(authors = "RXbots", name = "CutterfletcherRX", version = 1.0, description = "Cuts trees and fletches them to arrow shafts. Start in a area with many normal trees.")
- public class CutterfletcherRX extends Script {
- int[] TreeID = {1276,1278};
- int[] KnifeID = {946};
- int[] LogsID = {1511};
- public boolean onStart(){
- log("Visit rxbots.yolasite.com pl0x");
- log.severe("Enjoy our new Skiller-Friendly Script!");
- return true;
- }
- public void onFinish() {
- log("Thanks for using RXbots");
- }
- public void Chop() {
- RSObject tree = objects.getNearest(TreeID);
- if (tree != null && getMyPlayer().getAnimation() == -1) {
- tree.doAction("Chop");
- }
- sleep(random(1000,3000));
- }
- public void Fletch() {
- RSItem Log = inventory.getItem(LogsID);
- RSItem Knife = inventory.getItem(KnifeID);
- inventory.useItem(Knife, Log);
- while (getMyPlayer().getAnimation() == -1 ){
- sleep(10000);
- }
- sleep(random(2000,8000));
- break;
- }
- @Override
- public int loop(){
- if (inventory.isFull()) {
- Fletch();
- }else{
- if (!inventory.isFull()) {
- Chop();
- }
- return (random(1000, 1500));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement