Jump to content

Camaro

Scripter II
  • Posts

    687
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by Camaro

  1. Wouldnt it be easier for a 'Packet' to only contain one String which senders and receivers can parse accordingly? That way, the protocal can know even less about the data being sent and theres no need to define multiple 'Packets'
  2. You could also fix that by calling MP.exchangeContext(getBot()) in onStart()
  3. Seems to work fine for me. Print userChoice to the logger at the end of onStart and see if you see the result.
  4. Very strange that both of them would log out. Can you post what is in the logger?
  5. Camaro

    Proxy

    Scripts have the ability to change the top bar to whatever they want
  6. private final BotMouseListener listener = new BotMouseListener() { @Override public void checkMouseEvent(MouseEvent mouseEvent) { //do stuff } }; @Override public void onStart() { getBot().addMouseListener(listener); } @Override public void onExit() { getBot().removeMouseListener(listener); }
  7. Set artifact build output directory to osbot\scripts folder, set artifact to build on project build, map ctrl+s to be a build project hotkey, boom 1 second rebuilds. But either way, interesting stuff, good job.
  8. I dont see why not, are you having issues?
  9. you're supposed to PM the scripters in the private script section, not make your own post. Try again, maybe you'll have better odds.
  10. Click that button until it looks just like that.
  11. new ConditionalSleep(MethodProvider.random(10000, 10000)) { @Override public boolean condition() throws InterruptedException { return CurrentWorld == HoptoWorldfinal; } }.sleep(); that will never work since you never update the values. do this instead new ConditionalSleep(MethodProvider.random(10000, 10000)) { @Override public boolean condition() throws InterruptedException { return script.getWorlds().getCurrentWorld() == HoptoWorldfinal; } }.sleep();
  12. You have to enable human input on the actual osbot client. Then you can draw an area on the screen
  13. Not sure exactly how that works, but this might Player p = getPlayers().singleFilter(p -> p != null && p.getName().replace(" ", "").equals("namewithoutspaces"))
  14. Why do you need to take the spaces out in the first place?
  15. Just realized what youre trying to do Player Name = getPlayers().closest("Example Name"); Name = Name.replace(' ', '_'); Name is a Player instance. Youre trying to call a String function Player player = getPlayers().closest("Example Name"); String name = player.getName().replace(' ', '_'); also forget what I said above, single quotes work fine
  16. need double quotes Name.replace(" ", "_");
  17. fix is submitted, will be ready by tomorrow
  18. Ive used this at hill giants, moss giants, lesser demons, and tzhaar successfully. @omgpros @Lol_marcus I know you two have used this a ton, which locations seemed to work the best?
  19. Last thing, you should only sleep if the interact was successful if (FISH.interact("Bait")) { new ConditionalSleep(Script.random(10000, 15000)) { public boolean condition() throws InterruptedException { return !myPlayer().isAnimating(); } }.sleep(); }
  20. new ConditionalSleep(Script.random(10000, 15000)) { public boolean condition() throws InterruptedException { return !myPlayer().isAnimating(); <-- take the exclamation point away } }.sleep(); And you should be good!
  21. Fishing spots are actually NPCs, try that instead and see if its fixed
  22. What I put is perfectly fine for someone who is beginning to learn how to do different tasks in the same script. Its the 'state' style. Whats so bad about it for a beginner?
  23. Interesting, it should walk/run towards them if they arent visible. Maybe its the area you are defining? That area tells the script where to look for safespots AND monsters, so if thy arent in the area it wont attack them. Maybe try without it for now. And make sure the npcs are spelled exactly in the gui, may also be an issue.
  24. I havent tried it at that location myself, but I dont see why it wouldnt work there. Is it having trouble attacking or finding safespots?
×
×
  • Create New...