Jump to content

toxicity959

Members
  • Posts

    24
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

8201 profile views

toxicity959's Achievements

Bronze Poster

Bronze Poster (2/10)

4

Reputation

  1. Hi, I would love to try this script if possible
  2. Hi Apa! Sorry to bother you again but I had some irl stuff come up and didn't actually get to try the script during the trial - is there any way I could get a reauth please? Thank you!
  3. Hi there! I would love a trial for your agility bot - I have used some of your free scripts in the past with good luck and I noticed your agility script supports high alching which many others don't. Thank you
  4. Hi, could I have a trial for this script please?
  5. Can I get a trial of this please?
  6. Because I didn't realize I could just use "Use" as my interact argument (whoops!). Here I was thinking I was so clever with my workaround. Thanks guys, I'll update OP to reflect my mistake for posterity.
  7. EDIT: Thanks to @HeyImJamie and @Explv for pointing out that this was much more complicated than necessary. This snippet accomplishes the same but more efficiently and reliably than my own method: RS2Object furnace = objects.closest("Furnace"); if(getInventory().interact("Use", "Item") && getObjects().closest("Furnace") != null && getObjects().closest("Furnace").interact("Use")) { //Do things here } ----- While working on a script, I noticed that calling entity.interact() to use an object on an entity, such as in the case of using an item on a furnace to open the crafting interface, would occasionally (for me, more often than not) click on players standing in front of the furnace, rather than on the furnace itself. Although the method was clicking inside the furnace, players standing in front of the furnace would take priority, and I would end up using my item on the player standing in front of the furnace, resulting in a "Nothing interesting happens." message. I solved this problem using the following snippet: RS2Object furnace = objects.closest("Furnace"); if (!furnace.isVisible()) camera.toEntity(furnace); furnace.hover(); sleep(random(100, 500)); if(mouse.getEntitiesOnCursor().size() == 1 && mouse.getEntitiesOnCursor().get(0).equals(furnace)) { mouse.click(false); //Do things here } This simply moves the mouse over the furnace, then checks if the furnace is the only thing under the mouse. If this is true, then it will interact with the furnace, and then continue normally. If not, this cycle of the loop will be complete, and the next cycle will move the mouse once more and check again. This method has proven successful over many hours of testing my script, and has completely eliminated the "Nothing interesting happens." message.
  8. If I'm understanding you properly, you're looking to see if there are x amount of an item anywhere on the ground (e.g. looking for >250 coins, 3 stacks of 100 coins = 300 coins, loot all stacks). You could use a for loop to accomplish this. Something like this comes to mind. Just be careful with the while loop -- depending on your particular case, your code could get stuck there. int amount = 0; int itemId = <your item>; for(GroundItem g : getGroundItems().getAll()) { if(g.getId() == itemId) amount += g.getAmount(); } if(amount > x) { GroundItem g = getGroundItems().closest(itemId); while(g != null) { g.interact("Take"); new ConditionalSleep(10000){ public boolean condition() throws InterruptedException { return !g.exists(); } }.sleep(); g = getGroundItems().closest(itemId); } }
  9. Every btc post makes me regret not mining it 10 years ago :<
  10. 4 ROTATING skulls. That warning means business
  11. I never took Inorganic, but I did well in Orgo. I can't give specific advice for this exam, but in general I found that I studied most effectively by answering practice questions. Go through chapters you feel weak in in your textbook, and try to solve every problem that has a solution included in the book. If you can't solve it, read the solution, solve it out, move on to another problem, and come back to the ones you haven't solved later.
×
×
  • Create New...