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
Array

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

    • Come give us feedback on the next version of TRiBot!
        • Thanks
        • Like
      • 31 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
      • 19 replies
    • Over the last three weeks, I've been working on upgrading our server infrastructure. It's finally ready and is now live!

      Why?

      Increased reliability - less server errors


      Increased availability - less downtime


      Increased security - keeping us and you secure


      Increased capacity - ability to serve you better


      Increased speed - less waiting for things to load


      Faster development - server and service updates will come faster


      What are the changes?

      Move from a single AWS EC2 instance to AWS ECS (Elastic Container Service)


      Distributed computing


      Load balancing


      Git management of server files and filesystem


      Redis caching


      How?

      AWS ECS (with 10 EC2 instances)


      AWS ElastiCache (Redis)


      AWS Load Balancing


      AWS EFS (Elastic file system)


      Please bare with us as I continue to tune the server for maximum performance. Slow loading speeds may occur temporarily. I thank everyone for their patience.

      Please post on this thread if you experience any issues other than slow loading times.
        • Like
      • 51 replies
    • This release will:

      Fix prayers and world hopper API (Thanks @JoeDezzy1 and @erickho123)


      Improve banking API (Thanks @Encoded)


      Adds methods for returning and using Java Lists, rather than arrays


      Slightly randomizes some hardcoded behaviour


      Removes sleeps from waitConditions; the efficiency saving potential is negligible in these use-cases, therefore cleaner code is preferable


      Other back-end improvements





      Note: If you are using LG, please restart both the RS client and TRiBot.
        • Sad
        • Haha
        • Thanks
        • Like
      • 90 replies
    • This release will:

      Add new internal framework for capturing exceptions


      Fix issue with not selecting the last column in world hopper (Thanks @Todd)


      Add a message about pin usage in Banking#openBank (Thanks @Todd)


      Disable the firewall by default (Thanks @Todd)


      Fix handling of the welcome screen after login (Thanks @Encoded)


      Fix wrong amount bank withdrawal (Thanks @Encoded)


      Fix Screen#isInViewport


      Fix Game#isInViewport (Thanks @Encoded)


      Call onBreakEnd for ListenerManager Breaking Listeners (Thanks @Encoded)


      Fix Prayer#getPrayerPoints NumberFormatException (Thanks @JoeDezzy1)



      Note: If you are using LG, please restart both the RS client and TRiBot.
        • Thanks
        • Like
      • 28 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...