Jump to content

Reminiscence

Lifetime Sponsor
  • Posts

    128
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Reminiscence

  1. Wow, this is incredible, thank you. I showed this post to everyone in my village and now we've all become successful entrepreneurs, doctors and scientists. God bless you.
  2. better to not have any, than to have neutral
  3. at least you don't have neutral feedback
  4. nobody would suspect a lifetime sponsor out of the blue with no recent activity
  5. I've honestly never seen such a simple script spread out so much, but at least you're getting the fundamentals down and the more difficult scripts should be easier to maintain.
  6. 3. you're constantly calling for the script to walk and not checking if it should walk 1. the built-in isAnimating is not ideal for this kind of scenario, use - public boolean isAnimating() throws InterruptedException{ for(int i = 0; i < 5; i++){ if(myPlayer().isAnimating() || players.myPlayer().isMoving()) return true; else sleep(100); } return false; } 2. change your sleep myPlayer().isAnimating to just isAnimating as posted above also, isn't the interaction to catch shrimp "Net"?
  7. your timer seems a bit silly because eating takes 3 ticks. you're more than welcome to do random (1800, 2400), but random doesn't really matter much anyways here's two ways you can go about it, but it's virtually the exact same code just done differently. untested, but it should work you're also better off checking if your player is in an Area instead of checking if the bank booth is null. or you can use map.distance and a null check as for everyone else, it is infact "Shrimps" in-game. it doesn't take much effort to check it out on the wikia for the correct name, instead of telling op he got it wrong Position VarrockWestBank = new Position(3184, 3436, 0); int health; boolean invHas(String item) { return inventory.contains(item); } boolean eat(String name) { return inventory.interact("Eat", name); } boolean objExists(String obj) { return objects.closest(obj) != null; } String booth = "Bank booth", food = "Shrimps"; public int onLoop() throws InterruptedException { health = myPlayer().getHealthPercent(); if (health <= 35 && invHas(food)) { eat(food); sleep(1800); } else if (health <= 50 && !invHas(food) && !objExists(booth)) { walking.webWalk(VarrockWestBank); } return 200; } Position VarrockWestBank = new Position(3184, 3436, 0); public int onLoop() throws InterruptedException { if (myPlayer().getHealthPercent() <= 35 && inventory.contains("Shrimps")) { inventory.interact("Eat", "Shrimps"); sleep(1800); } else if (myPlayer().getHealthPercent() <= 50 && !inventory.contains("Shrimps") && objects.closest("Bank booth") == null) { walking.webWalk(VarrockWestBank); } return 200; } edit: you can also choose to not declare certain positions like I did, and you can simple do - walking.webWalk(Banks.VARROCK_WEST);
  8. public void timer(boolean why) { new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { return why; } }.sleep(); } if (skills.getDynamic(Skill.PRAYER) <= randomPrayerNum && inventory.contains(new ContainsNameFilter<>("Prayer"))) { inventory.getItem(new ContainsNameFilter<>("Prayer")).interact(); timer(skills.getDynamic(Skill.PRAYER) > randomPrayerNum); randomPrayerNum = random(10, 35); } First part is it's own method, second part can be either added to your loop, or it's own method. Also, if you're doing nameContains, you don't need to specify the entire name. Just "Prayer pot" would work.
  9. I meant desktop resolution, mine is 3840x2160. I never had this issue on my 1080p monitors. I wonder if Java just hates high resolutions and starts to break. Edit: This resolved it for me: Adding this as a runtime parameter: -Dsun.java2d.noddraw=true
  10. Same thing happened to me. I've uninstalled/restarted/re-installed. Nothing seems to help. What's your resolution?
  11. The only thing that even comes to mind on this with just two words is:
  12. I've noticed that my pc has issues with Java, and not specifically OSBot only. I've noticed it with OSBuddy too. What causes this? Same with with all the Java apps I run. I've re-installed Java, restarted my pc and disabled scaling. Nothing really seems to change.
  13. Probably should avoid that. Diversify your botting.
  14. Have you just botted one task the entire time?
  15. Nope, been botting my main and alt the past week. Nothing yet.
  16. Weirdly enough, the same thing happened to me when I shift+F5'd to hide the osbot green text overlay, twice in a row.
  17. Your posts are entirely useless. Anyways, this has been resolved. Reduced mirror mode to 300ms response and it stopped happening.
  18. inventory.interact(action, item, item) isn't a method... what's the problem with the string and int? post the exact code
×
×
  • Create New...