Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.Script;
- import org.rsbot.script.wrappers.RSObject;
- @ScriptManifest(authors = { "kaas" }, keywords = { "kaas" }, name = "test", version = 1.0, description = "kaas")
- public class Test extends Script {
- private int TREE = 1278;
- private int RUNE_HATCHET = 1359;
- public boolean onStart(){
- return true;
- }
- public int loop(){
- if(inventory.isFull()){
- inventory.dropAllExcept(RUNE_HATCHET);
- }else{
- if(get my player().getAnimation() != 867) {
- RSObject tree = objects.getNearest(TREE);
- if(tree != null){
- tree.doAction("chop");
- sleep (500, 800);
- }
- }
- }
- return random(100, 200);
- }
- public void onFinish(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement