Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold
Sign in to follow this  
Justin

[TOOLS/OTHER][1.0]Item Finder [World Hopping&Looting]

Recommended Posts

 

For anyone who needs I have edited this script to pickup easter ring and easter egg.

package scripts;import java.awt.Color;import java.awt.Graphics;import java.text.DecimalFormat;import org.tribot.api.DynamicClicking;import org.tribot.api.General;import org.tribot.api.input.Mouse;import org.tribot.api.types.colour.Tolerance;import org.tribot.api2007.Login;import org.tribot.api2007.Login.STATE;import org.tribot.api2007.NPCs;import org.tribot.api2007.Player;import org.tribot.api2007.Walking;import org.tribot.api2007.types.RSNPC;import org.tribot.script.Script;import org.tribot.script.ScriptManifest;import org.tribot.script.interfaces.Painting;@ScriptManifest(authors={"Justin"}, category="Other/Tools", name="EasterEggFinder")public class Eggs extends Script  implements Painting{  final long Time = System.currentTimeMillis();  public int amount;  public int RARE_COUNTER = 0;  private String format(long i) { DecimalFormat format = new DecimalFormat("00");    long m = System.currentTimeMillis() - i;    long h = m / 3600000L;    m -= h * 3600000L;    long min = m / 60000L;    m -= min * 60000L;    long seconds = m / 1000L;    return format.format(h) + ":" + format.format(min) + ":" + format.format(seconds); }  public void run()    throws NullPointerException  {    Mouse.setSpeed(150);    setLoginBotState(false);    while (true) {      if (Login.getLoginState().equals(Login.STATE.INGAME)) {        sleep(1800, 3600);        this.amount += 1;        RSNPC[] ALL_NPCS = NPCs.getAll();        if (ALL_NPCS.length > 0) {          for (int i = 0; i < ALL_NPCS.length; i++) {            if ((ALL_NPCS[i].getName().contains("Easter Ring")) || ((ALL_NPCS[i].getName().contains("Easter Egg")) && (ALL_NPCS[i] != null))) {              println("Item is in our map chunk");              if ((!ALL_NPCS[i].isOnScreen()) && (ALL_NPCS[i] != null)) {                println("Walking to location...");                Walking.walkTo(ALL_NPCS[i].getPosition());                sleep(1200L);                while (Player.isMoving())                  sleep(300L);              }              if (ALL_NPCS[i] != null) {                println("Found and clicked on a item!");                DynamicClicking.clickRSTile(ALL_NPCS[i].getPosition(), "");                this.RARE_COUNTER += 1;                sleep(600, 1200);                while (Player.isMoving())                  sleep(300L);                break;              }              sleep(600, 1200);              while (Player.isMoving())                sleep(300L);            }          }        }      }      int C = ColourCount(new Color(255, 255, 0), 220, 185, 546, 355, new Tolerance(0, 0, 0));      if ((Login.getLoginState().equals(Login.STATE.LOGINSCREEN)) && (C == 251))        Mouse.click(382, 329, 1);      Login.logout();      openWorldSelect();      switchWorld(General.random(1, 79));      sleep(300, 600);      Login.login();      sleep(50L);    }  }  private boolean isWorldSelectOpen()  {    if (Login.getLoginState() == Login.STATE.LOGINSCREEN)    {      Color tmpC = org.tribot.api2007.Screen.getColorAt(100, 200);      if ((tmpC.getBlue() == 0) && (tmpC.getRed() == 0) && (tmpC.getGreen() == 0))      {        return true;      }    }    return false;  }  private boolean openWorldSelect()  {    if (Login.getLoginState() == Login.STATE.LOGINSCREEN)    {      Mouse.clickBox(10, 465, 100, 495, 0);      sleep(500, 1000);      if (isWorldSelectOpen())      {        return true;      }    }    return false;  }  private boolean switchWorld(int world)  {    if (!isWorldSelectOpen())    {      openWorldSelect();    }    if ((world == 1) || (world == 2) || (world == 8) || (world == 16))    {      return false;    }    int xCoord = 0;    int yCoord = 0;    switch (world)    {    case 1:      yCoord = 83;      xCoord = 248;      break;    case 2:      yCoord = 107;      xCoord = 248;      break;    case 3:      yCoord = 131;      xCoord = 248;      break;    case 4:      yCoord = 155;      xCoord = 248;      break;    case 5:      yCoord = 179;      xCoord = 248;      break;    case 6:      yCoord = 203;      xCoord = 248;      break;    case 8:      yCoord = 227;      xCoord = 248;      break;    case 9:      yCoord = 251;      xCoord = 248;      break;    case 10:      yCoord = 275;      xCoord = 248;      break;    case 11:      yCoord = 299;      xCoord = 248;      break;    case 12:      yCoord = 323;      xCoord = 248;      break;    case 13:      yCoord = 347;      xCoord = 248;      break;    case 14:      yCoord = 371;      xCoord = 248;      break;    case 16:      yCoord = 395;      xCoord = 248;      break;    case 17:      yCoord = 419;      xCoord = 248;      break;    case 18:      yCoord = 443;      xCoord = 248;      break;    case 19:      yCoord = 107;      xCoord = 340;      break;    case 20:      yCoord = 131;      xCoord = 340;      break;    case 21:      yCoord = 155;      xCoord = 340;      break;    case 22:      yCoord = 179;      xCoord = 340;      break;    case 25:      yCoord = 203;      xCoord = 340;      break;    case 26:      yCoord = 227;      xCoord = 340;      break;    case 27:      yCoord = 251;      xCoord = 340;      break;    case 28:      yCoord = 275;      xCoord = 340;      break;    case 29:      yCoord = 299;      xCoord = 340;      break;    case 30:      yCoord = 323;      xCoord = 340;      break;    case 33:      yCoord = 347;      xCoord = 340;      break;    case 34:      yCoord = 371;      xCoord = 340;      break;    case 35:      yCoord = 395;      xCoord = 340;      break;    case 36:      yCoord = 419;      xCoord = 340;      break;    case 37:      yCoord = 443;      xCoord = 340;      break;    case 38:      yCoord = 467;      xCoord = 340;      break;    case 41:      yCoord = 83;      xCoord = 430;      break;    case 42:      yCoord = 107;      xCoord = 430;      break;    case 43:      yCoord = 131;      xCoord = 430;      break;    case 44:      yCoord = 155;      xCoord = 430;      break;    case 45:      yCoord = 179;      xCoord = 430;      break;    case 46:      yCoord = 203;      xCoord = 430;      break;    case 49:      yCoord = 227;      xCoord = 430;      break;    case 50:      yCoord = 251;      xCoord = 430;      break;    case 51:      yCoord = 275;      xCoord = 430;      break;    case 52:      yCoord = 299;      xCoord = 430;      break;    case 53:      yCoord = 323;      xCoord = 430;      break;    case 54:      yCoord = 347;      xCoord = 430;      break;    case 57:      yCoord = 371;      xCoord = 430;      break;    case 58:      yCoord = 395;      xCoord = 430;      break;    case 59:      yCoord = 419;      xCoord = 430;      break;    case 60:      yCoord = 443;      xCoord = 430;      break;    case 61:      yCoord = 83;      xCoord = 523;      break;    case 62:      yCoord = 107;      xCoord = 523;      break;    case 65:      yCoord = 131;      xCoord = 523;      break;    case 66:      yCoord = 155;      xCoord = 523;      break;    case 67:      yCoord = 179;      xCoord = 523;      break;    case 68:      yCoord = 203;      xCoord = 523;      break;    case 69:      yCoord = 227;      xCoord = 523;      break;    case 70:      yCoord = 251;      xCoord = 523;      break;    case 73:      yCoord = 275;      xCoord = 523;      break;    case 74:      yCoord = 299;      xCoord = 523;      break;    case 75:      yCoord = 323;      xCoord = 523;      break;    case 76:      yCoord = 347;      xCoord = 523;      break;    case 77:      yCoord = 371;      xCoord = 523;      break;    case 78:      yCoord = 395;      xCoord = 523;      break;    case 7:    case 15:    case 23:    case 24:    case 31:    case 32:    case 39:    case 40:    case 47:    case 48:    case 55:    case 56:    case 63:    case 64:    case 71:    case 72:    default:      switchWorld(General.random(1, 78));    }    Mouse.clickBox(xCoord, yCoord, xCoord + General.random(-1, 1), yCoord + General.random(-1, 1), 0);    sleep(500, 1000);    return isWorldSelectOpen();  }  private int ColourCount(Color Col, int x1, int y1, int x2, int y2, Tolerance T) {    int C = 0;    for (int x = x1; x < x2; x++) {      for (int y = y1; y < y2; y++)      {        if (org.tribot.api.Screen.coloursMatch(Col,          org.tribot.api2007.Screen.getColorAt(x, y), T))          C++;      }    }    return C;  }  public void onPaint(Graphics g) {    g.setColor(new Color(0, 0, 255, 50));    g.fillRect(546, 323, 191, 142);    g.setColor(Color.WHITE);    g.drawString("Item Hunter -1.0", 550, 340);    g.drawString("World Hops: " + this.amount, 550, 360);    g.drawString("Rares Found: " + this.RARE_COUNTER, 550, 380);    g.drawString("Run time:" + format(this.Time), 550, 400);  }}

lol what do we do with that

Share this post


Link to post
Share on other sites
Guest REDRUIVI

could you make an easter egg one please?

Share this post


Link to post
Share on other sites

The pumpkin was the second rare item introduced into Old School RuneScape. They are the first tradable items which can be found all over RuneScape from June 9, 2013 until June 16, 2013. After the initial event, you will be able to get pumpkins later in one of the holiday events

 

 

This script is only usefull later in one of the  holiday events.

Share this post


Link to post
Share on other sites

The pumpkin was the second rare item introduced into Old School RuneScape. They are the first tradable items which can be found all over RuneScape from June 9, 2013 until June 16, 2013. After the initial event, you will be able to get pumpkins later in one of the holiday events

 

 

This script is only usefull later in one of the  holiday events.

Really because i think its pretty usefull now? who wants to do events or do it later when they are literally laying on the floor right now easy as hell to get with a bot? okay yeah your logic is right because i guess after 5+ rares now its all of a sudden not important to get them.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Our picks

    • To better support the upcoming changes (TRiBot X, new repository), we're switching our login handler to Auth0. Instead of logging in with the standard form, you'll now be required to login through our Auth0 application.

      All existing accounts which have been used within approximately the past year have been imported into Auth0 using the same email and password combination which has been stored on the forums.

      What does this mean for users?

      Your account credentials are now even more securely stored


      You'll be able to login via Facebook, Google, and others in the future


      Is there anything users have to do differently now?

      Existing users: You'll have to login with the standard login, open your Account Settings, then link your Auth0 account


      New users: You'll be redirected to our Auth0 app (auth.tribot.org) where you'll be able to create an account


      Why was this change made?

      The new apps we are creating (such as the new repository) aren't able to use the forums to handle user logins


      To centralize all user accounts in one area


      To ensure that the client login doesn't go down when the forums are having problems


      To speed up our development


      Other considerations

      There's no documentation or official support for using Invision Community combined with Auth0, so there are still a few kinks we're working out


      We're in the works of creating an account management panel specifically for Auth0 accounts (ETA August)


      It's not possible to change email addresses for the time being (this will be resolved this August)


      Changing passwords is a weird process for the time being. To change your password, you'll have to use the "Don't remember your password" tool on the Auth0 login page
        • Like
      • 10 replies
    • Over the past month, we've been working hard on TRiBot's new repository - a much needed update. This change has been deemed necessary for TRiBot X, and will allow us to really speed up development of all aspects of TRiBot.

      Today we are going to share what we've been working on!


      Now you must be wondering what kind of features the new repository will have.... well, you'll have to be patient for a little while longer. We're still figuring out various technical aspects so we can't provide answers to all possible questions. We're also focusing on development rather than writing about it so that everyone can get access to our latest developments at lightning speed. I will however answer a few users' questions.

      We're planning on a release of this early to mid August, giving users some goodies before TRiBot X's release.

      Thank you all for being patient. I hope everyone is excited as much as I am!
        • Like
      • 17 replies
    • Over the past few months, I’ve been working diligently on a new project - TRiBot X. Everything has been written from the ground up, with all of the best practices of software engineering. Every aspect of TRiBot has been re-imagined to support three main goals: flexibility, useability, and reliability.
        • Like
      • 50 replies
    • Come give us feedback on the next version of TRiBot!
        • Thanks
        • Like
      • 86 replies
    • TRiBot is looking to improve a lot of its customer relationship management, customer on boarding process, customer experience, design elements, community engagement and pretty much everything else you can imagine when it comes to marketing.

      Our goal: To ensure that the marketing done TRULY reflects the experience and does not shine an inaccurate light on what TRiBot is lacking in.

      So I ask, what do you love about TRiBot and what do you hate about TRiBot? What does O S Bot, Rune M8, PowR Bot and Dre amBot do better? (yes I purposely didn't spell it right 😂).

      Love, 

      RileyZ
        • Like
      • 26 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...