Jump to content

Mr Pro Pop

Trade With Caution
  • Posts

    204
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Mr Pro Pop

  1. [Fixed] Hello guys, I were coding an ( Inventory Items List Fetcher ) system to have a list of my inventory items in the log. It shows the items list but when i tried adding a quantity next to it, it just type x1 next to every item name as it check the slot quantity, So for example if i have 4 logs it will just say -> logs x1 4 times instead of x4 here is my code: public void onStart() throws InterruptedException, NullPointerException { Item[] k = getInventory().getItems(); int i = 0; while (i < 28) { if (k[i] != null) { log(k[i].getName() + " x" + k[i].getAmount()); } i++; } } I would really appreciate is someone helped me with this as i couldnt figure it out, Spent more then 3 hours with no luck and couldnt fund an tutorial of it even i have checked the api system with no result All comments, suggestions and ideas are allowed and is much appreciated. Best regards, Mr Pro Pop. Thanks in advance.
  2. I tryed but couldnt get it to work with me, can you please provide me with the code, Will really appreciate. Thanks
  3. Okay bro ill use conditional sleeps. anyways i dont know how to add the bounding box, can you provide me with the code please.. ? so what do i need to do, any method to get it working ?
  4. Hello guys, I need help adding a Polygon Shape in to my target object, I dont know whats wrong with my code.. Best regards, Mr Pro Pop. Thanks In Advance! here is the code: import java.awt.Color; import java.awt.Graphics2D; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Mr Pro Pop", info = "", logo = "", name = "woodcutting", version = 1) public class wc extends Script { public void chop() throws InterruptedException { if (!myPlayer().isAnimating() && !getInventory().isFull()) { RS2Object tree = getObjects().closest("Tree"); tree.interact("Chop down"); } } public int onLoop() throws InterruptedException { chop(); sleep(random(100+1800,2100)); return 0; } public void onPaint(Graphics2D g) { Color color1 = new Color(255, 255, 255, 255); g.setColor(color1); RS2Object tree = getObjects().closest("Tree"); int x = tree.getPosition().getX(); int y = tree.getPosition().getY(); int h = tree.getHeight(); g.drawRect(x, y, 75, h); } }
×
×
  • Create New...