Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 0.89 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import org.rsbot.script.ScriptManifest;
  2. import org.rsbot.script.Script;
  3. import org.rsbot.script.wrappers.RSObject;
  4.  
  5. @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.")
  6. public class IChop extends Script {
  7.  
  8.     private int WILLOW_TREE = 1308;
  9.     private int RUNE_HATCHET = 1359;
  10.  
  11.     public boolean onStart(){
  12.         return true;
  13.     }
  14.  
  15.     public int loop(){
  16.     if(inventory.isFull()){
  17.       inventory.dropAllExcept(RUNE_HATCHET);
  18.        }else{
  19.       if(getMyPlayer().getAnimation() == 867) {
  20.         RSObject tree = objects.getNearest(WILLOW_TREE);
  21.           if(tree !=null) {
  22.             tree.doAction("Chop");
  23.             sleep(random(500, 800));
  24.                         return random(800, 1200);
  25.           }
  26.  
  27.              }
  28.  
  29.           }
  30.   }
  31. }