Jump to content

Polymorphism

Members
  • Posts

    368
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Polymorphism

  1. bought 1 from him, i specified the name. the account was in my possession within 25 minutes.
  2. Polymorphism

    OnExit

    Bot#closeSelf() https://osbot.org/api/org/osbot/rs07/Bot.html#closeSelf-- Never used it, but the name is self explanatory. It might do cleanup things that System exit won't. Also, it may not actually close the entire client since: Client > Bot > Script
  3. Whats up with this? At first the script wanted to keep trying to serve tea from my demon butler, it couldn't so i built the kitchen. Now it keeps going in and out of the portal. "Interacting with portal" and that's all it does. EDIT: Now it's just getting tea.. EDIT 2: Have to do a load manually for it to do anything. But it sat for over an hour trying to get clays and make tabs without any runes left.. Injection mode Eagle lectern, demon butler, making varrock tabs
  4. I'm gonna pm you as not to keep this going on the thread.
  5. You could do something like String[] ITEMS = .... for(String item : ITEMS) if(!inventory.contains(item)) return false return true;
  6. I got a couple of accs to spare, i'll see what i can find out. In what way does your script end the quest?
  7. Hey bud, any luck on finding out why the script isn't recognizing goblin diplomacy as finished? It's not allowing me to do RFD:Goblin because of it. If you'd like to add me on skype so we can work on this together, that'd be cool. skype: polycoding
  8. Add my skype and i'll help 1 on 1 skype: polycoding
  9. Java passes into methods by value, not by reference -- although objects are manipulated by reference. In order for your example to work, you would need to have the class you're working in as an instance. AddByOne add = new AddByOne(5); add.addOne(); //outputs 5 That would work because in the constructor you would set a private int that is accessible only to the instance and manipulate it from inside the object. However you can also add getter/setter to change or grab the variable externally. Here is a good link to read on http://www.javaworld.com/article/2077424/learn-java/does-java-pass-by-reference-or-pass-by-value.html EDIT: Hadn't noticed other people replied, sorry
  10. Ah i see. Correct me if im wrong, but i believe it used to be set on login ?
  11. To determine interactions between 2 or players or did they change it to the way RS3 does it and it's "random" edit: googled and couldn't find anything for osrs
  12. I thought as much, just needed reassurance. Thank you sir<3
  13. Yay or nay, that's all i need to know.
  14. https://osbot.org/api/org/osbot/rs07/script/Script.html#getDirectoryData-- Script#getDirectoryData() Download txt file with accs from server, save to that location, use script(s) to determine which accs to bot by pulling the info from that file. I also found Bot#switchAccount at https://osbot.org/api/org/osbot/rs07/Bot.html#switchAccount-java.lang.String-java.lang.String-int- Not sure if we can use it, but i believe it'll make the client log in to that account next, if it logs out. So it may be worth a try for stuff like mass tut island botting. Move from one acc to the next, etc.
  15. RS2Object furnace = s.objects.closest("Furnace"); if (furnace != null && furnace.exists()) { if (s.inventory.getItem("Gold bar").interact("Use")) { if (furnace.interact("Use")) { new ConditionalSleep(5500, 500) { @Override public boolean condition() throws InterruptedException { return s.widgets .getWidgetContainingText("would you like to make") != null; } }.sleep(); } RS2Widget goldAmmy = s.widgets.get(446, 34); if (goldAmmy != null && goldAmmy.isVisible()) { goldAmmy.interact("Make-X"); Script.sleep(Script.random(1000, 2000)); if (isAmountPromptVisible()) { if (s.getKeyboard().typeString("" + Script.random(27, 99), true)) { new ConditionalSleep(60000, 1000) { @Override public boolean condition() throws InterruptedException { return !s.inventory.contains("Gold bar") || mustContinue(); } }.sleep(); } } } } }
  16. nvm decided i don't wanna take another project on
  17. https://osbot.org/api/org/osbot/rs07/api/map/Area.html#getRandomPosition--
  18. Area area = new Area(1,2,3); walking.webWalk(area.getRandomPosition());
×
×
  • Create New...