Advertisement
deww1

Untitled

Jun 24th, 2011
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.90 KB | None | 0 0
  1. import java.awt.*;
  2.  
  3. import java.awt.BasicStroke;
  4. import java.awt.Color;
  5. import java.awt.Container;
  6. import java.awt.Font;
  7. import java.awt.Graphics;
  8. import java.awt.Graphics2D;
  9. import java.awt.Image;
  10. import java.awt.event.ActionEvent;
  11. import java.awt.event.ActionListener;
  12. import java.awt.event.WindowAdapter;
  13. import java.awt.event.WindowEvent;
  14. import java.io.IOException;
  15. import java.net.URL;
  16.  
  17. import javax.imageio.ImageIO;
  18. import javax.swing.DefaultComboBoxModel;
  19. import javax.swing.GroupLayout;
  20. import javax.swing.JButton;
  21. import javax.swing.JComboBox;
  22. import javax.swing.JFrame;
  23. import javax.swing.JLabel;
  24. import javax.swing.JRadioButton;
  25. import javax.swing.JSeparator;
  26. import javax.swing.JSlider;
  27. import javax.swing.JToggleButton;
  28. import javax.swing.LayoutStyle;
  29. import javax.swing.event.ChangeEvent;
  30. import javax.swing.event.ChangeListener;
  31.  
  32. import org.rsbot.event.listeners.PaintListener;
  33. import org.rsbot.script.Script;
  34. import org.rsbot.script.ScriptManifest;
  35. import org.rsbot.script.methods.Game.Tab;
  36. import org.rsbot.script.util.Timer;
  37. import org.rsbot.script.wrappers.RSObject;
  38.  
  39.  
  40. @ScriptManifest(authors = {"Prosubzero"}, keywords = {""}, name = "FrozenIronMiner", description = "The Fastest way to get 99.", version = 1)
  41.  
  42. public class GUI extends Script implements PaintListener {
  43. int [] ironRockID = {2092, 2093, 5773, 5774, 5775, 9717, 9718, 9719, 11954, 11955, 11956, 14913, 14914, 31071, 31072, 31073, 37307, 37308, 37309 };
  44. int [] pickaxe = {1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107, 15259, 15261 };
  45.  
  46.  
  47. @Override
  48. public boolean onStart() {
  49. AB.setVisible(true);
  50. while(AB.isVisible()){
  51. sleep(200);
  52. }
  53. return true;
  54. }
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. public int loop() {
  65. AB.antiBanMethod();
  66. if (AB.AFKTimer.isRunning())
  67. return 200;
  68. if (!inventory.isFull()) {
  69. if (players.getMyPlayer().getAnimation() == -1) {
  70. RSObject rock = objects.getNearest(ironRockID);
  71. if (rock != null) {
  72. rock.doAction("Mine");
  73. }
  74. }
  75. else{
  76. inventory.dropAllExcept(pickaxe);
  77.  
  78. }
  79.  
  80. }
  81. return random(300, 500);
  82.  
  83. }
  84. public AntiBan AB = new AntiBan();
  85.  
  86. class AntiBan extends JFrame {
  87.  
  88. /*
  89. @Author Joe Titus
  90. @Date 5/8/2011
  91. */
  92.  
  93. public Timer antiBanTimer = new Timer(0);
  94. public boolean customAB, AFK, Mouse, Camera, Tabs, LogOut, ABOn;
  95. public int ABFreq;
  96.  
  97.  
  98. public double ABFreqTime;
  99. Timer AFKTimer = new Timer (0);
  100. public void antiBanMethod(){
  101. if (ABOn){
  102. if (!antiBanTimer.isRunning() && !AFKTimer.isRunning()){
  103. antiBan();
  104. antiBanTimer.setEndIn((int)random(ABFreqTime * .33, ABFreqTime * 1.66));
  105. }
  106. }
  107. }
  108.  
  109.  
  110.  
  111.  
  112.  
  113. public void antiBan(){
  114. int t = 0;
  115. if (Camera){t++;};
  116. if (Tabs){t++;};
  117. if (AFK){t++;};
  118. if (Mouse){t++;};
  119. t += 0;
  120. switch(random(1, t)){
  121. case 1:
  122. if (Camera){
  123. camera.turnTo(getMyPlayer().getLocation().randomize(5, 5), 5);
  124. sleep(random(500, 750));
  125. return;
  126. }
  127. case 2:
  128. if (Tabs){
  129. switch(random(1, 4)){
  130. case 1:
  131. game.openTab(Tab.FRIENDS);
  132. mouse.move((585+random(-35, 35)), (330+random(-90, 90)));
  133. sleep(750, 3000);
  134. game.openTab(Tab.INVENTORY);
  135. sleep(random(500, 750));
  136. return;
  137.  
  138. case 2:
  139. game.openTab(Tab.CLAN_CHAT);
  140. mouse.move((585+random(-35, 35)), (330+random(-90, 90)));
  141. sleep(750, 1500);
  142. game.openTab(Tab.INVENTORY);
  143. sleep(random(500, 750));
  144. return;
  145.  
  146. default:
  147. game.openTab(Tab.STATS);
  148. mouse.moveRandomly(random(1, 300));
  149. sleep(750, 1500);
  150. game.openTab(Tab.INVENTORY);
  151. sleep(random(500, 750));
  152. return;
  153. }
  154. }
  155. case 3:
  156. if (AFK){
  157. int r = random(1, 100);
  158. if (r < 75){
  159. AFKTimer.setEndIn(random(3000, 5000));
  160. } else if (r >= 70 && r < 90){
  161. AFKTimer.setEndIn(random(5000, 15000));
  162. } else {
  163. AFKTimer.setEndIn(random(10000, 30000));
  164. }
  165. return;
  166.  
  167. }
  168. case 4:
  169. if (Mouse){
  170. int s = random(1, 4);
  171. switch(s){
  172. case 1:
  173. mouse.moveOffScreen();
  174. sleep(750, 1500);
  175. return;
  176. case 2:
  177. mouse.moveSlightly();
  178. sleep(500, 1000);
  179. return;
  180. case 3:
  181. mouse.moveRandomly(random(1, 300));
  182. sleep(750, 1500);
  183. return;
  184. default:
  185. return;
  186. }
  187. }
  188. default:
  189. return;
  190. }
  191. }
  192. public void setEnabled(boolean a, boolean b, boolean c, boolean d,
  193. boolean e, boolean f, boolean g, boolean h,
  194. boolean i, boolean j, boolean k, boolean l){
  195.  
  196. ABFreqSlider.setEnabled(a);
  197. ABOnOff.setEnabled(b);
  198. customAntiBanButton.setEnabled(c);
  199. ABLevelOptions.setEnabled(d);
  200. separator1.setEnabled(e);
  201. ABFreqLabel.setEnabled(f);
  202. AFKCheck.setEnabled(g);
  203. mouseMoveCheck.setEnabled(h);
  204. camMoveCheck.setEnabled(i);
  205. logOutCheck.setEnabled(j);
  206. openTabsCheck.setEnabled(k);
  207. ABLevelLabel.setEnabled(l);
  208.  
  209. }
  210.  
  211. public void getSettings(){
  212. if (!ABOnOff.isSelected()){
  213. ABOn = true;
  214. if (customAntiBanButton.isSelected()){
  215. customAB = true;
  216. ABFreq = ABFreqSlider.getValue();
  217. AFK = AFKCheck.isSelected();
  218. Mouse = mouseMoveCheck.isSelected();
  219. Camera = camMoveCheck.isSelected();
  220. Tabs = openTabsCheck.isSelected();
  221. LogOut = logOutCheck.isSelected();
  222. } else {
  223. customAB = false;
  224. if (ABLevelOptions.getSelectedItem().toString().contains("Low")) {
  225. ABFreq = 20;
  226. LogOut = true;
  227. Camera = true;
  228. Mouse = true;
  229.  
  230. } else if (ABLevelOptions.getSelectedItem().toString().contains("Medium")) {
  231. ABFreq = 40;
  232. Mouse = true;
  233. LogOut = true;
  234. Camera = true;
  235. AFK = true;
  236.  
  237. } else if (ABLevelOptions.getSelectedItem().toString().contains("High")) {
  238. ABFreq = 60;
  239. LogOut = true;
  240. Camera = true;
  241. Tabs = true;
  242. AFK = true;
  243. Mouse = true;
  244. }
  245. }
  246. log("AntiBan on");
  247. ABFreqTime = ((double)(240 / ABFreq) * 15000);
  248. antiBanTimer = new Timer ((int)random(ABFreqTime * .5, ABFreqTime * 1.5));
  249. } else {
  250. log("AntiBan off");
  251. ABOn = false;
  252. }
  253. }
  254. public void ABToggle(){
  255. if ((ABOnOff.isSelected())){
  256. setEnabled(false, true, false, false, false, false, false, false, false, false, false, false);
  257. } else {
  258. if (customAntiBanButton.isSelected()){
  259. setEnabled(true, true, true, false, true, true, true, true, true, false, true, false);
  260. } else {
  261. setEnabled(false, true, true, true, true, false, false, false, false, false, false, true);
  262. }
  263. }
  264. }
  265. public void cantCont(){
  266. if ((customAntiBanButton.isSelected() && !AFKCheck.isSelected() && !mouseMoveCheck.isSelected()
  267. && !camMoveCheck.isSelected() && !openTabsCheck.isSelected()) || ABFreqSlider.getValue() == 0){
  268. contButton.setEnabled(false);
  269. } else {
  270. contButton.setEnabled(true);
  271. }
  272. }
  273.  
  274. public AntiBan() {
  275. initComponents();
  276. }
  277.  
  278. private void ABFreqSliderStateChanged(ChangeEvent e) {
  279. cantCont();
  280. }
  281.  
  282. private void ABOnOffStateChanged(ChangeEvent e) {
  283. ABOnOff.setToolTipText("The AntiBan is currently: " + content());
  284. ABOnOff.setText("Turn AntiBan " + OPcontent());
  285. ABToggle();
  286. cantCont();
  287. }
  288.  
  289. private void customAntiBanButtonStateChanged(ChangeEvent e) {
  290. ABToggle();
  291. cantCont();
  292. }
  293. private void AFKCheckStateChanged(ChangeEvent e) {
  294. cantCont();
  295. }
  296. private void mouseMoveCheckStateChanged(ChangeEvent e) {
  297. cantCont();
  298. }
  299. private void camMoveCheckStateChanged(ChangeEvent e) {
  300. cantCont();
  301. }
  302. private void logOutCheckStateChanged(ChangeEvent e) {
  303. cantCont();
  304. }
  305. private void openTabsCheckStateChanged(ChangeEvent e) {
  306. cantCont();
  307. }
  308. private void contButtonActionPerformed(ActionEvent e) {
  309. getSettings();
  310. setVisible(false);
  311. }
  312. String content(){
  313. if (ABOnOff.isSelected()){
  314. return "OFF";
  315. } else {
  316. return "ON";
  317. }
  318. }
  319. String OPcontent(){
  320. if (!ABOnOff.isSelected()){
  321. return "OFF";
  322. } else {
  323. return "ON";
  324. }
  325. }
  326. private void initComponents() {
  327. ABFreqSlider = new JSlider();
  328. ABOnOff = new JToggleButton();
  329. customAntiBanButton = new JRadioButton();
  330. ABLevelOptions = new JComboBox()
  331. ; separator1 = new JSeparator();
  332. ABFreqLabel = new JLabel();
  333. AFKCheck = new JRadioButton();
  334. mouseMoveCheck = new JRadioButton();
  335. camMoveCheck = new JRadioButton();
  336. logOutCheck = new JRadioButton();
  337. openTabsCheck = new JRadioButton();
  338. ABLevelLabel = new JLabel();
  339. contButton = new JButton();
  340.  
  341. addWindowListener(new WindowAdapter() {
  342. public void windowClosing(WindowEvent e) {
  343. stopScript();
  344. }
  345. });
  346. //======== this ========
  347. setTitle("AntiBan");
  348. Container contentPane = getContentPane();
  349. //---- ABFreqSlider ----
  350. ABFreqSlider.setMajorTickSpacing(40);
  351. ABFreqSlider.setSnapToTicks(true);
  352. ABFreqSlider.setPaintTicks(true);
  353. ABFreqSlider.setBackground(new Color(238, 238, 238));
  354. ABFreqSlider.setEnabled(false);
  355. ABFreqSlider.setPaintLabels(true);
  356. ABFreqSlider.setMinorTickSpacing(8);
  357. ABFreqSlider.setMaximum(240);
  358. ABFreqSlider.setValue(60);
  359. ABFreqSlider.setToolTipText("Allows you to select the average amount of AntiBans per hour");
  360. ABFreqSlider.addChangeListener(new ChangeListener() {
  361. @Override
  362. public void stateChanged(ChangeEvent e) {
  363. ABFreqSliderStateChanged(e);
  364. }
  365. });
  366. //---- ABOnOff ----
  367. ABOnOff.setText("Turn AntiBan Off");
  368.  
  369. ABOnOff.setToolTipText("The AntiBan is currently: ON");
  370. ABOnOff.addChangeListener(new ChangeListener() {
  371. @Override
  372. public void stateChanged(ChangeEvent e) {
  373. ABOnOffStateChanged(e);
  374. }
  375. });
  376. //---- customAntiBanButton ----
  377. customAntiBanButton.setText("Custumized AntiBan");
  378. customAntiBanButton.setToolTipText("Enables you to customize your AntiBan");
  379. customAntiBanButton.addChangeListener(new ChangeListener() {
  380. @Override
  381. public void stateChanged(ChangeEvent e) {
  382. customAntiBanButtonStateChanged(e);
  383. }
  384. });
  385. //---- ABLevelOptions ----
  386. ABLevelOptions.setModel(new DefaultComboBoxModel(new String[] {
  387. "Low"
  388. , "Medium",
  389. "High"
  390. }));
  391. ABLevelOptions.setSelectedIndex(2);
  392. ABLevelOptions.setToolTipText("Selects the level of AntiBan");
  393. //---- separator1 ----
  394. separator1.setForeground(new Color(100, 100, 100));
  395. //---- ABFreqLabel ----
  396. ABFreqLabel.setText("Avg. AntiBans P/H");
  397. ABFreqLabel.setToolTipText("Average. AntiBans per hour");
  398. ABFreqLabel.setEnabled(false);
  399.  
  400. //---- AFKCheck ----
  401. AFKCheck.setText("AFK's");
  402. AFKCheck.setEnabled(false);
  403. AFKCheck.setToolTipText("If checked, the AntiBan will perform AFK's");
  404. AFKCheck.addChangeListener(new ChangeListener() {
  405. @Override
  406. public void stateChanged(ChangeEvent e) {
  407. AFKCheckStateChanged(e);
  408. }
  409. });
  410.  
  411. //---- mouseMoveCheck ----
  412. mouseMoveCheck.setText("Mouse MoveMents");
  413. mouseMoveCheck.setEnabled(false);
  414. mouseMoveCheck.setToolTipText("If checked, the AntiBan will move the mouse");
  415. mouseMoveCheck.addChangeListener(new ChangeListener() {
  416. @Override
  417. public void stateChanged(ChangeEvent e) {
  418. mouseMoveCheckStateChanged(e);
  419. }
  420. });
  421. //---- camMoveCheck ----
  422. camMoveCheck.setText("Camera Movements");
  423. camMoveCheck.setEnabled(false);
  424. camMoveCheck.setToolTipText("If checked, the AntiBan will move the camera");
  425. camMoveCheck.addChangeListener(new ChangeListener() {
  426. @Override
  427. public void stateChanged(ChangeEvent e) {
  428. camMoveCheckStateChanged(e);
  429. }
  430. });
  431.  
  432. //---- logOutCheck ----
  433. logOutCheck.setText("Log Out if Innactive");
  434. logOutCheck.setEnabled(false);
  435. logOutCheck.setVisible(false);
  436. logOutCheck.setToolTipText("Currently under construction");
  437. logOutCheck.addChangeListener(new ChangeListener() {
  438. @Override
  439. public void stateChanged(ChangeEvent e) {
  440. logOutCheckStateChanged(e);
  441. }
  442. });
  443.  
  444. //---- openTabsCheck ----
  445. openTabsCheck.setText("Open Tabs");
  446. openTabsCheck.setEnabled(false);
  447. openTabsCheck.setToolTipText("If checked, the AntiBan will open your friends list tab");
  448. openTabsCheck.addChangeListener(new ChangeListener() {
  449. @Override
  450. public void stateChanged(ChangeEvent e) {
  451. openTabsCheckStateChanged(e);
  452. }
  453. });
  454.  
  455. //---- ABLevelLabel ----
  456. ABLevelLabel.setText("AntiBan Level");
  457. ABLevelLabel.setToolTipText("AntiBan Level");
  458.  
  459. //---- contButton ----
  460. contButton.setText("Continue");
  461. contButton.setToolTipText("Starts the Script");
  462. contButton.addActionListener(new ActionListener() {
  463. @Override
  464. public void actionPerformed(ActionEvent e) {
  465. contButtonActionPerformed(e);
  466. }
  467. });
  468.  
  469. GroupLayout contentPaneLayout = new GroupLayout(contentPane);
  470. contentPane.setLayout(contentPaneLayout);
  471. contentPaneLayout.setHorizontalGroup(
  472. contentPaneLayout.createParallelGroup()
  473. .addGroup(contentPaneLayout.createSequentialGroup()
  474. .addGroup(contentPaneLayout.createParallelGroup()
  475. .addGroup(contentPaneLayout.createSequentialGroup()
  476. .addGap(102, 102, 102)
  477. .addComponent(ABOnOff, GroupLayout.PREFERRED_SIZE, 182, GroupLayout.PREFERRED_SIZE))
  478. .addGroup(contentPaneLayout.createSequentialGroup()
  479. .addContainerGap()
  480. .addGroup(contentPaneLayout.createParallelGroup()
  481. .addGroup(contentPaneLayout.createSequentialGroup()
  482. .addComponent(ABFreqLabel)
  483. .addGap(12, 12, 12)
  484. .addComponent(ABFreqSlider, GroupLayout.PREFERRED_SIZE, 260, GroupLayout.PREFERRED_SIZE))
  485. .addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
  486. .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)
  487. .addComponent(ABLevelLabel)
  488. .addComponent(customAntiBanButton, GroupLayout.PREFERRED_SIZE, 159, GroupLayout.PREFERRED_SIZE))
  489. .addGroup(contentPaneLayout.createParallelGroup()
  490. .addGroup(contentPaneLayout.createSequentialGroup()
  491. .addGap(18, 18, 18)
  492. .addComponent(separator1, GroupLayout.PREFERRED_SIZE, 164, GroupLayout.PREFERRED_SIZE))
  493. .addGroup(contentPaneLayout.createSequentialGroup()
  494. .addGap(27, 27, 27)
  495. .addComponent(ABLevelOptions, GroupLayout.PREFERRED_SIZE, 140, GroupLayout.PREFERRED_SIZE)))
  496. .addGap(96, 96, 96))))
  497. .addGroup(contentPaneLayout.createSequentialGroup()
  498. .addGap(20, 20, 20)
  499. .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
  500. .addGroup(contentPaneLayout.createSequentialGroup()
  501. .addComponent(mouseMoveCheck)
  502. .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  503. .addComponent(logOutCheck))
  504. .addGroup(contentPaneLayout.createSequentialGroup()
  505. .addComponent(openTabsCheck)
  506. .addGap(18, 18, 18)
  507. .addComponent(AFKCheck)
  508. .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
  509. .addComponent(camMoveCheck))))
  510. .addGroup(contentPaneLayout.createSequentialGroup()
  511. .addGap(109, 109, 109)
  512. .addComponent(contButton, GroupLayout.PREFERRED_SIZE, 167, GroupLayout.PREFERRED_SIZE)))
  513. .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  514. );
  515. contentPaneLayout.setVerticalGroup(
  516. contentPaneLayout.createParallelGroup()
  517. .addGroup(contentPaneLayout.createSequentialGroup()
  518. .addGap(10, 10, 10)
  519. .addComponent(ABOnOff)
  520. .addGap(18, 18, 18)
  521. .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
  522. .addComponent(ABLevelLabel)
  523. .addComponent(ABLevelOptions, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
  524. .addGroup(contentPaneLayout.createParallelGroup()
  525. .addGroup(contentPaneLayout.createSequentialGroup()
  526. .addGap(18, 18, 18)
  527. .addComponent(customAntiBanButton, GroupLayout.PREFERRED_SIZE, 44, GroupLayout.PREFERRED_SIZE))
  528. .addGroup(contentPaneLayout.createSequentialGroup()
  529. .addGap(35, 35, 35)
  530. .addComponent(separator1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
  531. .addGroup(contentPaneLayout.createParallelGroup()
  532. .addGroup(contentPaneLayout.createSequentialGroup()
  533. .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
  534. .addComponent(ABFreqSlider, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
  535. .addGroup(contentPaneLayout.createSequentialGroup()
  536. .addGap(26, 26, 26)
  537. .addComponent(ABFreqLabel)))
  538. .addGap(15, 15, 15)
  539. .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
  540. .addComponent(openTabsCheck)
  541. .addComponent(AFKCheck)
  542. .addComponent(camMoveCheck))
  543. .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
  544. .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
  545. .addComponent(logOutCheck)
  546. .addComponent(mouseMoveCheck))
  547. .addGap(18, 18, 18)
  548. .addComponent(contButton)
  549. .addContainerGap(12, Short.MAX_VALUE))
  550. );
  551. pack();
  552. setLocationRelativeTo(getOwner());
  553. // JFormDesigner - End of component initialization //GEN-END:initComponents
  554. }
  555.  
  556. // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
  557. // Generated using JFormDesigner Evaluation license - Joe Titus
  558. private JSlider ABFreqSlider;
  559. private JToggleButton ABOnOff;
  560. private JRadioButton customAntiBanButton;
  561. private JComboBox ABLevelOptions;
  562. private JSeparator separator1;
  563. private JLabel ABFreqLabel;
  564. private JRadioButton AFKCheck;
  565. private JRadioButton mouseMoveCheck;
  566. private JRadioButton camMoveCheck;
  567. private JRadioButton logOutCheck;
  568. private JRadioButton openTabsCheck;
  569. private JLabel ABLevelLabel;
  570. private JButton contButton;
  571. // JFormDesigner - End of variables declaration //GEN-END:variables
  572.  
  573. }
  574. //START: Code generated using Enfilade's Easel
  575. private Image getImage(String url) {
  576. try {
  577. return ImageIO.read(new URL(url));
  578. } catch(IOException e) {
  579. return null;
  580. }
  581. }
  582.  
  583. private final Color color1 = new Color(51, 51, 255);
  584. private final Color color2 = new Color(102, 102, 255);
  585. private final Color color3 = new Color(51, 255, 51);
  586. private final Color color4 = new Color(255, 0, 0);
  587. private final Color color5 = new Color(0, 0, 0);
  588. private final Color color6 = new Color(0, 255, 0);
  589.  
  590. private final BasicStroke stroke1 = new BasicStroke(1);
  591.  
  592. private final Font font1 = new Font("Arial", 0, 12);
  593. private final Font font2 = new Font("Arial", 2, 15);
  594. private final Font font3 = new Font("Arial", 3, 10);
  595.  
  596. private final Image img1 = getImage("http://images3.wikia.nocookie.net/__cb20100522043940/runescape/images/ archive/f/f2/20100523225515!Dragon_Pickaxe_Detail.png");
  597.  
  598. public void onRepaint(Graphics g1) {
  599. Graphics2D g = (Graphics2D)g1;
  600. g.setColor(color1);
  601. g.fillRect(8, 344, 488, 114);
  602. g.setColor(color2);
  603. g.setStroke(stroke1);
  604. g.drawRect(8, 344, 488, 114);
  605. g.setFont(font1);
  606. g.setColor(color3);
  607. g.drawString("Time Running:", 18, 364);
  608. g.drawString("Time Till Level:", 18, 384);
  609. g.drawString("Exp Gained:", 18, 404);
  610. g.drawString("Exp Per Hour:", 18, 424);
  611. g.drawString("Ores Mined:", 201, 364);
  612. g.drawString("Ores Per Hour:", 201, 384);
  613. g.drawString("Ores Till Level:", 201, 404);
  614. g.setFont(font2);
  615. g.drawString("FrozenIronMiner", 259, 448);
  616. g.setFont(font3);
  617. g.drawString("by Prosubzero", 392, 450);
  618. g.setColor(color4);
  619. g.fillRoundRect(4, 320, 512, 17, 16, 16);
  620. g.setColor(color5);
  621. g.drawRoundRect(4, 320, 512, 17, 16, 16);
  622. g.setColor(color6);
  623. g.fillRoundRect(4, 320, 256, 17, 16, 16);
  624. g.drawImage(img1, 367, 350, null);
  625.  
  626.  
  627. }
  628. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement