May 14, 20178 yr Just wanted help on how this method works? ClickMouseEvent(MouseDestination destination) What is the destination? Is it like x, y, z? How do I set the coordinates? Is there a better way to click in a certain spot? Thanks bois
May 14, 20178 yr org.osbot.rs07.input.mouse Class MouseDestination java.lang.Object org.osbot.rs07.input.mouse.MouseDestination Direct Known Subclasses: AreaDestination, BankSlotDestination, DepositBoxSlotDestination, EntityDestination, EquipmentSlotDestination, InventorySlotDestination, MainScreenTileDestination, MiniMapTileDestination, PointDestination, RectangleDestination, StoreSlotDestination, TradeOfferItemDestination, WidgetDestination
May 14, 20178 yr Like Chris posted^^ Look through the API docs....find MouseDestination class...check how to implement or the direct subclasses and those will tell you.
May 14, 20178 yr Author 29 minutes ago, Chris said: org.osbot.rs07.input.mouse Class MouseDestination java.lang.Object org.osbot.rs07.input.mouse.MouseDestination Direct Known Subclasses: AreaDestination, BankSlotDestination, DepositBoxSlotDestination, EntityDestination, EquipmentSlotDestination, InventorySlotDestination, MainScreenTileDestination, MiniMapTileDestination, PointDestination, RectangleDestination, StoreSlotDestination, TradeOfferItemDestination, WidgetDestination Okay but what if I want to click on a certain spot on my screen, for example, a cake stand?
May 14, 20178 yr Class EntityDestination java.lang.Object org.osbot.rs07.input.mouse.MouseDestination org.osbot.rs07.input.mouse.EntityDestination public class EntityDestination extends MouseDestination Represents a mouse destination for entities. https://osbot.org/api/
May 14, 20178 yr 1 hour ago, phony said: Okay but what if I want to click on a certain spot on my screen, for example, a cake stand? A cake stand is an object. You can directly interact with objects so you don't have to do anything with mouse destinations or click mouse event. Read through this thread:
May 14, 20178 yr Just try to avoid making your own interaction events. Don't reinvent the wheel To interact with a cake stand... Objects api It's the same sorta stuff if you want to access items/npcs/entity Edited May 14, 20178 yr by Zappster
May 14, 20178 yr Author 1 hour ago, Zappster said: Just try to avoid making your own interaction events. Don't reinvent the wheel To interact with a cake stand... Objects api -> objects.closest("cake stand").interact("steal"); (you'll need to null check your cake stand tho ;)) It's the same sorta stuff if you want to access items/npcs/entity Won't that: right click -> steal, I feel like its way more U/D if you just click, as thats what I do when I am training theaving legit
May 14, 20178 yr 38 minutes ago, phony said: Won't that: right click -> steal, I feel like its way more U/D if you just click, as thats what I do when I am training theaving legit I'm not 100% sure since it's been a while that I had to do anything with interacting outside of inventory, but I think it will left click if the wanted interaction is first. Edited May 14, 20178 yr by Zappster
May 14, 20178 yr 8 hours ago, phony said: Won't that: right click -> steal, I feel like its way more U/D if you just click, as thats what I do when I am training theaving legit Nope, if the steal option is the option seen when you hover the object it'll left click it. Honestly the best way to learn these kinds of things is to test them out yourself and see what it does first hand.
May 18, 20178 yr On 5/14/2017 at 6:24 PM, d0zza said: Nope, if the steal option is the option seen when you hover the object it'll left click it. Honestly the best way to learn these kinds of things is to test them out yourself and see what it does first hand. Not if it selects a click point with another player object behind it ... a player would simply cancel out and pick a better left click spot
May 18, 20178 yr 2 hours ago, dmmslaver said: Not if it selects a click point with another player object behind it ... a player would simply cancel out and pick a better left click spot Well yes but he didn't specify anything like that in his original post?
Create an account or sign in to comment