Jump to content

Woody

Members
  • Posts

    715
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Woody

  1. Me != you. Jokes. I understand you.
  2. Will do! Thank you! The difference?
  3. Yes of course. I am using it in my ardy rooftop script to hover next object while performing an animation for faster interaction. What are the pros with using MouseEvent?
  4. Using this for Woody's Fighter to attack next monster faster. /** * @author Woody * @param entity - The entity which has the chosen option * @param option - The option you want to hover * @return true if hovering over entity option * @throws InterruptedException */ private boolean hoverEntityOption(Entity entity, String option) throws InterruptedException { if(entity != null && menu.isOpen()) { List<Option> options = menu.getMenu(); Rectangle optionRec = null; int index = 0; if(options != null) { for(; index < options.size(); index++) { if(options.get(index).action.equals(option)) { optionRec = menu.getOptionRectangle(index); break; } } } else { return false; } if(optionRec != null) { if(!optionRec.contains(mouse.getPosition())) { int x = menu.getX() + Script.random(10, 160); int y = menu.getY() + 23 + index * 15; Script.sleep(Script.random(200, 400)); return mouse.move(x, y); } } else { return false; } } else if(entity != null && !menu.isOpen()) { EntityDestination ed = new EntityDestination(bot, entity); mouse.click(ed, true); } return false; } How to use: if(myPlayer().getInteracting() != null) { NPC goblin = npcs.closest("Goblin"); if(goblin != null && goblin.isVisible()) { if(hoverEntityOption(goblin, "Attack")) { //the mouse is now hovering attack option and is ready to attack next goblin, when the //fight is over } } } else { if(menu.isOpen()) { if(mouse.click(false)) { for(int i = 0; i < 100 && !myPlayer().isUnderAttack(); i++) { sleep(20, 40); } } } else { if(goblin != null && goblin.isVisible()) { if(goblin.interact("Attack ")) { for(int i = 0; i < 100 && !myPlayer().isUnderAttack(); i++) { sleep(20, 40); } } } else if(goblin != null && !goblin.isVisible()) { camera.toEntity(goblin); } else { log("Goblin gone?!"); } } } Any suggestions/ideas/complains are appreciated.
  5. Why do people not use the search function? http://osbot.org/forum/topic/73948-is-it-possible-to-drop-inventory-or-items-really-fast/
  6. Try using widgets. Otherwise you could open menu and use menu.getMenu(). You'll get all menu options stored in a list. Thereafter you could loop through the list and find the menu action you are looking for. EDIT: You could also use EntityDefinition RS2Object stall = objects.closest("Silk stall"); String[] actions = stall.getDefinition().getActions();
  7. Never do this. What if it is lagging? This will just fuck things up. Do like the other guys said, a custom method.
  8. NPC monster = npcs.closest(monsterID); if(monster != null) { if(monster.isInteracting(myPlayer()) { //monster is interacting with my player } } OR NPC monster = npcs.closest(monsterID); if(monster != null) { if(myPlayer().isInteracting(monster)) { // my player is interacting with monster } }
  9. You should've taken my compliment, but dayum...
  10. Nice quad muscle Other than that, I vote yes.
  11. Woody

    cooking script

    Check my signature
  12. True that. LVG looks very serious, and so was SAF. Some karisma would be better yea btw, are you a chelsea fan?
  13. And you like Mourinho? Not so much difference. Well sometimes Mourinho can be more arrogant (not saying it's a bad thing ;))
  14. I'll just put this here
  15. ManUtd's footballstyle > chelsea's....
  16. try this: EntityDestination ED = new EntityDestination(bot, wheat); mouse.click(ED); Put it here: case PICKWHEAT: RS2Object wheat = objects.closest("Wheat"); // PUT IT HERE break;
  17. Hmm.. Sound difficult to get retrieve tiles at intersections, or perhaps I am wrong.
  18. How do you retrieve all walkable tiles? Do you have to manually walk around and use something like getRegion() to load the tiles? Are you then supposed to save the tiles/nodes in a file?
  19. Rigth now I am reading about A* algorithm to learn how it works. I know that most people who have wrote a web walker has used A*. My question to those people is: how did you first begin creating your very own web walker? Did you do some exercises to practice on A* algorithm or did you learn the function and headed straigth to make a web walker script? I am really interested in making a web walker, it does not have to be very complex, that can handle easy objects such as doors etc, but I have no idea how to begin. Any tips/ideas?
×
×
  • Create New...