SHARE
TWEET

Untitled

a guest Sep 14th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import org.rsbot.script.*;
  2. import org.rsbot.script.wrappers.*;
  3. import org.rsbot.event.events.MessageEvent;
  4. import org.rsbot.event.listeners.MessageListener;
  5. import org.rsbot.event.listeners.PaintListener;
  6. import org.rsbot.script.Script;
  7. import org.rsbot.script.ScriptManifest;
  8. import org.rsbot.script.wrappers.RSObject;
  9. import org.rsbot.script.wrappers.RSTile;
  10. import org.rsbot.script.wrappers.RSTilePath;
  11. import org.rsbot.script.methods.GrandExchange.GEItem;
  12. import org.rsbot.script.wrappers.RSItem;
  13. import org.rsbot.script.wrappers.RSGroundItem;
  14. import org.rsbot.script.methods.Camera;
  15.  
  16. import java.awt.*;
  17. import java.awt.event.ActionEvent;
  18. import java.awt.event.ActionListener;
  19. import java.net.URL;
  20. import java.awt.Graphics;
  21. import java.awt.Graphics2D;
  22. import java.awt.Image;
  23. import java.awt.event.*;
  24.  
  25. import javax.imageio.ImageIO;
  26. import java.io.IOException;
  27.  
  28. import javax.swing.*;
  29. import javax.swing.event.*;
  30. import javax.swing.JButton;
  31. import javax.swing.JCheckBox;
  32. import javax.swing.JFrame;
  33. import javax.swing.JLabel;
  34. import javax.swing.JSlider;
  35. import javax.swing.WindowConstants;
  36. import javax.swing.border.TitledBorder;
  37. import javax.swing.GroupLayout.ParallelGroup;
  38. import java.awt.event.MouseEvent;
  39. import java.awt.event.MouseListener;
  40.  
  41. import org.rsbot.script.wrappers.RSComponent;
  42.  
  43. import org.rsbot.event.events.MessageEvent;
  44. import org.rsbot.event.listeners.PaintListener;
  45. import org.rsbot.script.Script;
  46. import org.rsbot.script.ScriptManifest;
  47. import org.rsbot.script.*;
  48. import org.rsbot.script.methods.Game;
  49. import org.rsbot.script.methods.Skills;
  50. import org.rsbot.script.wrappers.RSObject;
  51. import org.rsbot.script.wrappers.RSTile;
  52. import org.rsbot.script.wrappers.RSItem;
  53. import org.rsbot.script.wrappers.RSModel;
  54. import org.rsbot.script.wrappers.RSWeb;
  55. import org.rsbot.script.wrappers.RSGroundItem;
  56. import org.rsbot.script.util.Timer;
  57. //Imports for custom mouse
  58. import javax.imageio.ImageIO;
  59. import java.io.IOException;
  60. import java.net.URL;
  61.  
  62. //Imports for paint
  63. import java.awt.*;
  64. import java.awt.event.*;
  65. import javax.swing.*;
  66. import javax.swing.GroupLayout;
  67. import javax.swing.LayoutStyle;
  68. import java.util.*;
  69. import java.net.*;
  70. import java.util.List;
  71. import java.util.logging.Level;
  72. import java.lang.reflect.Method;
  73. import javax.accessibility.*;
  74. import javax.swing.*;
  75. import org.rsbot.*;
  76. import org.rsbot.bot.Bot;
  77. import org.rsbot.script.*;
  78. import org.rsbot.script.wrappers.*;
  79. import org.rsbot.event.listeners.*;
  80.  
  81. //Imports for custom mouse
  82. import java.awt.image.BufferedImage;
  83. import java.io.IOException;
  84. import java.net.MalformedURLException;
  85. import java.net.URL;
  86. import javax.imageio.ImageIO;
  87.  
  88. //Imports for paint
  89. import java.awt.*;
  90. import java.awt.event.*;
  91. import javax.swing.*;
  92. import javax.swing.GroupLayout;
  93. import javax.swing.LayoutStyle;
  94. import org.rsbot.event.events.MessageEvent;
  95. import org.rsbot.event.listeners.MessageListener;
  96. import org.rsbot.event.listeners.PaintListener;
  97. import org.rsbot.script.Script;
  98. import org.rsbot.script.ScriptManifest;
  99. import org.rsbot.script.wrappers.RSObject;
  100. import org.rsbot.script.wrappers.RSTile;
  101. import org.rsbot.script.wrappers.RSTilePath;
  102. import org.rsbot.script.methods.GrandExchange.GEItem;
  103. import org.rsbot.script.wrappers.RSItem;
  104. import org.rsbot.script.wrappers.RSGroundItem;
  105. import org.rsbot.script.methods.Camera;
  106. import java.util.*;
  107. import java.net.*;
  108. import java.util.List;
  109. import java.util.logging.Level;
  110. import java.lang.reflect.Method;
  111. import javax.accessibility.*;
  112. import javax.swing.*;
  113. import org.rsbot.*;
  114. import org.rsbot.bot.Bot;
  115. import org.rsbot.script.*;
  116. import org.rsbot.script.wrappers.*;
  117. import org.rsbot.event.listeners.*;
  118.  
  119. //Imports for custom mouse
  120. import java.awt.Color;
  121. import java.awt.Font;
  122. import java.awt.Graphics;
  123.  
  124. import javax.swing.JOptionPane;
  125.  
  126. import org.rsbot.event.listeners.PaintListener;
  127. import org.rsbot.script.Script;
  128. import org.rsbot.script.ScriptManifest;
  129. import org.rsbot.script.methods.Game;
  130. import org.rsbot.script.methods.Methods;
  131. import org.rsbot.script.methods.Skills;
  132. import org.rsbot.script.wrappers.RSArea;
  133. import org.rsbot.script.wrappers.RSComponent;
  134. import org.rsbot.script.wrappers.RSGroundItem;
  135. import org.rsbot.script.wrappers.RSPath;
  136. import org.rsbot.script.wrappers.RSTile;
  137. import org.rsbot.script.wrappers.RSObject;
  138. import java.awt.image.BufferedImage;
  139. import java.io.IOException;
  140. import java.net.MalformedURLException;
  141. import java.net.URL;
  142. import javax.imageio.ImageIO;
  143.  
  144. //Imports for paint
  145. import java.awt.*;
  146. import java.awt.event.*;
  147. import javax.swing.*;
  148. import javax.swing.GroupLayout;
  149. import javax.swing.LayoutStyle;
  150.  
  151.  
  152. @ScriptManifest(authors = {"Unhinging"}, keywords = {"Profit?"}, name = "Java", description = "Does nothing yet!", version = 1.2)
  153.  
  154. public class Java extends Script {
  155.  
  156.     private final static int[] BOOTH_ID = {2759, 782, 533};
  157.     private final static int[] CHOP_ID = {5553, 5551, 5553, 5551, 46322,
  158.             1281, 114423, 46325, 673, 470, 670, 675};
  159.     private final static int CHOPPING_ANIMATION = 867;
  160.     private RSTile tree1 = new RSTile (3168, 3421), tree2 = new RSTile (3162, 3417), tree3 = new RSTile (3166, 3412);
  161.     private boolean tree1Stat, tree2Stat, tree3Stat;
  162.     private long tree1DownTime, tree2DownTime, tree3DownTime;
  163.     private long tree1TimeDown, tree2TimeDown, tree3TimeDown;
  164.     private long tree1UpTime, tree2UpTime, tree3UpTime;
  165.     private long tree1TimeUp, tree2TimeUp, tree3TimeUp;
  166.     private int tree = 1281;
  167.     private int stump = 1356;
  168.     public int [] BNID = {5070, 5071, 5072, 5073, 5074, 5075, 5076, 7413, 11966};
  169.     public int [] AXE_ID = {1349, 1351, 1353, 1355, 1357, 1359, 1361, 6739, 13470};
  170.     public int NORMAL_ANIMATION = -1;
  171.     public int oak_id = 1521;
  172.    
  173.     boolean chopping = false;
  174.     boolean walk_to_bank = false;
  175.     boolean banking = false;
  176.     boolean Waiting = false;
  177.     boolean walk_to_oak = false;
  178.     boolean starting = false;
  179.     boolean pick_up_nest = false;
  180.    
  181.     //Initiates Status Loading..
  182.     private String status = "Loading...";
  183.    
  184.     RSTile tile = new RSTile(3189, 3435);
  185.    
  186.     private final static RSTile[] PATH_TO_BANK = {new RSTile(3216, 3499), new RSTile(3199, 3501),
  187.             new RSTile(3195, 3490), new RSTile(3180, 3488), new RSTile(3171, 3490), new RSTile(3167, 3489),
  188.             new RSTile(3167, 3490)};
  189.    
  190.     @Override
  191.     public boolean onStart() {
  192.         log(Color.CYAN, "Thank you for choosing Java.OS by Unhinging!");
  193.         RSPath path = walking.getPath(tile);
  194.         path.traverse()
  195.         camera.setCompass('w');
  196.         mouse.setSpeed(random(2, 5));
  197.         tree = 1281;
  198.         stump = 1356;
  199.         tree1 = new RSTile(3168, 3421);
  200.         tree2 = new RSTile(3162, 3417);
  201.         return true;
  202.     }
  203.  
  204.     public int loop() {
  205.         return random(700, 800);
  206.     }
  207.    
  208.     @Override
  209.     public void onFinish() {
  210.     log(Color.CYAN, "Thank you for choosing Java by Unhinging!");
  211.     }
  212.  
  213. }
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top