• Log in or sign up for an account here: https://www.sythe.org/login

Dontpanics eye of newt buyer

killerpills1

Active Member
Joined
Dec 8, 2007
Sythe Gold
0
Messages
197
Is that script fixed to open the door?
 
Is that script fixed to open the door?

Thats not the only thing the pro version has to offer, but im going to look through the script provided in the last page, update in a minute.

Update: The script does have the random path script inside, and to open the door. Since I am 99% sure this is the pro script, I will post it inside here just incase I am wrong, but I see all the features for pro inside. This is the .java.

CODE 2 POSTS DOWN.
 
how much/hr?
 
Heres the pro version, .java must be named DPNewtEyesPro.java

Code:
import com.speljohan.rsbot.accessors.Client;
import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.event.EventManager;
import com.speljohan.rsbot.event.listeners.PaintListener;
import com.speljohan.rsbot.script.Bank;
import com.speljohan.rsbot.script.InputManager;
import com.speljohan.rsbot.script.Script;
import com.speljohan.rsbot.script.wrappers.RSInterface;
import com.speljohan.rsbot.script.wrappers.RSObject;
import com.speljohan.rsbot.script.wrappers.RSPlayer;
import com.speljohan.rsbot.script.wrappers.RSTile;
import java.awt.Color;
import java.awt.Graphics;
import java.util.Map;

public class DPNewtEyesPro extends Script implements PaintListener {
  int waitAfterMoving;
  int failCount;
  boolean cameraMoving;
  int loads;
  boolean spinningView;
  public RSTile bankTile;
  public RSTile shopTile;
  public int coinID;
  public static int bankBoothID = 2213;
  public RSTile[] bankToShopPath;
  public RSTile[] shopToBankPath;
  public RSTile[] walkBackPath;
  int i;

  public DPNewtEyesPro() {
    this.waitAfterMoving = -1;
    this.failCount = 0;
    this.cameraMoving = false;
    this.loads = 0;
    this.spinningView = false;
    this.bankTile = new RSTile(3092, 3245);
    this.shopTile = new RSTile(3015, 3259);
    this.coinID = 995;

    //this.bankToShopPath = new RSTile[] { new RSTile(3092, 3245) new RSTile(3087, 3249), new RSTile(3083, 3254), new RSTile(3082, 3260), new RSTile(3078, 3266), new RSTile(3075, 3272), new RSTile(3070, 3276), new RSTile(3064, 3276), new RSTile(3058, 3276), new RSTile(3052, 3276), new RSTile(3046, 3276), new RSTile(3040, 3276), new RSTile(3034, 3276), new RSTile(3030, 3271), new RSTile(3025, 3267), new RSTile(3021, 3262), new RSTile(3017, 3259) };
    //this.shopToBankPath = new RSTile[] { new RSTile(3017, 3259), new RSTile(3021, 3265), new RSTile(3027, 3267), new RSTile(3032, 3272), new RSTile(3037, 3276), new RSTile(3043, 3276), new RSTile(3049, 3276), new RSTile(3055, 3276), new RSTile(3061, 3276), new RSTile(3067, 3276), new RSTile(3072, 3271), new RSTile(3077, 3267), new RSTile(3080, 3261), new RSTile(3081, 3255), new RSTile(3086, 3250), new RSTile(3092, 3247), new RSTile(3092, 3245) };
    //this.bankToShopPath = new RSTile[] { new RSTile(3092, 3245) new RSTile(3087, 3249), new RSTile(3083, 3254), new RSTile(3082, 3260), new RSTile(3078, 3266), new RSTile(3075, 3272), new RSTile(3070, 3276), new RSTile(3064, 3276), new RSTile(3058, 3276), new RSTile(3052, 3276), new RSTile(3046, 3276), new RSTile(3040, 3276), new RSTile(3034, 3276), new RSTile(3030, 3271), new RSTile(3025, 3267), new RSTile(3021, 3262), new RSTile(3017, 3259) };
    this.shopToBankPath = new RSTile[] { new RSTile(3017, 3259), new RSTile(3021, 3265), new RSTile(3027, 3267), new RSTile(3032, 3272), new RSTile(3037, 3276), new RSTile(3043, 3276), new RSTile(3049, 3276), new RSTile(3055, 3276), new RSTile(3061, 3276), new RSTile(3067, 3276), new RSTile(3072, 3271), new RSTile(3077, 3267), new RSTile(3080, 3261), new RSTile(3081, 3255), new RSTile(3086, 3250), new RSTile(3092, 3247), new RSTile(3092, 3245) };
    this.bankToShopPath = reversePath(shopToBankPath);
    this.walkBackPath = new RSTile[] { new RSTile(3222, 3219), new RSTile(3232, 3224), new RSTile(3227, 3234), new RSTile(3222, 3244), new RSTile(3211, 3246), new RSTile(3200, 3247), new RSTile(3189, 3246), new RSTile(3178, 3243), new RSTile(3168, 3238), new RSTile(3157, 3236), new RSTile(3146, 3232), new RSTile(3136, 3227), new RSTile(3125, 3227), new RSTile(3114, 3228), new RSTile(3108, 3238), new RSTile(3103, 3248), new RSTile(3092, 3245) };
  }

  public double getVersion() {
    return 2.2;
  }

  public String getName() {
    return "Dontpanic's Newt Eye Buyer - Pro Version";
  }

  public String getAuthor() {
    return "Dontpanic - [email protected]";
  }

  public String getScriptCategory() {
    return "Dontpanic Scripts";
  }

  public String getScriptDescription() {
    String str = "";

    str = str + "<html>\n";
    str = str + "<body>\n";
    str = str + "<h2>" + getName() + " v" + getVersion() + "</h2><br>\n";
    str = str + "Author: " + getAuthor() + "<br><br>\n";
    str = str + "Start anywhere with money in your inventory.  (Notice: If you are lower than 30hp, you should start at the draynor bank to avoid being killed by jail guards)<BR><BR>Script sold by [email protected]";

    str = str + "</body>\n";
    str = str + "</html\n";

    return str;
  }

  //public boolean onStart(String[] paramArrayOfString) {
  public boolean onStart (Map<String, String> args) {
    /*URL localURL;
    try {
      localURL = new URL("http://jagex.ws/auth.php");
      BufferedReader localBufferedReader = new BufferedReader(new InputStreamReader(localURL.openStream()));

      String str = localBufferedReader.readLine();
      localBufferedReader.close();
      if (!(str.equals("1"))) {
        log("You are not authenticated to run this script.");
        return false;
      }
    } catch (Exception localException) {
      return false;
    }*/

    Bot.getEventManager().addListener(PaintListener.class, this);

    return true;
  }

  public void onFinish() {
    Bot.getEventManager().removeListener(PaintListener.class, this);
  }

  public int loop()
  {
    if (!(isLoggedIn()))
      return random(100, 200);

    if (checkSpinningView())
      return random(200, 300);

    if (checkCamera())
      return random(500, 800);

    if (getMyPlayer().isMoving())
      return random(50, 100);

    if (this.waitAfterMoving != -1) {
      i = this.waitAfterMoving;
      this.waitAfterMoving = -1;
      return i;
    }
    if (checkAttack())
      return random(800, 1000);

    int i = work();
    if (i != -1) {
      this.failCount = 0;
      return i;
    }
    if (walkBack()) {
      this.failCount = 0;
      return random(500, 800);
    }
    this.failCount += 1;
    if (this.failCount >= 10) {
      this.failCount = 0;
      homeTele();
      return random(2000, 3000);
    }
    return random(1000, 2000);
  }

  public boolean checkCamera()
  {
    if (this.cameraMoving) {
      if (Bot.getClient().getCameraCurveY() >= 380) {
        Bot.getInputManager().releaseKey('&');
        this.cameraMoving = false;
      }
      return true; }
    if (Bot.getClient().getCameraCurveY() < 380) {
      Bot.getInputManager().pressKey('&');
      this.cameraMoving = true;
      return true;
    }
    return false;
  }

  public boolean checkAttack() {
    if (getMyPlayer().isInCombat())
      return runFromCombat();

    return false;
  }

  public boolean runFromCombat()
  {
    return false;
  }

  public void onRepaint(Graphics paramGraphics)
  {
    paramGraphics.setColor(Color.YELLOW);
    paramGraphics.drawString("Dontpanic's Newt Eye Buyer", 260, 20);
    paramGraphics.drawString("Loads: " + this.loads, 260, 38);
  }

  public int work() {
    if (getInventoryCount() != 28)
      return buy();

    return bank();
  }

  public void runOn()
  {
    setRun(true);
  }

  public int buy() {
    if (atShop()) {
      if (shopOpen()) {
        buyFromShop();
        return random(800, 1000);
      }
      runOn();
      if (openDoor())
        return random(500, 800);

      if (openShop()) {
        this.waitAfterMoving = random(200, 300);
        return random(500, 800);
      }
      dpWalkTile(this.shopTile);
      this.waitAfterMoving = random(300, 400);
      return random(500, 800);
    }

    if (bankToShop())
      return random(500, 800);

    return -1;
  }

  public int bank()
  {
    if (atBank()) {
      if (RSInterface.getInterface(762).isValid()) {
        this.bank.depositAllExcept(new int[] { this.coinID });
        this.loads += 1;
        return random(500, 800);
      }
      if (distanceTo(this.bankTile) > 1) {
        if (dpWalkTile(this.bankTile)) {
          this.waitAfterMoving = random(200, 300);
          return random(500, 800);
        }
        return -1;
      }

      RSObject localRSObject = findObject(new int[] { bankBoothID });
      if (atObject(localRSObject, "uickly"))
        return random(500, 800);

      return -1;
    }

    if (openDoor())
      return random(500, 800);

    if (shopToBank())
      return random(500, 800);

    return -1;
  }

  public boolean dpWalkPath(RSTile[] paramArrayOfRSTile)
  {
    for (int i = paramArrayOfRSTile.length - 1; i >= 0; --i)
      if (dpWalkTile(randomizeTile(paramArrayOfRSTile[i], 1, 1)))
        return true;


    return false;
  }

  public boolean dpWalkTile(RSTile paramRSTile) {
    if (distanceTo(paramRSTile) <= 16) {
      walkTileMM(paramRSTile);
      return true;
    }
    return false;
  }

  public void homeTele()
  {
    openTab(6);
    castSpell(1);
  }

  public boolean walkBack() {
    return dpWalkPath(this.walkBackPath);
  }

  public boolean shopToBank() {
    return dpWalkPath(this.shopToBankPath);
  }

  public boolean bankToShop() {
    return dpWalkPath(this.bankToShopPath);
  }

  public boolean shopOpen() {
    return RSInterface.getInterface(620).isValid();
  }

  public boolean openShop() {
    return atNPC(getNearestNPCByID(new int[] { 583 }), "Trade");
  }

  public boolean openDoor() {
    RSObject localRSObject = findObject(new int[] { 40108 });
    if ((localRSObject != null) &&
      (distanceTo(localRSObject) <= 5)) {
      if (shopOpen()) {
        dpWalkTile(this.shopTile);
        return true;
      }
      if (!(atDoor(localRSObject, "West", "Open")))
        spinView();

      return true;
    }

    return false;
  }

  public void spinView() {
    Bot.getInputManager().pressKey('\'');
    this.spinningView = true;
  }

  public boolean checkSpinningView()
  {
    if (this.spinningView) {
      Bot.getInputManager().releaseKey('\'');
      this.spinningView = false;
      return true;
    }
    return false;
  }

  public void openStock()
  {
    int i = 61 + random(0, 3);
    int j = 72 + random(0, 3);
    moveMouse(i, j);
    clickMouse(i, j, true);
    wait(random(800, 1000));
  }

  public void buyFromShop() {
    int i = 384 + random(0, 3);
    int j = 105 + random(0, 3);
    moveMouse(i, j);
    clickMouse(i, j, false);
    wait(random(150, 200));
    if (atMenu("Buy X")) {
      wait(random(1400, 1500));
      sendText(Integer.toString(random(27, 99)), true);
    } else {
      openStock();
    }
  }

  public boolean atShop() {
    return (distanceTo(this.shopTile) < 6);
  }

  public boolean atBank() {
    return (distanceTo(this.bankTile) < 5);
  }
}
 
I added the file to the scripts folder and named it like you told me to I jsut cant seem to find it in the rsbot scripts window, yes I compiled all :P
 
Also it has a blue question mark on it...
 
Download this, its the .java. Put it in the scripts folder and compile, run rsbot, and its under dontpanics scripts.
 

Attachments

For some reason it wont come up in my rsbot folder with all the other DP scripts so I just made a new rsbot folder and just added Dps script there and i found it thanks mate.
 
Yourwelcome, though bots are risky now that I see it when I go on.
 
Should I sell the eyes for max price in ge?
 
thats what people say, but I just sell them for normal or lower, because no one buys at max.
 
Thrasher people like you are ruining the newt industry by releasing scripts to noobs and telling them its ok to sell at min price, YOU MUST SELL THEM at max or else the price will continue to fall as it is already...
 
First off watch who you're calling a "noob" second off, I planned on selling for max price, I am not stupid like most people such as your self makeing false accusations.
 
Why would you sell them for min or average that's about what the shop sells them for... So you would make barley any profit.
 
By the way, can you explain how you got the script to add to your RSBot, I have the same problem you were having and can't fix it.
 
NVM i was calling Trasher Alpha a noob not you, im sorry bout that.
 
Im not saying its not a good idea to sell them at the max price, I would love to do that, but I sold one newt in 10 minuts for max price, so I tried to sell for average price, I sold 6 in an hour, so I went a little below and I sold them all instantly.

Sell them however you want, I will sell how I want.

And its not that nice calling people newbs/noobs.
 
Im not saying its not a good idea to sell them at the max price, I would love to do that, but I sold one newt in 10 minuts for max price, so I tried to sell for average price, I sold 6 in an hour, so I went a little below and I sold them all instantly.

Sell them however you want, I will sell how I want.

And its not that nice calling people newbs/noobs.

agreed.
 
Runescape Gamblingrunescape gambling
Back
Top