import org.rsbot.script.ScriptManifest; import org.rsbot.script.Script; import org.rsbot.script.wrappers.RSTile; import org.rsbot.script.wrappers.RSNPC; import org.rsbot.script.wrappers.RSInterface; import org.rsbot.script.wrappers.RSObject; import org.rsbot.event.listeners.PaintListener; import org.rsbot.event.listeners.ServerMessageListener; import org.rsbot.event.events.ServerMessageEvent; import java.awt.*; import java.text.Format; import java.text.SimpleDateFormat; import java.util.Map; import java.net.URL; import java.net.URLConnection; import java.io.BufferedReader; import java.io.InputStreamReader; @ScriptManifest(authors = { "Benaaasaaas" }, category = "Woodcutting", name = "Oaker", version = 1, description = "Pradedam prie bet kokiu oaku ") public class Oaker extends Script{ /* * This is where you place all your variables */ public int oakTree = 1281; public int wcAnimation = 871; public int[] hatchet = { 1349, 1351, 1353, 1355, 1357, 1359, 1361, 6739 }; public String getName(){ return "Oaker"; } public String getAuthor(){ return "Benas"; } public String getScriptCategory(){ return "Woodcutting"; } public double getVersion(){ return 0.1; } public boolean onStart(Map<String, String> args) { /* * What you want to do on the starting of the script * Goes here. It must return true for the script to run. * If you return false, it will stop the entire script * and it will say "Failed to startup"; * This will only be used once, at the beginning */ return true; } public void onFinish(){ return; } public int loop() { if(getMyPlayer().isMoving()){ return 800; } if(getMyPlayer().getAnimation() == wcAnimation){ return 800; } if(isInventoryFull()){ dropAllExcept(hatchet); return 800; } RSObject tree = findObject(oakTree); if(tree == null) return 800; atObject(tree, "Chop down"); return 300; } }
Jei galit išbandykit ar pas jus veikia ir jeigu žinot kur problema pasakykit
Perdarytas kerta willows
import org.rsbot.script.ScriptManifest; import org.rsbot.script.Script; import org.rsbot.script.wrappers.RSTile; import org.rsbot.script.wrappers.RSNPC; import org.rsbot.script.wrappers.RSInterface; import org.rsbot.script.wrappers.RSObject; import org.rsbot.event.listeners.PaintListener; import org.rsbot.event.listeners.ServerMessageListener; import org.rsbot.event.events.ServerMessageEvent; import java.awt.*; import java.text.Format; import java.text.SimpleDateFormat; import java.util.Map; import java.net.URL; import java.net.URLConnection; import java.io.BufferedReader; import java.io.InputStreamReader; @ScriptManifest(authors = { "Benaaasaaas" }, category = "Woodcutting", name = "Oaker", version = 1, description = "Pradedam prie bet kokiu oaku ") public class Oaker extends Script{ public int[] oakTree = {5551, 5552, 5553}; public int wcAnimation = 871; public int[] hatchet = { 1349, 1351, 1353, 1355, 1357, 1359, 1361, 6739 }; public boolean onStart(Map<String, String> args) { return true; } public void onFinish(){ return; } public int loop() { if(getMyPlayer().isMoving()){ return 800; } if(getMyPlayer().getAnimation() == wcAnimation){ return 800; } if(isInventoryFull()){ dropAllExcept(hatchet); return 800; } RSObject tree = findObject(oakTree); if (tree == null) return 500; atTree(tree, "Chop down"); wait(1500); return 300; } }