Jump to content

Novak

Members
  • Posts

    1583
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    100%

Everything posted by Novak

  1. in the OP i state i am using a for loop that sleeps until inventory.contains is no longer true, so it wont exit that loop until it is false OR it times out at 5 seconds
  2. no. im saying the inventory.contains does not update its value(true/false) for a long time after it is actually true/false. example: i deposit item A into the bank from my inventory. when the item disappears, inventory.contains should be false. instead, it is still true for another couple seconds, slowing down the script
  3. sure, but you are arguing over a minimal cpu hit which is not what i am asking. I am asking why .contains is getting updated so late after the inventory has changed. calling it over should not affect what the output of the call is and also: yours says if inventory contains item: sleep for 5 seconds, because there is no condition for the for statement except that i is less than 100.
  4. no, but is it really faster than the manual mouse moving I wrote using mouse.move? and does it check to make sure the items have come/left the inventory within 50ms? please explain how it calls it 100 times? the 100 is just for the timeout, if i is less than 100 AND our inventory still contains the item, then sleep for 50. Obviously if the item has left the inventory then the for statement no longer executes because the second condition isn't true.
  5. still literally the same thing as OP, it will still be slow cause its using the same .contains method, and the inventory will not be empty after depositing
  6. but thats not the point, my point is why does it take so long for it to update, this method worked perfect for osb1, it would respond as intended.
  7. that is literally the same thing as my OP, just with an unneeded if statement
  8. thats bad though. Its a static sleep and it doesn't check the the item has actually left the inventory. there is nothing wrong with the logic, it has to do with how .contains is updating, which is my question In response to your edit: that means it will keep trying to deposit it every 50ms, which it takes longer for the item to leave the inventory than that. So in that case it would keep spamming items to deposit until it leaves, which probably takes about a second. 1000/50 is 20, which means that it would spam the deposit 20 or so times until it left, which is very bot like.
  9. i want it to continue after the uncuts have left the inventory. So it should sleep for 50ms intervals until the uncuts have left the inventory. Instead, it is taking seconds to update which is causing it to sleep for more 50ms intervals. The 100 is there so that if it exceeds 100 50ms intervals, it will time out and go back into the loop
  10. For some reason it seems really slow to me: depositAll(uncut); for(int i = 0; i < 100 && inventory.contains(uncut); i++) { sleep(50); } is waiting a couple seconds to continue when it should respond within 50ms. Any ideas?
  11. The Palmer Squares.

  12. Novak

    @Alek.

    but what if he isn't.
  13. Novak

    @Alek.

    what was the lie, i want to hear it
  14. I'm literally rofl'ing
  15. I sorted out my issues IRL, and I am back! ILU
  16. obviously a scripter error
  17. Novak

    OSBot 2.1.10

    mouse is still iffy, misses the location of items ALOT
  18. gtx 660 or 760, i5, 8 gig ram, any mobo that fits your budget, probably a 700w psu
  19. I'm sure our best scholar can help you with your java. He is known to be a wizard with the codenz. I heard he wrote all the AT scripts too, thats how good he is.
×
×
  • Create New...