
Untitled
By: a guest on
May 25th, 2012 | syntax:
None | size: 0.89 KB | hits: 10 | expires: Never
import org.rsbot.script.ScriptManifest;
import org.rsbot.script.Script;
import org.rsbot.script.wrappers.RSObject;
@ScriptManifest(authors = { "Ibot_fishing" }, keywords = { "IChop The next step to your goal" }, name = "IChop", version = 1.0, description = "Thanks for chosing to use IChop. I will not let you down.")
public class IChop extends Script {
private int WILLOW_TREE = 1308;
private int RUNE_HATCHET = 1359;
public boolean onStart(){
return true;
}
public int loop(){
if(inventory.isFull()){
inventory.dropAllExcept(RUNE_HATCHET);
}else{
if(getMyPlayer().getAnimation() == 867) {
RSObject tree = objects.getNearest(WILLOW_TREE);
if(tree !=null) {
tree.doAction("Chop");
sleep(random(500, 800));
return random(800, 1200);
}
}
}
}
}