Jump to content

harrypotter

Trade With Caution
  • Posts

    397
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by harrypotter

  1. I've not skated for a good 4-5 years now however I used to be right into it. I used to get all my stuff from https://www.routeone.co.uk/. You can easily build yourself something half decent there for you budget!
  2. What's the point in this?
  3. Indefinitely until I pause then resume
  4. Added you What's your price?
  5. Looking for someone to get bgloves from scratch on a level 3 account, quest line should be efficient for a zerker. Prices only please.
  6. Not really, the most important thing here is that my inventory does contain the berries, yet this snippet executes. Surrounding code is irrelevant.
  7. My inv isn't full though, the steps before this point ensures that. Regardless this wouldn't fix the issue.
  8. No because it shouldn't be passing the very first if statement after the first loop. The bot will pick the berries, however on the next loop the first if statement continues to return false
  9. This seems to fail on Low CPU mode. It will continue to pick the bush even when the inventory contains Cadava berries. if (!script.inventory.contains("Cadava berries")) { if (!bushArea.contains(script.myPosition())) { script.getWalking().webWalk(bushArea); } else { Entity bush = script.getObjects().closest("Cadava bush"); if (bush != null) { if (bush.interact("Pick-from")) { Sleep.sleepUntil(() -> script.inventory.contains("Cadava berries"), 5000); } } } } If I pause the script and resume again it works as expected?
  10. I used to work at a print company as a designer, I can do this for you using InDesign. Sounds like an easy task so can do it for free
  11. I need the following: 1-35 Rune Crafting 31-53 Thieving 38-61 Crafting 23-60 Mining 33-48 Smithing 20-50 Fire Making 38-55 Woodcutting Prices only please, no skype links.
  12. This is 100% caused by the way the code is executed. You need to structure it in a way that if it does fail it will simply try again on the next loop. Here is an example of one of my banking methods: if (!script.inventory.contains("Coins")) { if (!Banks.LUMBRIDGE_UPPER.contains(script.myPosition())) { script.getWalking().webWalk(Banks.LUMBRIDGE_UPPER); } else { if (!script.getBank().isOpen()) { if (script.getBank().open()) { Sleep.sleepUntil(() -> script.getBank().isOpen(), Script.random(5000, 10000)); } } else { if (script.getBank().contains("Coins")) { if (script.getBank().withdrawAll("Coins")) { Sleep.sleepUntil(() -> script.inventory.contains("Coins"), Script.random(5000, 10000)); } } else { script.stop(false); } } } }
  13. Make hans static (However I'm sure that's a bad idea unless they're final) or in your main class have a method that's responsible for updating the value? I.e: public class Main { public boolean hans = false; public void setHansValue(boolean val) { this.hans = val; } public int onLoop() { Processing p = new Processing(); p.exchangeContext(getBot(); log("Hans is" + hans); p.Loop(); return 500; } } public class Processing { public void Loop() { m.exchangeContext(getBot()); log("Switching hans to true)" Main.setHansValue(true); } }
  14. Try something like this: public void openBank() throws InterruptedException { if (!getBank.isOpen()) { if (getBank.open()) { Timing.waitCondition(() -> getBank.isOpen(), 6000); } } else { // Bank is open } } I've never had problems with handling banks in this way.
  15. Would I have to separate a path that has two separate stairs into separate paths? for example would this work: if at first stairs handle stairs walk to second stair area else if at second stairs handle second stairs else walk path
  16. Can somebody show me an example of walking a path - without using web walking - that handles doors or stairs? I can't really find any good examples or tuts on how these are handled for paths containing multiple objects. An example path would be from lummy cow pen to top floor bank in lummy. Thank you all in advanced!
  17. I suggest reading @Explv's Scripting 101 Tut: All this plus a lot more useful info can be found there.
  18. I know the API has: inventory.contains(); However this will return true as long as 1 item from the selected exists. I want to confirm that the inventory contains all of the items however. What's the best way to do this rather than a statement for each item? Thanks for your help!
  19. there's nothing more annoying than a faggot on a scooter.
  20. Unfortunately not, still stuck trying to right click a set of stairs that are hidden because of the popup
  21. How do I detect and close the quest completed popup dialog? I've tried closing via the "X" widget as well as continuing the dialog via the API but can't seem to find the correct solution. Can anyone please point me in the correct direction?
  22. Of course not, but I have to use those as there's no way for me to know what they will actually sell for
×
×
  • Create New...