Jump to content

Joseph

Trade With Caution
  • Posts

    4692
  • Joined

  • Last visited

  • Feedback

    91.3%

Everything posted by Joseph

  1. why an enum, why not an array of worlds.
  2. I suggest using a map if you feel like using caching
  3. I always wanted to make a game. I'll come back and check it later. Hopefully I can follow your steps and make my own.
  4. Is use mirror to bot but when it comes to scripting I use standard.
  5. i lost internet connection before the bot crashed lol. if this i not a bug. feel free to close the thread. ty for reply.
  6. i found this within the OSBot folder. It was not there until after i was using mirror client mode and my script crashed. The bot closed on its own and i found this.
  7. for those that get error with the timer: change a few thing to this /** * A timer that records the time elapsed since world detection. */ private long timer; @Override public void onStart() throws InterruptedException { super.onStart(); // Create a new timer instance. this.timer = System.currentTimeMillis(); // Set the time to wait before hopping is allowed (30 seconds - 20 minutes). seconds = MethodProvider.random.nextInt(1200000) + 30; } @SuppressWarnings("unchecked") @Override public int onLoop() throws InterruptedException { if (!inBotWorld()) stop(); if (getTimerElapsedSeconds() > seconds) getWorlds().hop(filter); return 1000; } add on: public int getTimerElapsedSeconds() { return (int) (System.currentTimeMillis() - this.timer / 1000); }
  8. How do you know that's not a void method
  9. which is why i put my script on hold for the same reason but im working on core while i wait. edit: nice to see ill have competition
  10. nice thank you for this . Not too sure about that 30 min timer delay lol
  11. thats the logic i would use for that. so yes lol :P
  12. this is the basic, to help you out a little public void handleThis() { if (widget is visible) { //handle widget }else{ if (!getInventory().isItemSelected()) { getInventory().getItem("name").interact("action"); sleep(gRandom(400, 100)); }else{ NPC npc = getNpcs().closest("name"); if (npc != null) { if (npc.isVisible()) { npc.interact(); //no arugment should force left click }else{ //handle visiblity } } } } }
  13. WTF did I just watch lol
  14. The link look for vet http://osbot.org/forum/topic/50019-understanding-the-forum-ranks/
  15. no look create a filter. RS2Object already extend FilterAPI so all you have to do is. getObjects()#filter(YOUR_FILTER) <~~~ it returns a list of the enitty. Then you do a simple size() method to get the amount of entity the list has. use a filter for that. Op: what he did^^^
  16. use the filter api, It returns a list. Using the list size to get amount of entity in area.
  17. you create the list and do a simple list#isEmpty() boolean check. empty == what you want
  18. Joseph

    scroll wheel

    this still doesnt work and it sucks when i try to use the bank.
×
×
  • Create New...