Jump to content

Pryzm

Trade With Caution
  • Posts

    129
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by Pryzm

  1. Just tried to write a simple chopper&banker in Draynor, the script is only chopping one tree and then won't do anything else. Could you help? import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.ui.RS2Widget; import org.osbot.rs07.script.MethodProvider; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import java.util.function.BooleanSupplier; @ScriptManifest(name = "Draynor Cutter&Banker", author = "Pryzm", info = "Chops and Banks in Draynor village", version = 1, logo = "") public final class DraynorCutter extends Script { private final Area eastTrees = new Area(3098, 3247, 3102, 3239); @Override public final int onLoop() throws InterruptedException { if (canChopTreeDown()) { chop(); } else { bank(); } return random(150, 200); } private void chop() { if (!eastTrees.contains(myPosition())) { getWalking().webWalk(eastTrees);{ Entity tree = getObjects().closest("Tree"); if (tree != null && tree.interact("Chop down")) { new Sleep(() -> myPlayer().isAnimating() || !tree.exists(), 5000).sleep(); } } } } private boolean canChopTreeDown() { if (!eastTrees.contains(myPosition())); return false; } private void bank() throws InterruptedException { if (!Banks.DRAYNOR.contains(myPosition())) { getWalking().webWalk(Banks.DRAYNOR); } else if (!getBank().isOpen()) { getBank().open(); } else if (!getInventory().isEmptyExcept("Logs")) { getBank().depositAll("Logs"); } else { stop(true); } } } class Sleep extends ConditionalSleep { private final BooleanSupplier condition; public Sleep(final BooleanSupplier condition, final int timeout) { super(timeout); this.condition = condition; } @Override public final boolean condition() throws InterruptedException { return condition.getAsBoolean(); } public static boolean sleepUntil(final BooleanSupplier condition, final int timeout) { return new Sleep(condition, timeout).sleep(); } }
  2. Pryzm

    Stealth Quester

    Noticing an error, doesn't seem to be able to use an item with another. For example using the ashes on the Fruit blast in the cook's quest to create a Dirty Blast, or using the coin on the Asgarnian Ale to produce a Asgoldian Ale. ERROR][Bot #1][03/01 03:16:06 PM]: Error in bot executor! java.lang.AbstractMethodError: client.getSelectedItemName()Ljava/lang/String; at org.osbot.rs07.api.Inventory.getSelectedItemName(ue:59) at org.osbot.rs07.event.InteractionEvent.execute(uk:395) at org.osbot.rs07.event.EventExecutor$2.run(yk:210) at org.osbot.rs07.event.EventExecutor.execute(yk:19) at org.osbot.rs07.api.util.ItemContainer.interact(fi:365) at org.osbot.rs07.api.util.ItemContainer.interact(fi:486) at api.cOm4.a(fi:806) at i.LpT3.a(sf:25) at api.aux.K(ao:153) at java.util.ArrayList.forEach(Unknown Source) at api.aux.a(ao:67) at api.com5.a(dl:197) at l.coN.K(gi:149) at api.prn.a(zh:103) at j.coN.onLoop(oj:170) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(hj:225) at java.lang.Thread.run(Unknown Source) [WARN][Bot #1][03/01 03:16:19 PM]: Event executor is taking too long to suspend; terminating now... [ERROR][Bot #1][03/01 03:16:19 PM]: Caught thread death in EventExecutor [ERROR][Bot #1][03/01 03:16:19 PM]: Caught thread death in EventExecutor
  3. Exodus was my favourite, I float between that, coinbase and the exchanges that I've bought from.
  4. Not quite, but if you chose to download and run the .exe/.jar you might have one.
  5. Can't use cannonballs on f2p accounts GL.
  6. Going to sweat this out over the weekend, thanks for the resources apa.
  7. Very nice account. A maxed 75 attack zerker can go for 300m+ if trusted. You could see upwards of 175m,
  8. Pryzm

    obby tank

    Nice account, 75m.
  9. I'm so keen to learn how to script, give me a few weeks and I hope to have my footing.
  10. I'll do the Mage arena 2 capes for 10m + 1m for every spell that needs unlocking + you supply resources.
  11. Pryzm

    RS3 ACC

    I had a quick look over on PlayerAuctions (I know, they're overpriced there), anyays. Looking at 65-85m.
  12. I'd give a valuation of around 40m, due to the fact you have no trust rating.
  13. He's talking in terms of wanting to bot a level 3 - main status.
  14. Just want to comment on both the rock and sand crabs scripts, bought them today and loving them.
  15. Can you stop it from hopping to bounty hunter worlds? Makes it a bit scary when killing greens.
  16. I'd give a valuation of around 120m, that's a little on the cheap side, but it could be used for a zulrah account.
  17. 550m due to how trusted @Fratem is.
  18. Pryzm

    PC Main Acc

    Great account! Somewhere around 200m would be expected!
  19. Usually go for around 5m.
  20. I'd give a valuation of 80m.
  21. Pryzm

    PC account

    I'd give a valuation of 20m.
×
×
  • Create New...