Guest User

Untitled

a guest
Jul 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. //skeleton by Indaface/part of script
  2.  
  3. import java.awt.Graphics;
  4.  
  5. import org.rsbot.event.events.ServerMessageEvent;
  6. import org.rsbot.event.listeners.PaintListener;
  7. import org.rsbot.event.listeners.ServerMessageListener;
  8.  
  9.  
  10. public class WillowChopper implements PaintListener {
  11.  
  12. public int willow = {x, x, x} //change the x's to the ID's add mroe if needed
  13. public int axe = {x, x, x} //change the x's to the ID's add more if needed
  14.  
  15. public enum state {chopping, dropping, findingTree};
  16.  
  17. public boolean chopping() {
  18. //make ur method may want to add states under these for your paint.. all the booleans
  19. }
  20.  
  21. public boolean dropping() {
  22. //make ur method here
  23. }
  24.  
  25. public boolean findTree() {
  26. //IDK if u will need/want this method...should be useful IDK will make it better...
  27. }
  28.  
  29. public int loop() {
  30. switch (boolean) {
  31. /// ^^IDK what goes here :) make something for it I just made that part up...
  32. chopping();
  33. break;
  34.  
  35. if(isInventoryFull){
  36. dropping();
  37. break;
  38. }
  39. findTree();
  40. break;
  41. }
  42. }
  43.  
  44. @Override
  45. public void onRepaint(Graphics render) {
  46. // TODO Auto-generated method stub
  47.  
  48. }
  49. }
Add Comment
Please, Sign In to add comment