Jump to content

Vilius

Scripter II
  • Posts

    1495
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by Vilius

  1. Just random spotify playlists. Whatever floats my boat that day.
  2. Oh its that guy lmao. 1second is 1000ms which you are using right now
  3. has one http://osbot.org/forum/topic/98174-selling-level-3s-with-halo-decorative-ranged-top/ Its a fresh account, has no stats on it though.
  4. Vilius

    I did it!

    SoonTM, rendering the video rn
  5. Depends on you, if you want to learn it you will, if not then no bueno
  6. DN#2 7, 10, 12, 22, 24, 44 3, 14, 16, 33, 37, 42
  7. Vilius

    Help me?

    Atleast spell my name correctly you pillock
  8. Vilius

    Help me?

    Man, Im sorry for you. I cant really speak anything about relationships because I never was in one. But just dont start doing anything irrational. I see you are starting to put yourself down like its your fault, but it isnt.
  9. Check line 100 in your code somewhere is a null pointer exception, but it might be something with the api, Im not really sure.
  10. Yes somethink like that, if that doesnt work use a null check on the store.Because when you did .getAmount() it tried accessing a nulled objects info. To avoid that you would do: Store exampleStore = getStore(); if(exampleStore != null && exampleStore.isOpen()){ if(exampleStore.getAmount("item") > 200){ //Buy } } That should do the buying
  11. Your logic is a bit off, you should only trade the npc when store window is closed and buy when its opened, you are getting that npe because it thinks thw store is open and tries buying stuff. The error is at .getAmount() Will EDIT more info in a few gota catch a bus.
  12. You have to remove the comments start too! /* and */ plus what is in between them for it to not make it green. And it seems like you didn't post the full code if you have /* that loose somewhere in your code.
  13. Found it, he didn't have break; the cases fall on each other Cookie pls?
  14. I did find it actually, wanted to edit my post and saw that you have posted it. No need to flame me like always
  15. @Override public int onLoop() throws InterruptedException { switch (getState()) { case BUY: getWalking().walk(new Position(3274, 3180, 0)); npcs.closest("Karim").interact("Talk-to"); if (dialogues.isPendingContinuation()) { dialogues.clickContinue(); } else if (dialogues.isPendingOption()) { dialogues.selectOption("Yes please."); } case BANK: getWalking().walk(new Position(3270, 3168, 0)); if (!getBank().isOpen()){ getBank().open(); } else { bank.depositAll("Kebab"); getBank().close();} case WAIT: return random(100,400); //The amount of time in milliseconds before the loop starts over } //@Override //public void onExit() { log("Thanks for using my script!"); //Code here will execute after the script ends //@Override //public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) return random(200,300); } } There is yar problem, you have your paint and on exit in the loop :b Fixed version: @Override public int onLoop() throws InterruptedException { switch (getState()) { case BUY: getWalking().walk(new Position(3274, 3180, 0)); npcs.closest("Karim").interact("Talk-to"); if (dialogues.isPendingContinuation()) { dialogues.clickContinue(); } else if (dialogues.isPendingOption()) { dialogues.selectOption("Yes please."); } break; case BANK: getWalking().walk(new Position(3270, 3168, 0)); if (!getBank().isOpen()){ getBank().open(); } else { bank.depositAll("Kebab"); getBank().close(); } break; case WAIT: return random(100,400); //The amount of time in milliseconds before the loop starts over break; } return random(200,300); } //@Override //public void onExit() { log("Thanks for using my script!"); //Code here will execute after the script ends //} //@Override //public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) //} } And do what woody said :b
  16. I think it might be launching osbot using java 7 check if you dont have it, cause you need java 8 for osbot :P GPU doesn't really matter to rs, because it runs from the CPU instead. Oh, and make sure that its the newest osbot version too.
×
×
  • Create New...