Advertisement
Guest User

Main.class

a guest
Jan 4th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. package me.wonderfulmang.aow;
  2.  
  3. import java.awt.Graphics2D;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6.  
  7. import org.osbot.rs07.script.Script;
  8. import org.osbot.rs07.script.ScriptManifest;
  9.  
  10. import me.wonderfulmang.aow.styles.DraynorStyle;
  11. import me.wonderfulmang.aow.styles.WoodcuttingStyle;
  12.  
  13. @ScriptManifest(author = "WonderfulMang", info = "AIO Banking Woodcutter", name = "Art of Woodcutting", version = 0.1, logo = "")
  14. public class Main extends Script{
  15.  
  16. public TreeType selectedTree;
  17. public HatchetType selectedHatchet;
  18. public WoodcuttingStyle currentStyle;
  19. public List<WoodcuttingStyle> styles = new ArrayList<WoodcuttingStyle>();
  20.  
  21. @Override
  22. public int onLoop() throws InterruptedException {
  23. if(currentStyle != null)
  24. {
  25. return currentStyle.runStyle();
  26. }
  27.  
  28. return random(200,300);
  29. }
  30.  
  31.  
  32. @Override
  33. public void onExit() throws InterruptedException {
  34. super.onExit();
  35. }
  36.  
  37. @Override
  38. public void onPaint(Graphics2D arg0) {
  39. super.onPaint(arg0);
  40. }
  41.  
  42.  
  43. @Override
  44. public void onStart() throws InterruptedException {
  45. DraynorStyle draynor = new DraynorStyle(this);
  46. styles.add(draynor);
  47.  
  48. selectedHatchet = HatchetType.DRAGON;
  49. selectedTree = TreeType.WILLOW;
  50.  
  51. draynor.setSelectedTree(selectedTree);
  52.  
  53. currentStyle = draynor;
  54. log("Selected: " + currentStyle.getAreaName());
  55. log("Selected Tree:" + selectedTree);
  56. log("Selected Hatchet: " + selectedHatchet);
  57.  
  58.  
  59.  
  60. }
  61.  
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement