Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.image.BufferedImage;
- import java.io.*;
- import java.net.MalformedURLException;
- import java.net.URI;
- import java.net.URL;
- import javax.imageio.ImageIO;
- import javax.swing.*;
- 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.Tabs;
- 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.NPCs;
- import org.powerbot.game.api.methods.interactive.Players;
- 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.Filter;
- 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.interactive.NPC;
- import org.powerbot.game.api.wrappers.node.Item;
- import org.powerbot.game.bot.event.MessageEvent;
- import org.powerbot.game.bot.event.listener.MessageListener;
- import org.powerbot.game.bot.event.listener.PaintListener;
- @Manifest(name = "JamRSKaramjaFisher", description = "The most stable and perfect karamja fisher !", version = 3.4, authors = { "Jamesst123" })
- public class fisher extends ActiveScript implements PaintListener,
- MessageListener {
- final static double version = 3.4;
- static int tunaPrice = 0;
- static int lobsterPrice = 0;
- static int swordfishPrice = 0;
- final static int shrimpID = 317;
- final static int anchoviesID = 321;
- final static int tunaID = 359;
- final static int lobsterID = 377;
- final static int swordfishID = 371;
- static int shrimpCaught = 0;
- static int anchoviesCaught = 0;
- static int tunaCaught = 0;
- static int lobstersCaught = 0;
- static int swordfishCaught = 0;
- static String fishType;
- static String fishingMode;
- static int spotID = 0;
- static boolean guiDone = false;
- static int[] fishIds = { 359, 377, 371, 317, 321 };
- static int[] wrongFishIds = { 317, 321 };
- static boolean wrongFish = false;
- static int[] onlysword = { 317, 321, 359 , 377 };
- static boolean onlysword = false;
- static long startTime = 0;
- static int startLevel = 0;
- static int startExp = 0;
- static String antiBanStatus = "Idle";
- static String botStatus = "Starting";
- static boolean statsLoaded = false;
- static BufferedImage mouse;
- static boolean wasDropping = false;
- static boolean dropped = false;
- static boolean droptuna = false;
- static GUI gui;
- @Override
- protected void setup() {
- System.out.println("Loading JamRSKaramjaFisher v" + version);
- LoadingThread loading = new LoadingThread();
- loading.start();
- Fishing fishing = new Fishing();
- FullInventory fullInventory = new FullInventory();
- AntiBan antiBan = new AntiBan();
- Strategy fishingAction = new Strategy(fishing, fishing);
- Strategy fullInventoryAction = new Strategy(fullInventory,
- fullInventory);
- Strategy antiBanAction = new Strategy(antiBan, antiBan);
- provide(fishingAction);
- provide(fullInventoryAction);
- provide(antiBanAction);
- startLevel = Skills.getLevels()[10];
- startExp = Skills.getExperiences()[10];
- if (startLevel != 0 && startExp != 0) {
- statsLoaded = true;
- }
- }
- private class Fishing implements Task, Condition {
- @Override
- public void run() {
- if (FishingArea.contains(Players.getLocal().getLocation().getX(),
- Players.getLocal().getLocation().getY())) {
- if (!Players.getLocal().isMoving()) {
- botStatus = "Fishing";
- NPCs.getNearest(new Filter<NPC>() {
- @Override
- public boolean accept(NPC t) {
- return t.getId() == spotID;
- }
- }).interact(fishType);
- Time.sleep(4000);
- }
- } else {
- botStatus = "Walking to fish";
- walk(FishPath);
- Time.sleep(1000);
- }
- }
- @Override
- public boolean validate() {
- if (guiDone && Game.isLoggedIn() && Inventory.getCount() < 28
- && Players.getLocal().getAnimation() == -1 && !wasDropping) {
- return true;
- }
- return false;
- }
- }
- private class FullInventory implements Task, Condition {
- @Override
- public void run() {
- if (fishingMode.equals("Stiles") && f.equals("Swordfish")) {
- onlysword = false;
- for (Item item : Inventory.getItems()) {
- for (int ID : onlysword) {
- if (item.getId() == ID) {
- botStatus = "Dropping wrong fishes";
- item.getWidgetChild().interact("Drop");
- wrongFish = true;
- Time.sleep(800);
- }
- }
- }
- if (!wrongFish) {
- if (StilesArea.contains(Players.getLocal().getLocation())) {
- botStatus = "Exchanging Fishes";
- NPCs.getNearest(StilesFilter).interact("Exchange");
- Time.sleep(3000);
- } else {
- botStatus = "Walking to Stiles";
- walk(StilesPath);
- Time.sleep(1000);
- }
- }
- }
- if (fishingMode.equals("Stiles")) {
- wrongFish = false;
- for (Item item : Inventory.getItems()) {
- for (int ID : wrongFishIds) {
- if (item.getId() == ID) {
- botStatus = "Dropping wrong fishes";
- item.getWidgetChild().interact("Drop");
- wrongFish = true;
- Time.sleep(800);
- }
- }
- }
- if (!wrongFish) {
- if (StilesArea.contains(Players.getLocal().getLocation())) {
- botStatus = "Exchanging Fishes";
- NPCs.getNearest(StilesFilter).interact("Exchange");
- Time.sleep(3000);
- } else {
- botStatus = "Walking to Stiles";
- walk(StilesPath);
- Time.sleep(1000);
- }
- }
- } else if (fishingMode.equals("Powerfishing")) {
- botStatus = "Dropping Fishes";
- wasDropping = false;
- for (Item item : Inventory.getItems()) {
- for (int id : fishIds) {
- if (item.getId() == id) {
- item.getWidgetChild().interact("Drop");
- wasDropping = true;
- Time.sleep(random(600, 900));
- break;
- }
- }
- if (wasDropping) {
- break;
- }
- }
- }
- }
- }
- @Override
- public boolean validate() {
- if (!statsLoaded) {
- startLevel = Skills.getLevels()[10];
- startExp = Skills.getExperiences()[10];
- if (startLevel != 0 && startExp != 0) {
- statsLoaded = true;
- }
- }
- if (wasDropping) {
- return true;
- }
- if (guiDone && Game.isLoggedIn() && Inventory.getCount() >= 28) {
- return true;
- }
- return false;
- }
- }
- private class AntiBan implements Task, Condition {
- @Override
- public void run() {
- int r = random(1, 150);
- if (r == 4) {
- antiBanStatus = ("Friend's List");
- Tabs.FRIENDS.open();
- Mouse.move(random(500, 650), random(300, 420));
- Time.sleep(random(25, 674));
- Mouse.move(random(500, 650), random(300, 420));
- Time.sleep(random(2100, 3400));
- Tabs.INVENTORY.open();
- } else if (r == 8) {
- antiBanStatus = ("Mouse Moving");
- for (int i = 0; i < 10; i++) {
- Mouse.move(random(0, 600), random(0, 600));
- }
- Time.sleep(random(1000, 2000));
- } else if (r == 2 || r == 3 || r == 4
- || r == 5 || r == 6 || r == 7 || r == 8 || r == 9
- || r == 10) {
- antiBanStatus = ("Angle Adjustment");
- Camera.setAngle(random(1, 359));
- Time.sleep(random(1000, 2000));
- } else if (r == 16) {
- antiBanStatus = ("Check Quest");
- Tabs.QUESTS.open();
- Time.sleep(random(1000, 2000));
- Tabs.INVENTORY.open();
- } else if (r == 20) {
- antiBanStatus = ("Checking Exp");
- Tabs.STATS.open();
- Widgets.get(320).getChild(29).hover();
- Time.sleep(random(2100, 3400));
- Tabs.INVENTORY.open();
- } else if (r == 12) {
- antiBanStatus = ("Playing with tabs");
- Tabs.ATTACK.open();
- Time.sleep(random(50, 600));
- Tabs.TASK_LIST.open();
- Time.sleep(random(50, 600));
- Tabs.STATS.open();
- Time.sleep(random(50, 600));
- Tabs.QUESTS.open();
- Time.sleep(random(50, 600));
- Tabs.INVENTORY.open();
- Time.sleep(random(50, 600));
- Tabs.EQUIPMENT.open();
- Time.sleep(random(50, 600));
- Tabs.PRAYER.open();
- Time.sleep(random(50, 600));
- Tabs.MAGIC.open();
- Time.sleep(random(50, 600));
- Tabs.INVENTORY.open();
- }
- else if (r == 1){
- antiBanStatus = ("Playing with tabs");
- Tabs.ATTACK.open();
- Time.sleep(random(50, 600));
- Tabs.TASK_LIST.open();
- Time.sleep(random(50, 600));
- Tabs.STATS.open();
- Time.sleep(random(50, 600));
- Tabs.QUESTS.open();
- Time.sleep(random(50, 600));
- Tabs.INVENTORY.open();
- }
- else if (r ==26){
- antiBanStatus = ("Playing with tabs");
- Tabs.MAGIC.open();
- Time.sleep(random(50, 600));
- Tabs.INVENTORY.open();
- Time.sleep(random(50, 600));
- Tabs.EQUIPMENT.open();
- Time.sleep(random(50, 600));
- Tabs.PRAYER.open();
- Time.sleep(random(50, 600));
- Tabs.MAGIC.open();
- Time.sleep(random(50, 600));
- Tabs.INVENTORY.open();
- }
- }
- else {
- antiBanStatus = ("Idle");
- Time.sleep(random(250, 300));
- }
- }
- @Override
- public boolean validate() {
- if (guiDone && Game.isLoggedIn() && !Players.getLocal().isMoving()
- && Players.getLocal().getAnimation() != -1) {
- return true;
- }
- return false;
- }
- }
- @Override
- public void onStop() {
- System.out
- .println("Turning off JamRSKaramjaFisher. Thanks for using it !");
- System.exit(0);
- }
- // START: Code generated using Enfilade's Easel
- private final Color color1 = new Color(0, 0, 0, 100);
- private final Color color2 = new Color(255, 255, 255, 80);
- private final Color color3 = new Color(255, 255, 255);
- private final Color color4 = new Color(51, 102, 0);
- private final BasicStroke stroke1 = new BasicStroke(3);
- private final BasicStroke stroke2 = new BasicStroke(1);
- private final BasicStroke stroke3 = new BasicStroke(2);
- private final Font font1 = new Font("Arial", 1, 16);
- private final Font font2 = new Font("Arial", 1, 11);
- private final Font font3 = new Font("Arial", 1, 13);
- private final Font font4 = new Font("Arial", 1, 12);
- static int currentLevel = 0;
- static int levelGained = 0;
- static int experienceGained = 0;
- static int experienceHour = 0;
- static int experienceTNL = 0;
- static int tunaCaughtHour = 0;
- static int lobstersCaughtHour = 0;
- static int swordfishCaughtHour = 0;
- static int shrimpsCaughtHour = 0;
- static int anchoviesCaughtHour = 0;
- static int profit = 0;
- static int profitHour = 0;
- static int percentLevel = 0;
- static int experience = 0;
- static long timeToNextLevel = 0;
- @Override
- public void onRepaint(Graphics g1) {
- if (Game.isLoggedIn() && guiDone && !(Skills.getLevels()[10] == 0)) {
- currentLevel = Skills.getLevels()[10];
- experience = Skills.getExperiences()[10];
- levelGained = currentLevel - startLevel;
- experienceGained = Skills.getExperience(10) - startExp;
- experienceHour = (int) ((experienceGained * 3600000D) / (System
- .currentTimeMillis() - startTime));
- experienceTNL = XP_TABLE[currentLevel + 1] - experience;
- tunaCaughtHour = (int) ((tunaCaught) * 3600000D / (System
- .currentTimeMillis() - startTime));
- lobstersCaughtHour = (int) ((lobstersCaught) * 3600000D / (System
- .currentTimeMillis() - startTime));
- swordfishCaughtHour = (int) ((swordfishCaught) * 3600000D / (System
- .currentTimeMillis() - startTime));
- shrimpsCaughtHour = (int) ((shrimpCaught) * 3600000D / (System
- .currentTimeMillis() - startTime));
- anchoviesCaughtHour = (int) ((anchoviesCaught) * 3600000D / (System
- .currentTimeMillis() - startTime));
- profit = ((tunaCaught * tunaPrice)
- + (lobstersCaught * lobsterPrice) + (swordfishCaught * swordfishPrice));
- profitHour = (int) ((profit) * 3600000D / (System
- .currentTimeMillis() - startTime));
- percentLevel = (int) (100 * (experience - XP_TABLE[currentLevel]) / (XP_TABLE[currentLevel + 1] - XP_TABLE[currentLevel]));
- if (experienceTNL == 0 || experienceHour == 0) {
- timeToNextLevel = 0;
- } else {
- timeToNextLevel = (long) ((double) experienceTNL
- / (double) experienceHour * 3600000D);
- }
- Graphics2D g = (Graphics2D) g1;
- g.setColor(color1);
- g.fillRoundRect(6, 205, 508, 131, 16, 16);
- g.setColor(color2);
- g.setStroke(stroke1);
- g.setColor(color3);
- g.setStroke(stroke2);
- g.drawLine(241, 253, 328, 253);
- g.drawLine(59, 253, 126, 253);
- g.setColor(color2);
- g.setStroke(stroke1);
- g.drawLine(7, 235, 512, 235);
- g.drawLine(385, 206, 385, 334);
- g.drawLine(184, 206, 184, 334);
- g.setFont(font1);
- g.setColor(color3);
- g.drawString("JamRSKaramjaFisher", 16, 229);
- g.drawString("Running Time : "
- + format(System.currentTimeMillis() - startTime), 193, 229);
- g.setFont(font2);
- g.drawString("Experience", 63, 252);
- g.drawString("Fishies Caught", 244, 252);
- g.drawString("Current Level : " + currentLevel + " ( "
- + levelGained + " )", 12, 270);
- g.drawString("Experience Gained : " + experienceGained, 12, 285);
- g.drawString("Experience Hour : " + experienceHour, 12, 300);
- g.drawString("Experience TNL : " + experienceTNL, 12, 315);
- g.drawString("Time TNL : " + format(timeToNextLevel), 12, 329);
- g.drawString("Tuna : " + tunaCaught + " (Hour : " + tunaCaughtHour
- + ")", 191, 269);
- g.setColor(color4);
- g.fillRoundRect(190, 308, (int) (percentLevel * 1.9), 18, 16, 16);
- g.setColor(color3);
- g.setStroke(stroke3);
- g.drawRoundRect(190, 308, 190, 18, 16, 16);
- g.setStroke(stroke2);
- g.drawLine(409, 252, 491, 252);
- g.drawString("Lobsters : " + lobstersCaught + " (Hour : "
- + lobstersCaughtHour + ")", 191, 283);
- g.drawString("Swordfish : " + swordfishCaught + " (Hour : "
- + swordfishCaughtHour + ")", 191, 297);
- g.setFont(font3);
- g.drawString(percentLevel + "%", 269, 322);
- g.setColor(color2);
- g.setStroke(stroke1);
- g.drawLine(385, 290, 512, 290);
- g.setFont(font2);
- g.setColor(color3);
- g.drawString("Money Gained", 412, 251);
- g.drawString("Profit : " + profit, 392, 270);
- g.drawString("Profit Hour : " + profitHour, 392, 283);
- g.setFont(font4);
- g.drawString(botStatus, 393, 226);
- g.setStroke(stroke2);
- g.drawLine(405, 306, 492, 306);
- g.setFont(font2);
- g.drawString("Antiban Status", 410, 305);
- g.drawString(antiBanStatus, 390, 322);
- // Mouse Region
- g.drawImage(mouse, Mouse.getLocation().x, Mouse.getLocation().y,
- null);
- // End Mouse Region
- }
- }
- // END: Code generated using Enfilade's Easel
- public class GUI extends JFrame {
- private static final long serialVersionUID = 4269443661291347215L;
- public GUI() {
- setTitle("JamRSKaramjaFisher");
- getContentPane().setLayout(null);
- setBounds(40, 40, 292, 274);
- setVisible(false);
- title = new JLabel();
- fishingModeLBL = new JLabel();
- fish = new JLabel();
- fishList = new JComboBox<String>();
- fishingModeList = new JComboBox<String>();
- instructions = new JLabel();
- instruction2 = new JLabel();
- startButton = new JButton();
- title.setText("JamRSKaramjaFisher");
- title.setBounds(0, 12, getWidth() - 7, 20);
- title.setFont(new Font("Tahoma", Font.PLAIN, 16));
- title.setHorizontalAlignment(SwingConstants.CENTER);
- fish.setText("Fish : ");
- fish.setBounds(20, 57, 40, 10);
- fishingModeLBL.setText("Fishing Mode :");
- fishingModeLBL.setBounds(20, 82, 80, 14);
- fishList.setBounds(100, 50, 132, 20);
- fishList.setModel(new DefaultComboBoxModel<String>(new String[] {
- "Shrimps/Anchovies", "Lobsters", "Swordfish", "Tuna/Swordfish" }));
- fishingModeList.setBounds(100, 79, 132, 20);
- fishingModeList.setModel(new DefaultComboBoxModel<String>(
- new String[] { "Powerfishing" }));
- instructions.setBounds(-7, 110, getWidth(), 50);
- instructions
- .setText("<html>Note that you must have your cage, harpoon or net <br> <center>in your inventory or toolbelt!</center></html>");
- instructions.setHorizontalAlignment(SwingConstants.CENTER);
- instruction2.setText("Please start at the fishing area.");
- instruction2.setBounds(-7, 180, getWidth(), 12);
- instruction2.setHorizontalAlignment(SwingConstants.CENTER);
- startButton.setText("Start");
- startButton.setBounds(108, 200, 70, 23);
- startButton.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- fishingMode = fishingModeList.getSelectedItem().toString();
- String f = fishList.getSelectedItem().toString();
- if (f.equals("Lobsters")) {
- fishType = "Cage";
- spotID = 324;
- } else if (f.equals("Tuna/Swordfish")) {
- fishType = "Harpoon";
- spotID = 324;
- } else if (f.equals("Shrimps/Anchovies")) {
- fishType = "Net";
- spotID = 323;
- }
- else if (f.equals("Swordfish")) {
- fishType = "Harpoon";
- spotID = 324;
- }
- setVisible(false);
- startTime = System.currentTimeMillis();
- guiDone = true;
- }
- });
- fishList.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- String f = fishList.getSelectedItem().toString();
- if (f.equals("Lobsters")) {
- fishingModeList.removeAllItems();
- fishingModeList.addItem("Stiles");
- fishingModeList.addItem("Powerfishing");
- } else if (f.equals("Shrimps/Anchovies")) {
- fishingModeList.removeAllItems();
- fishingModeList.addItem("Powerfishing");
- }
- else if (f.equals("Swordfish")) {
- fishingModeList.removeAllItems();
- fishingodeList.addMItem("Stiles");
- fishingModeList.addItem("Powerfishing");
- }
- else if (f.equals("Tuna/Swordfish")) {
- fishingModeList.removeAllItems();
- fishingodeList.addMItem("Stiles");
- fishingModeList.addItem("Powerfishing");
- }
- );
- getContentPane().add(title);
- getContentPane().add(fishingModeLBL);
- getContentPane().add(fish);
- getContentPane().add(fishList);
- getContentPane().add(fishingModeList);
- getContentPane().add(instructions);
- getContentPane().add(instruction2);
- getContentPane().add(startButton);
- }
- JLabel title;
- JLabel fishingModeLBL;
- JLabel fish;
- JLabel instructions;
- JLabel instruction2;
- JComboBox<String> fishList;
- JComboBox<String> fishingModeList;
- JButton startButton;
- }
- @Override
- public void messageReceived(MessageEvent arg0) {
- if (arg0.getMessage().contains("You catch a lobster")) {
- lobstersCaught++;
- }
- if (arg0.getMessage().contains("catch a tuna")) {
- tunaCaught++;
- }
- if (arg0.getMessage().contains("catch a swordfish")) {
- swordfishCaught++;
- }
- if (arg0.getMessage().contains("catch some shrimp")) {
- shrimpCaught++;
- }
- if (arg0.getMessage().contains("catch some anchovies")) {
- anchoviesCaught++;
- }
- }
- class LoadingThread extends Thread {
- @Override
- public void run() {
- System.out.println("Checking for Update...");
- boolean turningOff = false;
- try {
- turningOff = checkForUpdate();
- } catch (IOException e) {
- System.out.println("Failed to check for update.");
- }
- if (!turningOff) {
- System.out.println("Loading Price... ");
- tunaPrice = getPrice(tunaID);
- lobsterPrice = getPrice(lobsterID);
- swordfishPrice = getPrice(swordfishID);
- System.out.println("Prices are : Tuna " + tunaPrice
- + " gp, Lobster " + lobsterPrice + " gp, Swordfish "
- + swordfishPrice + " gp.");
- System.out.println("Done Loading price.");
- System.out.println("Loading Mouse cursor.");
- loadMouseCursor();
- System.out.println("Done Loading Mouse cursor.");
- gui = new GUI();
- gui.setVisible(true);
- }
- }
- private int getPrice(int itemID) {
- URL url;
- InputStream in_stream;
- String line = "0";
- BufferedReader reader;
- try {
- url = new URL("http://scripts.audefy.com/l/" + itemID);
- in_stream = url.openConnection().getInputStream();
- reader = new BufferedReader(new InputStreamReader(in_stream));
- line = reader.readLine();
- } catch (IOException ex) {
- System.out
- .println("An error occured while trying to load price");
- }
- return Integer.parseInt(line);
- }
- }
- private String format(long time) {
- StringBuilder t = new StringBuilder();
- long total_secs = time / 1000;
- long total_mins = total_secs / 60;
- long total_hrs = total_mins / 60;
- int secs = (int) total_secs % 60;
- int mins = (int) total_mins % 60;
- int hrs = (int) total_hrs % 60;
- if (hrs < 10) {
- t.append("0");
- }
- t.append(hrs);
- t.append(":");
- if (mins < 10) {
- t.append("0");
- }
- t.append(mins);
- t.append(":");
- if (secs < 10) {
- t.append("0");
- }
- t.append(secs);
- return t.toString();
- }
- private void walk(Tile[] fullTile) {
- if (Walking.getEnergy() > random(30, 50)) {
- Walking.setRun(true);
- }
- for (int i = fullTile.length - 1; i >= 0; i--) {
- if (Calculations.distanceTo(fullTile[i]) <= 15
- && Walking.walk(fullTile[i])) {
- break;
- }
- }
- }
- private int random(int Min, int Max) {
- return Random.nextInt(Min, Max);
- }
- private void loadMouseCursor() {
- // Mouse Region
- final URL cursorURL;
- try {
- cursorURL = new URL("http://i.imgur.com/lgkS7.png");
- mouse = ImageIO.read(cursorURL);
- } catch (MalformedURLException ex) {
- System.out.println("Unable to download the cursor");
- } catch (IOException ex) {
- System.out.println("Unable to load the cursor");
- }
- // End Mouse Region
- }
- private boolean checkForUpdate() throws IOException {
- BufferedReader buffReader = new BufferedReader(new InputStreamReader(
- new URL("http://pastebin.com/raw.php?i=Jc1nf3MZ").openStream()));
- String text;
- while ((text = buffReader.readLine()) != null) {
- if (text.contains("final static double version = ")) {
- String versionString = text.replace(
- "final static double version = ", "");
- versionString = versionString.replace(";", "");
- double versionD;
- try {
- versionD = Double.parseDouble(versionString);
- buffReader.close();
- if (versionD > version) {
- System.out.println("An update is available. Version "
- + versionD);
- int answer = JOptionPane.showConfirmDialog(null,
- "An update is available. Version " + versionD
- + ". Do you want to update ?",
- "Update available", JOptionPane.YES_NO_OPTION);
- if (answer == JOptionPane.YES_OPTION) {
- Desktop.getDesktop()
- .browse(new URI(
- "http://www.powerbot.org/community/topic/675111-new-jamrskaramjafisher-best-known-karamja-fisher/"));
- stop();
- return true;
- }
- } else {
- System.out.println("No updates available");
- }
- } catch (Exception e) {
- System.out.println("Failed to check for update");
- }
- break;
- }
- }
- buffReader.close();
- return false;
- }
- Filter<NPC> StilesFilter = new Filter<NPC>() {
- @Override
- public boolean accept(NPC t) {
- if (t.getId() == 11267) {
- return true;
- }
- return false;
- }
- };
- Tile[] StilesPath = new Tile[] { new Tile(2924, 3175, 0),
- new Tile(2924, 3172, 0), new Tile(2915, 3172, 0),
- new Tile(2906, 3172, 0), new Tile(2900, 3166, 0),
- new Tile(2898, 3157, 0), new Tile(2889, 3154, 0),
- new Tile(2881, 3154, 0), new Tile(2873, 3150, 0),
- new Tile(2865, 3149, 0), new Tile(2857, 3144, 0),
- new Tile(2852, 3142, 0) };
- Tile[] StilesPath2 = new Tile[] { new Tile(2922, 3173, 0),
- new Tile(2913, 3173, 0), new Tile(2904, 3170, 0),
- new Tile(2895, 3167, 0), new Tile(2894, 3158, 0),
- new Tile(2892, 3149, 0), new Tile(2890, 3143, 0),
- new Tile(2881, 3143, 0), new Tile(2872, 3145, 0),
- new Tile(2863, 3149, 0), new Tile(2855, 3144, 0),
- new Tile(2852, 3142, 0) };
- Tile[] FishPath2 = new Tile[] { new Tile(2852, 3142, 0),
- new Tile(2860, 3147, 0), new Tile(2869, 3147, 0),
- new Tile(2878, 3144, 0), new Tile(2887, 3146, 0),
- new Tile(2896, 3148, 0), new Tile(2897, 3157, 0),
- new Tile(2898, 3166, 0), new Tile(2901, 3172, 0),
- new Tile(2910, 3172, 0), new Tile(2919, 3172, 0),
- new Tile(2924, 3175, 0) };
- Tile[] FishPath = new Tile[] { new Tile(2854, 3142, 0),
- new Tile(2859, 3146, 0), new Tile(2865, 3148, 0),
- new Tile(2872, 3146, 0), new Tile(2881, 3146, 0),
- new Tile(2890, 3146, 0), new Tile(2894, 3150, 0),
- new Tile(2898, 3154, 0), new Tile(2898, 3163, 0),
- new Tile(2898, 3168, 0), new Tile(2903, 3170, 0),
- new Tile(2908, 3172, 0), new Tile(2917, 3172, 0),
- new Tile(2924, 3172, 0), new Tile(2924, 3175, 0) };
- Area FishingArea = new Area(new Tile[] { new Tile(2927, 3172, 0),
- new Tile(2919, 3172, 0), new Tile(2919, 3183, 0),
- new Tile(2927, 3183, 0) });
- Area StilesArea = new Area(new Tile[] { new Tile(2847, 3140, 0),
- new Tile(2855, 3140, 0), new Tile(2855, 3146, 0),
- new Tile(2848, 3146, 0) });
- static final int[] XP_TABLE = { 0, 0, 83, 174, 276, 388, 512, 650, 801,
- 969, 1154, 1358, 1584, 1833, 2107, 2411, 2746, 3115, 3523, 3973,
- 4470, 5018, 5624, 6291, 7028, 7842, 8740, 9730, 10824, 12031,
- 13363, 14833, 16456, 18247, 20224, 22406, 24815, 27473, 30408,
- 33648, 37224, 41171, 45529, 50339, 55649, 61512, 67983, 75127,
- 83014, 91721, 101333, 111945, 123660, 136594, 150872, 166636,
- 184040, 203254, 224466, 247886, 273742, 302288, 333804, 368599,
- 407015, 449428, 496254, 547953, 605032, 668051, 737627, 814445,
- 899257, 992895, 1096278, 1210421, 1336443, 1475581, 1629200,
- 1798808, 1986068, 2192818, 2421087, 2673114, 2951373, 3258594,
- 3597792, 3972294, 4385776, 4842295, 5346332, 5902831, 6517253,
- 7195629, 7944614, 8771558, 9684577, 10692629, 11805606, 13034431,
- 14391160, 15889109, 17542976, 19368992, 21385073, 23611006,
- 26068632, 28782069, 31777943, 35085654, 38737661, 42769801,
- 47221641, 52136869, 57563718, 63555443, 70170840, 77474828,
- 85539082, 94442737, 104273167 };
- }
Advertisement
Add Comment
Please, Sign In to add comment