Everything posted by Woody
-
Hovering entity's option
Me != you. Jokes. I understand you.
- Happy birthday
-
Hovering entity's option
Will do! Thank you! The difference?
-
Hovering entity's option
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?
-
Hovering entity's option
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.
-
drop items faster?
Why do people not use the search function? http://osbot.org/forum/topic/73948-is-it-possible-to-drop-inventory-or-items-really-fast/
-
Get the first option of a context menu?
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();
-
Interactions are to quick?
Never do this. What if it is lagging? This will just fuck things up. Do like the other guys said, a custom method.
-
Determine who is attacking myself/NPC?
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 } }
-
AIO Construction
I would pay $ 0.
-
Community Vote - New OSBot Skin
You should've taken my compliment, but dayum...
-
Community Vote - New OSBot Skin
Nice quad muscle Other than that, I vote yes.
- cooking script
-
Woody's Fighter - A simple fighter
Doing fine with mirror mode at ghouls.
-
Chelsea what the shit
True that. LVG looks very serious, and so was SAF. Some karisma would be better yea btw, are you a chelsea fan?
-
Chelsea what the shit
And you like Mourinho? Not so much difference. Well sometimes Mourinho can be more arrogant (not saying it's a bad thing ;))
-
Chelsea what the shit
I'll just put this here
-
Chelsea what the shit
ManUtd's footballstyle > chelsea's....
-
Chelsea what the shit
Man united > chelsea
-
Woody's Fighter - A simple fighter
Wondering if I should release this as a ghoul killer first; then perhaps expand it. Any thoughts? I have seen 1 or 2 ghoul killer script but I do not know how they are.
-
Woody's Fighter - A simple fighter
Currently I am developing a combat script. I got the basic done as: - Fighting monster (WOW!) - Right clicks on next opponent and hovers attack option while fighting - Eating a certain amount of food to prevent overhealing (for instance, got 2 hp till full but you eat a shark = not worth it) - Banking with failsafe - never failed me - Walking from/to bank/fight area (Semi Web walking, does not support interacting with doors/stair/ladders/gates etc) - Looting - Bury bones option - Custom antiban (need a lot of work to be done..) Running the script at ghouls Works pretty well on mirror client! Now I want to ask the community what you think should be added/(removed?) and how I can make this script more attractive for users. There is no ETA, I could infact release it right now but I feel there is more to be added and perhaps improved.
-
Interact() Method Not Working?
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;
-
Question about web walking
Hmm.. Sound difficult to get retrieve tiles at intersections, or perhaps I am wrong.
-
Question about web walking
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?
-
Question about web walking
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?