- import java.awt.BorderLayout;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.FlowLayout;
- import java.awt.Font;
- import java.awt.Graphics;
- import java.awt.Graphics2D;
- import java.awt.Point;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.ItemEvent;
- import java.awt.event.ItemListener;
- import java.util.Arrays;
- import javax.swing.DefaultComboBoxModel;
- import javax.swing.GroupLayout;
- import javax.swing.GroupLayout.Alignment;
- import javax.swing.JButton;
- import javax.swing.JCheckBox;
- import javax.swing.JComboBox;
- import javax.swing.JDialog;
- import javax.swing.JLabel;
- import javax.swing.JPanel;
- import javax.swing.JTextField;
- import javax.swing.LayoutStyle.ComponentPlacement;
- import javax.swing.SwingUtilities;
- import javax.swing.border.EmptyBorder;
- import javax.swing.border.EtchedBorder;
- import org.powerbot.concurrent.Task;
- import org.powerbot.concurrent.strategy.Condition;
- import org.powerbot.concurrent.strategy.Strategy;
- import org.powerbot.game.api.ActiveScript;
- import org.powerbot.game.api.Manifest;
- import org.powerbot.game.api.methods.Calculations;
- import org.powerbot.game.api.methods.Game;
- import org.powerbot.game.api.methods.Walking;
- import org.powerbot.game.api.methods.Widgets;
- import org.powerbot.game.api.methods.input.Mouse;
- import org.powerbot.game.api.methods.interactive.Players;
- import org.powerbot.game.api.methods.node.Menu;
- import org.powerbot.game.api.methods.node.SceneEntities;
- import org.powerbot.game.api.methods.tab.Inventory;
- import org.powerbot.game.api.methods.tab.Skills;
- import org.powerbot.game.api.methods.widget.Camera;
- import org.powerbot.game.api.util.Random;
- import org.powerbot.game.api.util.Time;
- import org.powerbot.game.api.wrappers.Area;
- import org.powerbot.game.api.wrappers.Tile;
- import org.powerbot.game.api.wrappers.map.TilePath;
- import org.powerbot.game.api.wrappers.node.Item;
- import org.powerbot.game.api.wrappers.node.SceneObject;
- import org.powerbot.game.bot.event.MessageEvent;
- import org.powerbot.game.bot.event.listener.MessageListener;
- import org.powerbot.game.bot.event.listener.PaintListener;
- @Manifest(authors = { "LocBot", "Xiffs" }, name = "ParaMine",description = "One of the best")
- public class ParaMine extends ActiveScript implements PaintListener,
- MessageListener {
- Mine mine;
- GUI gui;
- boolean test = false;
- static int[] pickaxe = { 1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107,
- 15259, 1831, 1829, 1827, 1825, 1823, 946 };
- public static Mine m;
- private SceneObject currentRock = null;
- // Paint
- public int startLevel;
- public int startExp;
- long startTime;
- boolean show = true;
- @Override
- protected void setup() {
- Repaint.startTime = System.currentTimeMillis();
- Repaint.startLev = Skills.getRealLevel(Skills.MINING);
- Repaint.startExp = Skills.getExperience(Skills.MINING);
- m = new Mine(AllSettings.bank, AllSettings.pathToBank,
- AllSettings.rockToMine1, AllSettings.rockToMine2,
- AllSettings.rockToMine3, AllSettings.area);
- try {
- SwingUtilities.invokeLater(new Runnable() {
- public void run() {
- gui = new GUI();
- gui.setVisible(true);
- }
- });
- } catch (Exception e) {
- }
- provide(new Strategy(new MineMethod(), new MineMethod()));
- provide(new Strategy(new Full(), new Full()));
- provide(new Strategy(new Alternate(), new Alternate()));
- provide(new Strategy(new WalkBankMethod(), new WalkBankMethod()));
- provide(new Strategy(new WalkMineMethod(), new WalkMineMethod()));
- }
- private final class Alternate implements Task, Condition {
- @Override
- public boolean validate() {
- return currentRock != null && rock() != null
- && !rock().getLocation().equals(currentRock.getLocation());
- }
- @Override
- public void run() {
- currentRock = null;
- }
- }
- private class MineMethod implements Condition, Task {
- @Override
- public void run() {
- if (rock() != null) {
- if (rock().isOnScreen()) {
- if (!Players.getLocal().isMoving()) {
- final Point p = rock().getNextViewportPoint();
- Mouse.hop(p.x, p.y);
- if (rock().interact("Mine")) {
- Time.sleep(1500);
- if (Players.getLocal().getAnimation() != -1) {
- currentRock = rock();
- }
- }
- }
- } else if (!rock().getLocation().isOnScreen()) {
- Camera.turnTo(rock());
- Time.sleep(org.powerbot.game.api.util.Random.nextInt(200,
- 350));
- } else {
- if (rock().getLocation().click(true))
- Time.sleep(Random.nextInt(800, 1200));
- }
- } else {
- Time.sleep(100);
- }
- if (!Walking.isRunEnabled()) {
- if (Walking.getEnergy() > 30) {
- Walking.setRun(true);
- }
- }
- }
- @Override
- public boolean validate() {
- return AllSettings.start
- && (Game.isLoggedIn()
- && (currentRock == null || (currentRock != null
- && rock() != null
- && rock().getLocation().equals(
- currentRock.getLocation()) && Players
- .getLocal().getAnimation() == -1))
- && Inventory.getCount() < AllSettings.Ore_to_Drop
- && m.atMine() && !Players.getLocal().isMoving());
- }
- }
- private class WalkBankMethod implements Condition, Task {
- @Override
- public void run() {
- log.info("Walking to bank");
- m.walkToBank();
- if (!Walking.isRunEnabled()) {
- if (Walking.getEnergy() > 30) {
- Walking.setRun(true);
- }
- }
- }
- @Override
- public boolean validate() {
- return AllSettings.start
- && AllSettings.Banking
- && (Game.isLoggedIn()
- && Inventory.getCount() >= AllSettings.Ore_to_Drop && !m
- .getBank().atBank());
- }
- }
- private class Full implements Condition, Task {
- @Override
- public void run() {
- if (AllSettings.Banking) {
- if (m.getBank().atBank())
- log.info("Banking ");
- if (org.powerbot.game.api.methods.widget.Bank.isOpen()) {
- depositAllExcept(pickaxe);
- } else {
- if (m.getBank().open()) {
- Time.sleep(Random.nextInt(300, 500));
- }
- }
- if (!Walking.isRunEnabled()) {
- if (Walking.getEnergy() > 30) {
- Walking.setRun(true);
- }
- }
- System.out.println(Inventory.getCount());
- } else {
- for (Item item : Inventory.getItems()) {
- Arrays.sort(pickaxe);
- if (Arrays.binarySearch(pickaxe, item.getId()) == -1) {
- if (item.getWidgetChild().interact("drop")) {
- Time.sleep(Random.nextInt(200, 300));
- }
- }
- }
- }
- }
- @Override
- public boolean validate() {
- return AllSettings.start
- && (Game.isLoggedIn() && (Inventory.getCount() >= AllSettings.Ore_to_Drop));
- }
- }
- private class WalkMineMethod implements Condition, Task {
- @Override
- public void run() {
- log.info("Walking back");
- m.walkToMine();
- if (!Walking.isRunEnabled()) {
- if (Walking.getEnergy() > 30) {
- Walking.setRun(true);
- }
- }
- log.info("Walking back");
- }
- @Override
- public boolean validate() {
- return AllSettings.start
- && (Game.isLoggedIn()
- && Inventory.getCount() < AllSettings.Ore_to_Drop && !m
- .atMine());
- }
- }
- private SceneObject rock() {
- if (m.getRock().getRock() != null) {
- return m.getRock().getRock();
- } else if (m.getRock2().getRock() != null) {
- return m.getRock2().getRock();
- } else if (m.getRock3().getRock() != null) {
- return m.getRock3().getRock();
- } else {
- return m.getRock().getRock();
- }
- }
- @Override
- public void onRepaint(Graphics x) {
- Repaint.go(x);
- }
- @Override
- public void messageReceived(MessageEvent e) {
- String f = e.getMessage().toString().toLowerCase();
- if (f.equals("manage to mine")) {
- Repaint.oreC++;
- }
- }
- public boolean depositAllExcept(int... IDs) {
- boolean deposited = false;
- int var = 0;
- final int count = Inventory.getCount(true), itemCount = Inventory
- .getCount(true, IDs);
- w: while (var < (count - itemCount)) {
- l: for (final Item item : Inventory.getItems()) {
- if (!Widgets.get(762).validate()) {
- break w;
- }
- for (final int id : IDs) {
- if (item.getId() == id)
- continue l;
- }
- final int invCount = Inventory.getCount(true, item.getId());
- if (item.getWidgetChild().validate()) {
- if (item.getWidgetChild().interact(
- invCount > 1 ? "Deposit-All" : "Deposit")) {
- if (waitFor(new Condition() {
- public boolean validate() {
- return Inventory.getCount(true, item.getId()) < invCount;
- }
- }, 3000)) {
- var += invCount;
- }
- if (var == (count - itemCount)) {
- deposited = true;
- break w;
- }
- }
- }
- }
- }
- return deposited;
- }
- private boolean waitFor(final Condition c, final long timeout) {
- boolean isValid = false;
- final long past = System.currentTimeMillis();
- final long total = (past + timeout);
- while (System.currentTimeMillis() < total) {
- if (c.validate()) {
- isValid = true;
- break;
- }
- Time.sleep(50);
- }
- return isValid;
- }
- public class GUI extends JDialog {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- private JTextField textField;
- private void change(String[] x) {
- try {
- GUI2 dialog = new GUI2(x);
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- public GUI() {
- System.out.println("Setting Title");
- setTitle("LocMiner");
- System.out.println("Setting size");
- setBounds(100, 100, 487, 199);
- System.out.println("Setting a checkbox");
- chckbxBanking = new JCheckBox("Banking");
- chckbxBanking.addItemListener(new ItemListener() {
- public void itemStateChanged(ItemEvent arg0) {
- System.out.println("Action Triggered");
- if (chckbxBanking.isSelected()) {
- Component[] all = panel.getComponents();
- for (int i = 0; i < all.length; i++) {
- all[i].setEnabled(false);
- }
- Component[] all2 = panel_1.getComponents();
- for (int i = 0; i < all2.length; i++) {
- all2[i].setEnabled(true);
- }
- } else {
- Component[] all = panel_1.getComponents();
- for (int i = 0; i < all.length; i++) {
- all[i].setEnabled(false);
- }
- Component[] all2 = panel.getComponents();
- for (int i = 0; i < all2.length; i++) {
- all2[i].setEnabled(true);
- }
- }
- }
- });
- System.out.println("Setting up button");
- btnNextWindow = new JButton("Next Window!");
- btnNextWindow.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- try {
- if (!chckbxBanking.isSelected()) {
- int x = Integer.parseInt(textField.getText());
- AllSettings.Ore_to_Drop = x;
- } else {
- AllSettings.Ore_to_Drop = 28;
- }
- } catch (Exception e) {
- System.out.println("Setting full to 28");
- AllSettings.Ore_to_Drop = 28;
- }
- if (chckbxBanking.isSelected()) {
- AllSettings.Banking = true;
- } else {
- AllSettings.Banking = false;
- System.out.println("Powermining does not work");
- }
- String loc = comboBox.getSelectedItem().toString();
- if (chckbxBanking.isSelected()) {
- if (loc.equals("Varrock East")) {
- AllSettings.area = ParaMine.Mines.Areas.VARROCK_EAST_MINE;
- AllSettings.bank = ParaMine.Mines.Banks.V_EAST_BANK;
- AllSettings.pathToBank = ParaMine.Mines.Paths.VE_BANK;
- change(new String[] { "Tin", "Copper", "Iron" });
- } else if (loc.equals("Varrock West")) {
- AllSettings.area = ParaMine.Mines.Areas.VARROCK_WEST_MINE;
- AllSettings.bank = ParaMine.Mines.Banks.V_WEST_BANK;
- AllSettings.pathToBank = ParaMine.Mines.Paths.VW_BANK;
- change(new String[] { "Iron", "Tin", "Silver", "Clay" });
- } else if (loc.equals("Al-Karhid")) {
- AllSettings.area = ParaMine.Mines.Areas.AL_MINE;
- AllSettings.bank = ParaMine.Mines.Banks.AL_BANK;
- AllSettings.pathToBank = ParaMine.Mines.Paths.Al_BANK;
- change(new String[] { "Iron", "Tin", "Copper",
- "Silver", "Coal", "Mitrhil" });
- } else if (loc.equals("Barbarian Village")) {
- AllSettings.area = ParaMine.Mines.Areas.BARBARIAN_MINE;
- //TODO AllSettings.bank = ParaMine.Mines.Banks.b;
- AllSettings.pathToBank = ParaMine.Mines.Paths.Al_BANK;
- change(new String[] { "Tin", "Coal" });
- } else if (loc.equals("Lumbridge East")) {
- AllSettings.area = ParaMine.Mines.Areas.L_EAST_MINE;
- AllSettings.bank = ParaMine.Mines.Banks.L_EAST_BANK;
- AllSettings.pathToBank = (Tile[]) (ParaMine.Mines.Paths.LUM_EAST_BANK);
- change(new String[] { "Tin", "Copper" });
- } else if (loc.equals("Lumbridge West")) {
- AllSettings.area = ParaMine.Mines.Areas.L_WEST_MINE;
- AllSettings.bank = ParaMine.Mines.Banks.L_WEST_BANK;
- AllSettings.pathToBank = ParaMine.Mines.Paths.LUM_WEST_BANK;
- change(new String[] { "Coal", "Mithril", "Adamantite" });
- } else if (loc.equals("Shilo Village")) {
- change(new String[] { "Gems" });
- } else if (loc.equals("LRC(GOLD)")) {
- AllSettings.LRC = true;
- } else if (loc.equals("Rimmington")) {
- change(new String[] { "Iron", "Gold", "Clay", "Copper",
- "Tin" });
- }
- } else {
- change(new String[] { "Iron", "Gold", "Clay", "Copper",
- "Tin", "Silver", "Coal" });
- }
- dispose();
- }
- });
- System.out.println("Setting up panel");
- panel = new JPanel();
- panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- System.out.println("Setting up panel");
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- System.out.println("setting up layout");
- groupLayout = new GroupLayout(getContentPane());
- groupLayout
- .setHorizontalGroup(groupLayout
- .createParallelGroup(Alignment.LEADING)
- .addGroup(
- groupLayout
- .createSequentialGroup()
- .addContainerGap()
- .addGroup(
- groupLayout
- .createParallelGroup(
- Alignment.TRAILING)
- .addGroup(
- Alignment.LEADING,
- groupLayout
- .createSequentialGroup()
- .addComponent(
- panel,
- GroupLayout.PREFERRED_SIZE,
- 220,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(
- panel_1,
- GroupLayout.PREFERRED_SIZE,
- 217,
- GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- .addGroup(
- groupLayout
- .createSequentialGroup()
- .addComponent(
- btnNextWindow,
- GroupLayout.PREFERRED_SIZE,
- 175,
- GroupLayout.PREFERRED_SIZE)
- .addGap(118))))
- .addGroup(
- Alignment.TRAILING,
- groupLayout.createSequentialGroup()
- .addContainerGap(205, Short.MAX_VALUE)
- .addComponent(chckbxBanking)
- .addGap(203)));
- groupLayout
- .setVerticalGroup(groupLayout
- .createParallelGroup(Alignment.TRAILING)
- .addGroup(
- groupLayout
- .createSequentialGroup()
- .addGap(9)
- .addComponent(chckbxBanking,
- GroupLayout.PREFERRED_SIZE, 23,
- GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(
- ComponentPlacement.UNRELATED)
- .addGroup(
- groupLayout
- .createParallelGroup(
- Alignment.TRAILING)
- .addComponent(
- panel,
- GroupLayout.DEFAULT_SIZE,
- 64,
- Short.MAX_VALUE)
- .addComponent(
- panel_1,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(
- ComponentPlacement.RELATED)
- .addComponent(btnNextWindow)
- .addContainerGap()));
- System.out.println("Setting comboBox");
- comboBox = new JComboBox();
- comboBox.setModel(new DefaultComboBoxModel(
- new String[] { "Lumbridge East","Lumbridge West","Al-Karhid","Varrock East","Varrock West" }));
- gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(gl_panel_1.createParallelGroup(
- Alignment.LEADING).addGroup(
- gl_panel_1
- .createSequentialGroup()
- .addGap(42)
- .addComponent(comboBox, GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE)
- .addContainerGap(48, Short.MAX_VALUE)));
- gl_panel_1.setVerticalGroup(gl_panel_1.createParallelGroup(
- Alignment.LEADING).addGroup(
- Alignment.TRAILING,
- gl_panel_1
- .createSequentialGroup()
- .addContainerGap(33, Short.MAX_VALUE)
- .addComponent(comboBox, GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE).addContainerGap()));
- panel_1.setLayout(gl_panel_1);
- lblMine = new JLabel("Mine");
- textField = new JTextField();
- textField.setColumns(10);
- lblDropAll = new JLabel("drop all.");
- gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(gl_panel.createParallelGroup(
- Alignment.LEADING).addGroup(
- gl_panel.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblMine)
- .addGap(5)
- .addComponent(textField, GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE).addGap(5)
- .addComponent(lblDropAll)
- .addContainerGap(28, Short.MAX_VALUE)));
- gl_panel.setVerticalGroup(gl_panel
- .createParallelGroup(Alignment.LEADING)
- .addGroup(
- Alignment.TRAILING,
- gl_panel.createSequentialGroup()
- .addContainerGap(29, Short.MAX_VALUE)
- .addGroup(
- gl_panel.createParallelGroup(
- Alignment.LEADING)
- .addGroup(
- gl_panel.createSequentialGroup()
- .addGap(3)
- .addComponent(
- lblMine))
- .addComponent(
- textField,
- GroupLayout.PREFERRED_SIZE,
- GroupLayout.DEFAULT_SIZE,
- GroupLayout.PREFERRED_SIZE)
- .addGroup(
- gl_panel.createSequentialGroup()
- .addGap(3)
- .addComponent(
- lblDropAll)))
- .addContainerGap()));
- panel.setLayout(gl_panel);
- getContentPane().setLayout(groupLayout);
- Component[] all = panel_1.getComponents();
- for (int i = 0; i < all.length; i++) {
- all[i].setEnabled(false);
- }
- }
- private JCheckBox chckbxBanking;
- private JComboBox comboBox;
- private JPanel panel;
- private JPanel panel_1;
- private JButton btnNextWindow;
- private GroupLayout groupLayout;
- private GroupLayout gl_panel_1;
- private JLabel lblMine;
- private JLabel lblDropAll;
- private GroupLayout gl_panel;
- }
- public class GUI2 extends JDialog {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- private final JPanel contentPanel = new JPanel();
- /**
- * Create the dialog.
- */
- public GUI2(String[] rocks) {
- String[] Done = new String[rocks.length + 1];
- Done[0] = "none";
- for (int i = 0; i < rocks.length; i++) {
- Done[i + 1] = rocks[i];
- }
- setTitle("Choose your rocks");
- setBounds(100, 100, 450, 120);
- getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- comboBox = new JComboBox();
- comboBox.setModel(new DefaultComboBoxModel(rocks));
- contentPanel.add(comboBox);
- }
- {
- comboBox_0 = new JComboBox();
- comboBox_0.setModel(new DefaultComboBoxModel(Done));
- comboBox_0.setEnabled(true);
- contentPanel.add(comboBox_0);
- }
- {
- comboBox_1 = new JComboBox();
- comboBox_1.setEnabled(true);
- comboBox_1.setModel(new DefaultComboBoxModel(Done));
- contentPanel.add(comboBox_1);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane, BorderLayout.SOUTH);
- {
- JButton okButton = new JButton("OK");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- String c = comboBox.getSelectedItem().toString();
- String c1 = comboBox_0.getSelectedItem().toString();
- String c2 = comboBox_1.getSelectedItem().toString();
- if (!c.equals("none")) {
- if (c.equals("Tin")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.TIN_ROCKS ;
- Repaint.rName = "Tin";
- } else if (c.equals("Iron")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.IRON_ROCKS;
- Repaint.rName = "Iron";
- } else if (c.equals("Silver")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.SILVER_ROCKS;
- Repaint.rName = "Silver";
- } else if (c.equals("Coal")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.COAL_ROCKS;
- Repaint.rName = "Coal";
- } else if (c.equals("Mithril")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.MITHRIL_ROCKS;
- Repaint.rName = "Mithril";
- } else if (c.equals("Gold")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.GOLD_ROCKS;
- Repaint.rName = "Gold";
- } else if (c.equals("Clay")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.CLAY_ROCKS;
- Repaint.rName = "Clay";
- } else if (c.equals("Adamantite")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.ADAMANTITE_ROCKS;
- Repaint.rName = "Admantite";
- } else if (c.equals("Copper")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.COPPER_ROCKS;
- Repaint.rName = "Copper";
- } else if (c.equals("Gems")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.GEM_ROCKS;
- Repaint.rName = "Gem Rocks";
- }
- } else {
- AllSettings.rockToMine1 = null;
- }
- if (!c1.equals("none")) {
- if (c1.equals("Tin")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.TIN_ROCKS;
- Repaint.rName = "Tin";
- } else if (c1.equals("Iron")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.IRON_ROCKS;
- Repaint.rName = "Iron";
- } else if (c1.equals("Silver")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.SILVER_ROCKS;
- Repaint.rName = "Silver";
- } else if (c1.equals("Coal")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.COAL_ROCKS;
- Repaint.rName = "Coal";
- } else if (c1.equals("Mithril")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.MITHRIL_ROCKS;
- Repaint.rName = "Mithril";
- } else if (c1.equals("Gold")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.GOLD_ROCKS;
- Repaint.rName = "Gold";
- } else if (c1.equals("Clay")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.CLAY_ROCKS;
- Repaint.rName = "Clay";
- } else if (c1.equals("Adamantite")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.ADAMANTITE_ROCKS;
- Repaint.rName = "Admantite";
- } else if (c1.equals("Copper")) {
- AllSettings.rockToMine2 = ParaMine.Mines.Rocks.COPPER_ROCKS;
- Repaint.rName = "Copper";
- } else if (c.equals("Gems")) {
- AllSettings.rockToMine1 = ParaMine.Mines.Rocks.GEM_ROCKS;
- Repaint.rName = "Gem Rocks";
- }
- } else {
- AllSettings.rockToMine2 = null;
- }
- if (!c2.equals("none")) {
- if (c2.equals("Tin")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.TIN_ROCKS;
- Repaint.rName = "Tin";
- } else if (c2.equals("Iron")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.IRON_ROCKS;
- Repaint.rName = "Iron";
- } else if (c2.equals("Silver")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.SILVER_ROCKS;
- Repaint.rName = "Silver";
- } else if (c2.equals("Coal")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.COAL_ROCKS;
- Repaint.rName = "Coal";
- } else if (c2.equals("Mithril")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.MITHRIL_ROCKS;
- Repaint.rName = "Mithril";
- } else if (c2.equals("Gold")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.GOLD_ROCKS;
- Repaint.rName = "Gold";
- } else if (c2.equals("Clay")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.CLAY_ROCKS;
- Repaint.rName = "Clay";
- } else if (c2.equals("Adamantite")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.ADAMANTITE_ROCKS;
- Repaint.rName = "Admantite";
- } else if (c2.equals("Copper")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.COPPER_ROCKS;
- Repaint.rName = "Copper";
- } else if (c2.equals("Gems")) {
- AllSettings.rockToMine3 = ParaMine.Mines.Rocks.GEM_ROCKS;
- Repaint.rName = "Gem Rocks";
- }
- } else {
- AllSettings.rockToMine3 = null;
- }
- AllSettings.start = true;
- AllSettings.mine = new Mine(AllSettings.bank,
- AllSettings.pathToBank,
- AllSettings.rockToMine1,
- AllSettings.rockToMine2,
- AllSettings.rockToMine3, AllSettings.area);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- }
- }
- JComboBox comboBox;
- JComboBox comboBox_0;
- JComboBox comboBox_1;
- }
- public class Bank {
- public Area bankArea;
- public int ID = 0;
- public boolean normalBank;
- public Bank(Area area, boolean normal) {
- bankArea = area;
- normalBank = normal;
- }
- public Bank(Area area, int bankID, boolean depositBox) {
- bankArea = area;
- normalBank = depositBox;
- ID = bankID;
- }
- public Area getArea() {
- return bankArea;
- }
- public boolean isDepositBox() {
- return normalBank;
- }
- public SceneObject getBank() {
- if (isDepositBox()) {
- return (SceneObject) org.powerbot.game.api.methods.widget.DepositBox
- .getNearest();
- } else {
- return (SceneObject) org.powerbot.game.api.methods.widget.Bank
- .getNearest();
- }
- }
- public Tile getTile() {
- return getBank().getLocation();
- }
- public boolean atBank() {
- return getArea().contains(Players.getLocal().getLocation());
- }
- public boolean open() {
- if (!isDepositBox()) {
- return org.powerbot.game.api.methods.widget.Bank.open();
- } else {
- return org.powerbot.game.api.methods.widget.DepositBox.open();
- }
- }
- public boolean isOpen() {
- return org.powerbot.game.api.methods.widget.Bank.isOpen();
- }
- public boolean depositAllExcept(int... IDs) {
- if(isDepositBox()){
- System.out.println("Deposit does not work.");
- return false;
- }else{
- boolean deposited = false;
- int var = 0;
- final int count = Inventory.getCount(true), itemCount = Inventory
- .getCount(true, IDs);
- w: while (var < (count - itemCount)) {
- l: for (final Item item : Inventory.getItems()) {
- if (!Widgets.get(762).validate()) {
- break w;
- }
- for (final int id : IDs) {
- if (item.getId() == id)
- continue l;
- }
- final int invCount = Inventory.getCount(true, item.getId());
- if (item.getWidgetChild().validate()) {
- if (item.getWidgetChild().interact(
- invCount > 1 ? "Deposit-All" : "Deposit")) {
- if (waitFor(new Condition() {
- public boolean validate() {
- return Inventory.getCount(true, item.getId()) < invCount;
- }
- }, 3000)) {
- var += invCount;
- }
- if (var == (count - itemCount)) {
- deposited = true;
- break w;
- }
- }
- }
- }
- }
- return deposited;
- }
- }
- private boolean waitFor(final Condition c, final long timeout) {
- boolean isValid = false;
- final long past = System.currentTimeMillis();
- final long total = (past + timeout);
- while (System.currentTimeMillis() < total) {
- if (c.validate()) {
- isValid = true;
- break;
- }
- Time.sleep(50);
- }
- return isValid;
- }
- public boolean depositAll() {
- return org.powerbot.game.api.methods.widget.Bank.depositInventory();
- }
- public boolean withdraw(int ID, int amount) {
- return org.powerbot.game.api.methods.widget.Bank.withdraw(ID, amount);
- }
- public boolean depositEquipped() {
- return org.powerbot.game.api.methods.widget.Bank.depositEquipment();
- }
- }
- public static class Mine {
- public static Bank bank;
- public static Rock rock;
- public static Tile[] bankPath;
- public static Area area;
- public static Rock rock2 = null;
- public static Rock rock3 = null;
- public Mine(Bank b, Tile[] toBank, Rock theRock, Rock theRock2,
- Rock theRock3, Area mineArea) {
- bank = b;
- rock = theRock;
- bankPath = toBank;
- area = mineArea;
- rock2 = theRock2;
- rock3 = theRock3;
- }
- public TilePath getWalkingPath() {
- return Walking.newTilePath(bankPath);
- }
- public Rock getRock() {
- return rock;
- }
- public Rock getRock2() {
- if (rock2 != null) {
- return rock2;
- }
- return rock;
- }
- public Rock getRock3() {
- if (rock3 != null) {
- return rock3;
- }
- return rock;
- }
- public Area getMineArea() {
- return area;
- }
- public boolean atMine() {
- if(AllSettings.Banking){
- return getMineArea().contains(Players.getLocal().getLocation());
- }else{
- return true;
- }
- }
- public void walkToBank() {
- WalkMethods.walkPath(bankPath);
- }
- public void walkToMine() {
- WalkMethods.walkReversed(bankPath);
- }
- public Bank getBank() {
- return bank;
- }
- }
- public static class WalkMethods {
- private static Tile[] reversePath(Tile tiles[]) {
- Tile r[] = new Tile[tiles.length];
- int i;
- for (i = 0; i < tiles.length; i++) {
- r[i] = tiles[(tiles.length - 1) - i];
- }
- return r;
- }
- public static boolean walkReversed(final Tile[] path) {
- return walkPath(reversePath(path));
- }
- public static boolean walkPath(final Tile[] path) {
- boolean a = false;
- final Tile next = getNext(path);
- final Tile start = getStart(path);
- final Tile dest = Walking.getDestination();
- final Tile myTile = Players.getLocal().getLocation();
- if ((dest == null || Calculations.distance(myTile, dest) < 6 || Calculations
- .distance(next, Walking.getDestination()) > 3)) {
- if (!Walking.walk(next)) {
- if (Walking.walk(start)) {
- Time.sleep(500);
- a = true;
- } else {
- walkTile(getClosestTileOnMap(next));
- Time.sleep(500);
- }
- } else {
- Time.sleep(500);
- a = true;
- }
- }
- return a;
- }
- public static Tile getClosestTileOnMap(final Tile tile) {
- if (Game.isLoggedIn()) {
- final Tile loc = Players.getLocal().getLocation();
- final Tile walk = new Tile((loc.getX() + tile.getX()) / 2,
- (loc.getY() + tile.getY()) / 2, Game.getPlane());
- return Calculations.distance(loc, walk) < 15 ? walk
- : getClosestTileOnMap(walk);
- }
- return tile;
- }
- public static boolean walkTile(final Tile tile) {
- if ((Walking.getDestination() == null || (Calculations.distance(Players
- .getLocal().getLocation(), Walking.getDestination()) < 6 && Calculations
- .distance(tile, Walking.getDestination()) > 3))) {
- Time.sleep(500);
- if (tile.isOnScreen()) {
- return tile.click(true);
- } else if (Calculations.distance(Players.getLocal().getLocation(),
- tile) < 15) {
- return Walking.walk(tile);
- } else {
- return walkTile(getClosestTileOnMap(tile));
- }
- }
- return false;
- }
- public static Tile getStart(final Tile[] tiles) {
- return tiles[0];
- }
- public static Tile getNext(final Tile[] tiles) {
- for (int i = tiles.length - 1; i >= 0; --i) {
- if (Calculations.distance(Players.getLocal().getLocation(),
- tiles[i]) < 15) {
- return tiles[i];
- }
- }
- return null;
- }
- }
- public static class AllSettings {
- public static int Ore_to_Drop = 28;
- public static boolean Banking = false;
- public static Rock rockToMine1;
- public static Rock rockToMine2;
- public static Rock rockToMine3;
- public static Bank bank;
- public static Area area;
- public static Tile[] pathToBank;
- public static Mine mine;
- public static String Style;
- public static boolean start = false;
- public static boolean LRC = false;
- public static double getVersion(){
- return 1.3;
- }
- }
- public class Rock {
- public int[] rockID;
- public Rock(int... ID) {
- rockID = ID;
- }
- private boolean waitFor(final Condition c, final long timeout) {
- final long past = System.currentTimeMillis();
- final long total = (past + timeout);
- while (System.currentTimeMillis() < total) {
- if (c.validate()) {
- break;
- }
- Time.sleep(50);
- }
- return c.validate();
- }
- public SceneObject getRock() {
- return SceneEntities.getNearest(rockID);
- }
- public int getID() {
- return getRock().getId();
- }
- public void interact(String action, boolean click) {
- if (!click) {
- getRock().interact(action);
- } else {
- Mouse.move(getRock().getLocation().getCentralPoint());
- Mouse.click(true);
- }
- }
- public void hopInteract(String action, boolean click) {
- if (!click) {
- Mouse.hop(getRock().getCentralPoint().x, getRock()
- .getCentralPoint().y);
- Mouse.click(false);
- Mouse.hop(Menu.getLocation().x, Menu.getLocation().y);
- Menu.select(action);
- } else {
- Mouse.hop(getRock().getCentralPoint().x, getRock()
- .getCentralPoint().y);
- Mouse.click(true);
- }
- }
- }
- public static class Repaint {
- public static String state = "Unkown";
- public static int startExp;
- public static int startLev;
- public static int oreC = 0;
- public static String Style;
- public static long startTime;
- public static String rName;
- public static int getPerHour(int current) {
- return (int) ((current) * 3600000D / (System.currentTimeMillis() - startTime));
- }
- public static int getExperienceGained() {
- return Skills.getExperience(14) - startExp;
- }
- public static int getLevelsGained() {
- return Skills.getRealLevel(14) - startLev;
- }
- /*public static Image getImage(String url) {
- try {
- return ImageIO.read(new URL(url));
- } catch (IOException e) {
- return null;
- }
- }*/
- public final static Color color1 = new Color(255, 255, 255);
- public final static Font font1 = new Font("Arial Narrow", 0, 14);
- public final static Font font2 = new Font("Arial Narrow", 0, 11);
- /*public final static Image img1 = getImage("http://i1209.photobucket.com/albums/cc400/rwkjh/LocMiner.png");
- public final static Image img2 = getImage("http://fc06.deviantart.net/fs71/f/2010/347/9/d/red_crosshair_by_aeroguardian-d34tgmr.png");
- */
- public static void go(Graphics g1) {
- Graphics2D g = (Graphics2D) g1;
- long xpHour = (long) (3600000.0 / (System.currentTimeMillis() - startTime) * (Skills
- .getExperiences()[14] - startExp));
- /*int MouseX = (int) Mouse.getLocation().x - img2.getWidth(null) / 2;
- int MouseY = (int) Mouse.getLocation().y - img2.getHeight(null) / 2;
- g.drawImage(img1, 10, 345, null);
- g.drawImage(img2, MouseX, MouseY, null);*/
- g.setFont(font1);
- g.setColor(Color.green);
- g.drawString("Xp Gained: " + getExperienceGained(), 24, 408);
- g.drawString("Xp P/H: " + xpHour, 25, 422);
- g.drawString(
- "Xp TNL: "
- + Skills.getExperienceToLevel(14,
- Skills.getRealLevel(14) + 1), 24, 436);
- g.drawString(
- "Runtime: "
- + Time.format(System.currentTimeMillis() - startTime),
- 181, 407);
- g.drawString("Status: " + state, 181, 420);
- g.drawString("Mining: " + rName, 181, 432);
- g.drawString("Ores Mined: " + oreC, 349, 409);
- g.drawString("Ores P/H: "+getPerHour(oreC), 349, 421);
- g.drawString("Style: " + AllSettings.Style, 182, 445);
- g.drawString("Profit: " + "Not yet supported", 350, 434);
- g.drawString("Level: " + Skills.getLevel(14) + "(+" + getLevelsGained()
- + ")", 25, 449);
- g.setFont(font2);
- g.drawString("v" + AllSettings.getVersion(), 214, 382);
- }
- }
- public static class Mines {
- public static class Paths {
- public static final Tile[] LUM_EAST_BANK = { new Tile(3228, 3148, 0),
- new Tile(3232, 3154, 0), new Tile(3236, 3161, 0),
- new Tile(3239, 3170, 0), new Tile(3252, 3173, 0),
- new Tile(3263, 3173, 0), new Tile(3269, 3168, 0) };
- public static final Tile[] LUM_WEST_BANK = { new Tile(3146, 3147, 0),
- new Tile(3144, 3153, 0), new Tile(3145, 3160, 0),
- new Tile(3145, 3165, 0), new Tile(3145, 3172, 0),
- new Tile(3144, 3177, 0), new Tile(3143, 3183, 0),
- new Tile(3142, 3189, 0), new Tile(3140, 3195, 0),
- new Tile(3138, 3200, 0), new Tile(3136, 3205, 0),
- new Tile(3133, 3209, 0), new Tile(3131, 3214, 0),
- new Tile(3127, 3218, 0), new Tile(3124, 3221, 0),
- new Tile(3120, 3225, 0), new Tile(3114, 3229, 0),
- new Tile(3110, 3233, 0), new Tile(3104, 3236, 0),
- new Tile(3101, 3241, 0), new Tile(3097, 3243, 0),
- new Tile(3092, 3246, 0) };
- public static final Tile[] Al_BANK = { new Tile(3297, 3302, 0),
- new Tile(3298, 3295, 0), new Tile(3296, 3288, 0),
- new Tile(3292, 3281, 0), new Tile(3288, 3274, 0),
- new Tile(3285, 3267, 0), new Tile(3283, 3259, 0),
- new Tile(3282, 3253, 0), new Tile(3282, 3246, 0),
- new Tile(3280, 3239, 0), new Tile(3276, 3233, 0),
- new Tile(3275, 3227, 0), new Tile(3272, 3220, 0),
- new Tile(3272, 3213, 0), new Tile(3274, 3208, 0),
- new Tile(3276, 3202, 0), new Tile(3278, 3196, 0),
- new Tile(3281, 3192, 0), new Tile(3281, 3187, 0),
- new Tile(3279, 3180, 0), new Tile(3278, 3175, 0),
- new Tile(3274, 3168, 0), new Tile(3270, 3166, 0) };
- public static final Tile[] VE_BANK = { new Tile(3286, 3364, 0),
- new Tile(3287, 3370, 0), new Tile(3290, 3376, 0),
- new Tile(3292, 3381, 0), new Tile(3291, 3388, 0),
- new Tile(3291, 3393, 0), new Tile(3290, 3397, 0),
- new Tile(3289, 3403, 0), new Tile(3288, 3408, 0),
- new Tile(3288, 3412, 0), new Tile(3287, 3420, 0),
- new Tile(3285, 3426, 0), new Tile(3283, 3428, 0),
- new Tile(3277, 3430, 0), new Tile(3271, 3429, 0),
- new Tile(3268, 3430, 0), new Tile(3261, 3430, 0),
- new Tile(3256, 3428, 0), new Tile(3252, 3427, 0),
- new Tile(3252, 3422, 0), new Tile(3252, 3419, 0) };
- public static final Tile[] VW_BANK = { new Tile(3180, 3371, 0),
- new Tile(3183, 3375, 0), new Tile(3180, 3379, 0),
- new Tile(3176, 3382, 0), new Tile(3174, 3387, 0),
- new Tile(3173, 3392, 0), new Tile(3173, 3397, 0),
- new Tile(3173, 3402, 0), new Tile(3171, 3407, 0),
- new Tile(3170, 3412, 0), new Tile(3170, 3417, 0),
- new Tile(3170, 3422, 0), new Tile(3170, 3427, 0),
- new Tile(3175, 3429, 0), new Tile(3180, 3431, 0),
- new Tile(3185, 3431, 0), new Tile(3188, 3435, 0),
- new Tile(3185, 3439, 0) };
- public static final Tile[] BARB_BANK = { new Tile(3082, 3421, 0),
- new Tile(3088, 3421, 0), new Tile(3094, 3421, 0),
- new Tile(3100, 3421, 0), new Tile(3106, 3420, 0),
- new Tile(3112, 3420, 0), new Tile(3118, 3419, 0),
- new Tile(3124, 3416, 0), new Tile(3130, 3414, 0),
- new Tile(3136, 3416, 0), new Tile(3142, 3417, 0),
- new Tile(3148, 3417, 0), new Tile(3154, 3419, 0),
- new Tile(3160, 3422, 0), new Tile(3166, 3425, 0),
- new Tile(3172, 3429, 0), new Tile(3178, 3430, 0),
- new Tile(3184, 3430, 0), new Tile(3187, 3436, 0),
- new Tile(3183, 3439, 0) };
- public static final Tile[] KHAZARD_BANK = { new Tile(2630, 3141, 0),
- new Tile(2627, 3147, 0), new Tile(2625, 3153, 0),
- new Tile(2625, 3159, 0), new Tile(2626, 3165, 0),
- new Tile(2632, 3165, 0), new Tile(2638, 3165, 0),
- new Tile(2643, 3161, 0), new Tile(2649, 3159, 0),
- new Tile(2655, 3158, 0), new Tile(2661, 3159, 0) };
- public static final Tile[] RIMMINGTON_BANK = { new Tile(2976, 3240, 0),
- new Tile(2970, 3240, 0), new Tile(2968, 3247, 0),
- new Tile(2974, 3250, 0), new Tile(2974, 3256, 0),
- new Tile(2973, 3263, 0), new Tile(2975, 3269, 0),
- new Tile(2981, 3270, 0), new Tile(2987, 3272, 0),
- new Tile(2993, 3273, 0), new Tile(2998, 3277, 0),
- new Tile(3003, 3281, 0), new Tile(3004, 3287, 0),
- new Tile(3005, 3293, 0), new Tile(3006, 3300, 0),
- new Tile(3006, 3306, 0), new Tile(3006, 3312, 0),
- new Tile(3007, 3318, 0), new Tile(3006, 3324, 0),
- new Tile(3005, 3330, 0), new Tile(3006, 3336, 0),
- new Tile(3007, 3342, 0), new Tile(3007, 3348, 0),
- new Tile(3009, 3354, 0), new Tile(3012, 3355, 0) };
- public static final Tile[] TAVERLY_BANK = { new Tile(2929, 3334, 0),
- new Tile(2928, 3339, 0), new Tile(2928, 3344, 0),
- new Tile(2928, 3349, 0), new Tile(2930, 3354, 0),
- new Tile(2931, 3359, 0), new Tile(2931, 3364, 0),
- new Tile(2932, 3369, 0), new Tile(2930, 3374, 0),
- new Tile(2927, 3379, 0), new Tile(2922, 3380, 0),
- new Tile(2917, 3381, 0), new Tile(2912, 3382, 0),
- new Tile(2909, 3386, 0), new Tile(2907, 3391, 0),
- new Tile(2904, 3395, 0), new Tile(2902, 3400, 0),
- new Tile(2903, 3405, 0), new Tile(2903, 3410, 0),
- new Tile(2900, 3414, 0), new Tile(2895, 3413, 0),
- new Tile(2890, 3415, 0), new Tile(2885, 3417, 0),
- new Tile(2881, 3420, 0), new Tile(2877, 3424, 0),
- new Tile(2872, 3424, 0), new Tile(2869, 3420, 0),
- new Tile(2873, 3417, 0) };
- public static final Tile[] HOBGLOBIN_BANK = { new Tile(3094, 3493, 0),
- new Tile(3093, 3498, 0), new Tile(3092, 3503, 0),
- new Tile(3088, 3506, 0), new Tile(3085, 3510, 0),
- new Tile(3084, 3515, 0), new Tile(3084, 3520, 0),
- new Tile(3080, 3524, 0), new Tile(3076, 3528, 0),
- new Tile(3073, 3532, 0), new Tile(3069, 3538, 0),
- new Tile(3064, 3541, 0), new Tile(3058, 3546, 0),
- new Tile(3053, 3550, 0), new Tile(3046, 3555, 0),
- new Tile(3040, 3559, 0), new Tile(3034, 3564, 0),
- new Tile(3030, 3567, 0), new Tile(3028, 3572, 0),
- new Tile(3026, 3577, 0), new Tile(3023, 3583, 0),
- new Tile(3022, 3588, 0), new Tile(3020, 3593, 0),
- new Tile(3018, 3598, 0), new Tile(3016, 3604, 0),
- new Tile(3013, 3609, 0), new Tile(3012, 3614, 0),
- new Tile(3010, 3620, 0), new Tile(3008, 3625, 0),
- new Tile(3007, 3630, 0), new Tile(3006, 3635, 0),
- new Tile(3005, 3641, 0), new Tile(3005, 3647, 0),
- new Tile(3005, 3653, 0), new Tile(3005, 3659, 0),
- new Tile(3005, 3664, 0), new Tile(3004, 3670, 0),
- new Tile(3004, 3676, 0), new Tile(3004, 3681, 0),
- new Tile(3004, 3688, 0), new Tile(3004, 3695, 0),
- new Tile(3004, 3700, 0), new Tile(3004, 3705, 0),
- new Tile(3003, 3710, 0), new Tile(3003, 3715, 0),
- new Tile(3003, 3720, 0), new Tile(3003, 3725, 0),
- new Tile(3003, 3730, 0), new Tile(3004, 3735, 0),
- new Tile(3005, 3740, 0), new Tile(3006, 3746, 0),
- new Tile(3008, 3751, 0), new Tile(3010, 3756, 0),
- new Tile(3011, 3762, 0), new Tile(3013, 3768, 0),
- new Tile(3014, 3774, 0), new Tile(3016, 3779, 0),
- new Tile(3017, 3784, 0), new Tile(3019, 3789, 0),
- new Tile(3022, 3794, 0), new Tile(3023, 3799, 0),
- new Tile(3024, 3804, 0), new Tile(3026, 3809, 0) };
- public static final Tile[] S_ARDOUGNE_BANK = {
- new Tile(2651, 3284, 0), new Tile(2646, 3284, 0),
- new Tile(2641, 3282, 0), new Tile(2641, 3277, 0),
- new Tile(2640, 3272, 0), new Tile(2640, 3267, 0),
- new Tile(2639, 3263, 0), new Tile(2636, 3258, 0),
- new Tile(2633, 3254, 0), new Tile(2628, 3252, 0),
- new Tile(2624, 3249, 0), new Tile(2619, 3246, 0),
- new Tile(2614, 3245, 0), new Tile(2609, 3245, 0),
- new Tile(2605, 3242, 0), new Tile(2604, 3237, 0),
- new Tile(2605, 3232, 0), new Tile(2605, 3227, 0),
- new Tile(2605, 3222, 0)
- };
- }
- public static class AreaRocks {
- public static final int[] IRON_ID = { 11956, 11955, 11954, 2093, 2092,
- 9719, 9717, 9718, 11956, 11954, 37307, 37309, 37308, 31072,
- 31073, 31071, 9719, 5774, 5775, 14914, 14913 };
- public static final int[] TIN_ID = { 3038, 3245, 9716, 9714, 5777,
- 5778, 5776, 11934, 11933, 11935, 11959, 11957, 11958, 2094,
- 2095, 3038, 3245, 5776, 5777, 5778, 9714, 9716, 11933, 11934,
- 11935, 11957, 11958, 11959, 14902, 14903, 21293, 21294, 21295 };
- public static final int[] COPPER_ID = { 3229, 3027, 9710, 9708, 9709,
- 5779, 5780, 5781, 11961, 11960, 11962, 11936, 11937, 11938,
- 3027 };
- public static int SILVER_ID[] = { 2311, 11186, 11187, 11188, 11948,
- 11949, 11950, 15580, 15581, 29224, 29225, 29226, 32444, 32445,
- 32446, 37304, 37305, 37306 };
- public static int COAL_ID[] = { 3032, 2097, 3233, 5770, 5771, 5772,
- 10948, 11930, 11931, 11932, 14850, 14851, 21287, 21288, 21289,
- 29215, 29216, 29217, 32426, 32427, 32428 };
- public static int GOLD_ID[] = { 5768, 5769, 9720, 9722, 10574, 10575,
- 10576, 11183, 11184, 11185, 11943, 15576, 15577, 15578, 32432,
- 32433, 32434, 45067, 45068 };
- public static int MITHRIL_ID[] = { 2102, 2103, 3041, 3280, 5784, 5785,
- 5786, 11942, 11943, 11944, 21278, 21279, 21280, 32438, 32439,
- 32440 };
- public static int ADAMANTITE_ID[] = { 3040, 3273, 5782, 5783, 11939,
- 11941, 21275, 21276, 21277, 29233, 29235, 32425, 32436, 32437 };
- public static int CLAY_ID[] = { 11504, 11503, 11505, 9711, 9713, 15503,
- 15505, 46320, 46322, 46324 };
- public static int GEMROCK_ID[] = { 11195, 11194, 11364 };
- public static int LIME_ID[] = { 4027 };
- public static int[] COAL_LRC_ID = { 5999 };
- public static int[] GOLD_LRC_ID = { 45076 };
- }
- public static class Areas {
- public static final Area L_EAST_MINE = new Area(
- new Tile(3236, 3153, 0), new Tile(3221, 3144, 0));
- public static final Area L_EAST_BANK = new Area(
- new Tile(3270, 3172, 0), new Tile(3269, 3161, 0));
- public static final Area L_WEST_MINE = new Area(
- new Tile(3149, 3142, 0), new Tile(3141, 3152, 0));
- public static final Area L_WEST_BANK = new Area(
- new Tile(3097, 3240, 0), new Tile(3085, 3249, 0));
- public static final Area AL_MINE = new Area(new Tile(3309, 3286, 0),
- new Tile(3282, 3318, 0));
- public static final Area VARROCK_EAST_MINE = new Area(new Tile(3296,
- 3356, 0), new Tile(3275, 3372, 0));
- public static final Area VARROCK_EAST_BANK = new Area(new Tile(3258,
- 3414, 0), new Tile(3248, 3427, 0));
- public static final Area VARROCK_WEST_MINE = new Area(new Tile(3186,
- 3360, 0), new Tile(3170, 3383, 0));
- public static final Area VARROCK_WEST_BANK = new Area(new Tile(3177,
- 3448, 0), new Tile(3194, 3431, 0));
- public static final Area BARBARIAN_MINE = new Area(new Tile(3070, 3412,
- 0), new Tile(3088, 3432, 0));
- public static final Area KHAZARD_MINE = new Area(
- new Tile(2640, 3131, 0), new Tile(2621, 3158, 0));
- public static final Area KHAZARD_BANK = new Area(
- new Tile(2668, 3155, 0), new Tile(2658, 3167, 0));
- public static final Area RIMMINGTON_MINE = new Area(new Tile(2992,
- 3225, 0), new Tile(2961, 3253, 0));
- public static final Area FALADOR_BANK = new Area(
- new Tile(3007, 3360, 0), new Tile(3022, 3351, 0));
- public static final Area TAVERLY_MINE = new Area(
- new Tile(2932, 3331, 0), new Tile(2925, 3343, 0));
- public static final Area TAVERLY_BANK = new Area(
- new Tile(2873, 3419, 0), new Tile(2878, 3412, 0));
- public static final Area HOBGLOBIN_MINE = new Area(new Tile(3018, 3813,
- 0), new Tile(3035, 3785, 0));
- public static final Area HOBGLOBIN_BANK = new Area(new Tile(3090, 3497,
- 0), new Tile(3098, 3487, 0));
- public static final Area BARBARIAN_CLAY = new Area(new Tile(3075, 3405,
- 0), new Tile(3088, 3392, 0));
- public static final Area SHILO_MINE = new Area(new Tile(2830, 3008,
- 0), new Tile(2815, 2990, 0));
- public static final Area SHILO_BANK = new Area(new Tile(2842, 2957,
- 0), new Tile(2862, 2952, 0));
- public static final Area S_ARDOUGNE_MINE = new Area(new Tile(2830, 3008,
- 0), new Tile(2815, 2990, 0));
- public static final Area S_ARDOUGNE_BANK = new Area(new Tile(2608, 3221, 0
- ), new Tile(2601, 3237, 0));
- }
- public static class Banks {
- public static final Bank AL_BANK = new Bank(Areas.L_EAST_BANK, true);
- public static final Bank L_EAST_BANK = new Bank(Areas.L_EAST_BANK, true);
- public static final Bank L_WEST_BANK = new Bank(Areas.L_WEST_BANK, true);
- public static final Bank V_EAST_BANK = new Bank(Areas.VARROCK_EAST_BANK, true);
- public static final Bank V_WEST_BANK = new Bank(Areas.VARROCK_WEST_BANK, true);
- public static final Bank KHAZARD_BANK = new Bank(Areas.KHAZARD_BANK,true);
- public static final Bank FALADOR_BANK = new Bank(Areas.FALADOR_BANK,true);
- public static final Bank TAVERLY_BANK = new Bank(Areas.TAVERLY_BANK,true);
- public static final Bank HOBGLOBIN_BANK = new Bank(Areas.HOBGLOBIN_BANK, true);
- public static final Bank S_ARDOUGNE_BANK = new Bank(Areas.S_ARDOUGNE_BANK, true);
- }
- public static class Rocks {
- public static final Rock TIN_ROCKS = new Rock(AreaRocks.TIN_ID);
- public static final Rock COPPER_ROCKS = new Rock(AreaRocks.COPPER_ID);
- public static final Rock COAL_ROCKS = new Rock(AreaRocks.COAL_ID);
- public static final Rock MITHRIL_ROCKS = new Rock(AreaRocks.MITHRIL_ID);
- public static final Rock ADAMANTITE_ROCKS = new Rock(
- AreaRocks.ADAMANTITE_ID);
- public static final Rock IRON_ROCKS = new Rock(AreaRocks.IRON_ID);
- public static final Rock GOLD_ROCKS = new Rock(AreaRocks.GOLD_ID);
- public static final Rock SILVER_ROCKS = new Rock(AreaRocks.SILVER_ID);
- public static final Rock CLAY_ROCKS = new Rock(AreaRocks.CLAY_ID);
- public static final Rock GEM_ROCKS = new Rock(AreaRocks.GEMROCK_ID);
- }
- }
- }