

toxicity959
Members-
Posts
24 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by toxicity959
-
Hi, I would love to try this script if possible
-
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!
-
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
-
Hi, could I have a trial for this script please?
-
Can I get a trial of this please?
-
Could I get a trial please?
-
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.
-
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.
-
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); } }
-
Every btc post makes me regret not mining it 10 years ago :<
-
4 ROTATING skulls. That warning means business
-
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.
-
Evolving Woodcutter | 1 - 60 Auto | Banking
toxicity959 replied to luminlumin's topic in Resource Collection
You could try to use conditional sleeps in this situation as well. I think maybe a !tree.exists() might work well in this particular situation. -
[FREE][P2P | NO REQS | 2 LOCATIONS] 200K/HR FLAXXING SCRIPT
toxicity959 replied to atoo's topic in Money Making
Grats on release! I'll have to give this a try -
F2P 28-35k/Hour, Green Pants/ bald requeriments + Source Code
toxicity959 replied to digdig18's topic in Money Making
It really just shears sheep. Take a look at the source if you want. It looks like he wrote an entire framework of classes to work with in future bot development, but the only task included in this release is a sheep shearer. -
How to constantly check if under attacked?
toxicity959 replied to The Legman's topic in Scripting Help
If you're using conditional sleeps, your bot will be unresponsive to attacking players. Add a condition in your conditional sleep to check if you're under attack to break out of the sleep, and have your "under attack" case be first in your code so it takes priority. new ConditionalSleep(45000){ public boolean condition() throws InterruptedException { return myPlayer().isUnderAttack() || (other conditions); } }.sleep(); -
One of the best fighters around. Used on multiple accounts to train melee + ranged, no bans!