Guest User

Untitled

a guest
Nov 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.25 KB | None | 0 0
  1. import java.awt.Color;
  2. import java.awt.Font;
  3. import java.awt.Graphics;
  4.  
  5. import org.rsbuddy.tabs.Inventory;
  6. import org.rsbuddy.widgets.Bank;
  7.  
  8. import com.rsbuddy.event.listeners.PaintListener;
  9. import com.rsbuddy.script.ActiveScript;
  10. import com.rsbuddy.script.Manifest;
  11.  
  12. import com.rsbuddy.script.methods.Calculations;
  13. import com.rsbuddy.script.methods.Camera;
  14. import com.rsbuddy.script.methods.Environment;
  15. import com.rsbuddy.script.methods.GroundItems;
  16. import com.rsbuddy.script.methods.Players;
  17. import com.rsbuddy.script.methods.Walking;
  18. import com.rsbuddy.script.util.Random;
  19. import com.rsbuddy.script.wrappers.GameObject;
  20. import com.rsbuddy.script.wrappers.Locatable;
  21. import com.rsbuddy.script.wrappers.Path;
  22. import com.rsbuddy.script.wrappers.Tile;
  23. import com.rsbuddy.script.wrappers.TilePath;
  24.  
  25.  
  26.  
  27. @Manifest(authors={"Tod & Possibly ryan if he gets moving"}, name="SlayerPro", keywords={"Slayer"}, version=1.0, description="Edit later")
  28. public class Slayerbot extends ActiveScript implements PaintListener{
  29.     Tile Burthropegate = new Tile(2936, 3451);
  30.     Tile Burthropemaster = new Tile(2956, 3451);
  31.     Path path = Walking.findPath(Burthropegate);
  32.     private int[] gateId = {  28690, 28691  };
  33.    
  34.    
  35.     public boolean onStart() {
  36.    
  37.         status = "Starting up";
  38.         return true;
  39.     }
  40.    
  41.    
  42.    
  43.    
  44.     private String status = "Unknown";
  45.     final Font comicPlain10 = new Font("Comic Sans MS", Font.PLAIN,  10);
  46.     final Color black = new Color(0, 0, 0);
  47.  
  48.     @Override
  49.     public int loop() {
  50.         status = "Looping";
  51.         if (Calculations.distanceTo(Burthropegate) > 7) {
  52.              Walking.stepTowards(Burthropegate);
  53.         } if (gateId != null){
  54.               Camera.turnTo(Burthropegate, 28690);
  55.        
  56.            
  57.             }
  58.             return Random.nextInt(250, 500);
  59.            
  60.        
  61.        
  62.            
  63.         }
  64.  
  65.        
  66.        
  67.  
  68.  
  69.    
  70.  
  71.            
  72.        
  73.    
  74.     public static Path findPath(Locatable locatable) {
  75.        
  76.         return null;
  77.        
  78.     }
  79.     public static boolean stepTowards(Tile destination) {
  80.         return false;
  81.     }
  82.    
  83.    
  84.  
  85.     private void newTilePath(int i, int j) {
  86.         // TODO Auto-generated method stub
  87.        
  88.     }
  89.  
  90.     public void onFinish() {
  91.         status = "Finishing";
  92.         Environment.saveScreenshot(true);
  93.     }
  94.  
  95.     @Override
  96.     public void onRepaint(Graphics g) {
  97.         g.setFont(comicPlain10);
  98.         g.setColor(black);
  99.  
  100.         g.drawString("Status: " + status, 20, 400);
  101.     }
  102. }
Add Comment
Please, Sign In to add comment