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

Untitled

By: a guest on May 3rd, 2012  |  syntax: None  |  size: 1.86 KB  |  hits: 14  |  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.Script;
  2. import org.rsbot.script.ScriptManifest;
  3. import org.rsbot.script.wrappers.RSTile;
  4.  
  5. import java.util.Map;
  6.  
  7. @ScriptManifest(authors = "Reported", name = "RepsAutoMiner", version = 1.0, category = "Mining", description = " ")
  8. public class RepsAutoMiner extends Script {
  9.        
  10.         RSTile[] MineToBank = {new RSTile (3264 ,3429) , new RSTile (3280 ,3429) , new RSTile (3286 ,3413) , new RSTile (3291 ,3397) , new RSTile (3295 ,3380), new RSTile (3286 ,3368)};
  11.         RSTile[] BankToMine = {new RSTile (3293 ,3384) , new RSTile (3290 ,3400) , new RSTile (3288 ,3418) , new RSTile (3276 ,3428) , new RSTile (3258 ,3430) , new RSTile (3253 ,3421)} ;
  12.         public int RockID[] = {11954, 11955, 11956};
  13.        
  14.        
  15.         public boolean NeedToBank() {
  16.                
  17.         }
  18.        
  19.         public boolean AtMine() {
  20.                
  21.         }
  22.        
  23.         public boolean WalkToBank(){
  24.                 final RSTile[] MineToBank = randomizePath(MineToBank, 2, 2);
  25.                
  26.                 try {
  27.                         return MineToBank();
  28.                 } catch (final InterruptedException e) {
  29.                         e.printStackTrace ();
  30.        
  31.                 }
  32.                 return false;
  33.         }
  34.          
  35.        
  36.         public boolean AtBank(){
  37.                
  38.         }
  39.        
  40.         public boolean UseBank(){
  41.                
  42.         }
  43.        
  44.         public boolean NeedToMine(){
  45.                
  46.         }
  47.        
  48.         public boolean MineOres(){
  49.                
  50.         }
  51.        
  52.         public boolean WalkToMine(){
  53.                 final RSTile[] BankToMine = randomizePath(BankToMine, 2, 2);
  54.                
  55.                 try {
  56.                         return MineToBank.walkToEnd();
  57.                 } catch (final InterruptedException e) {
  58.                         e.printStackTrace ();
  59.        
  60.                 }
  61.                 return false;
  62.         }
  63.          
  64.        
  65.         public boolean onStart (Map<String, String>args) {
  66.                
  67.                 return true;
  68.         }
  69.        
  70.         public void onFinish() {
  71.                
  72.                 return true;
  73.         }
  74.        
  75.  
  76.         @Override
  77.         public int loop() {
  78.                 if (NeedToBank()) {
  79.                         if(AtMine()) {
  80.                                 if(WalkToBank());      
  81.                                 } else if (AtBank()) {
  82.                                         if (UseBank());
  83.                         }
  84.                 } else if (NeedToMine()) {
  85.                         if(AtMine()){
  86.                                 if(MineOres()) {
  87.                         } else if (AtBank()) {
  88.                                 if(WalkToMine());
  89.                         }
  90.                 }
  91.                 return 0;
  92.                 }
  93.                
  94. }              
  95. }