phony Posted May 14, 2017 Share Posted May 14, 2017 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 Quote Link to comment Share on other sites More sharing options...
Chris Posted May 14, 2017 Share Posted May 14, 2017 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 2 Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted May 14, 2017 Share Posted May 14, 2017 Like Chris posted^^ Look through the API docs....find MouseDestination class...check how to implement or the direct subclasses and those will tell you. Quote Link to comment Share on other sites More sharing options...
phony Posted May 14, 2017 Author Share Posted May 14, 2017 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? Quote Link to comment Share on other sites More sharing options...
Chris Posted May 14, 2017 Share Posted May 14, 2017 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/ Quote Link to comment Share on other sites More sharing options...
d0zza Posted May 14, 2017 Share Posted May 14, 2017 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: Quote Link to comment Share on other sites More sharing options...
Zappster Posted May 14, 2017 Share Posted May 14, 2017 (edited) 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, 2017 by Zappster Quote Link to comment Share on other sites More sharing options...
phony Posted May 14, 2017 Author Share Posted May 14, 2017 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 Quote Link to comment Share on other sites More sharing options...
Alek Posted May 14, 2017 Share Posted May 14, 2017 If you want to use a point on your screen, it would be a PointDestination. Quote Link to comment Share on other sites More sharing options...
Zappster Posted May 14, 2017 Share Posted May 14, 2017 (edited) 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, 2017 by Zappster Quote Link to comment Share on other sites More sharing options...
d0zza Posted May 14, 2017 Share Posted May 14, 2017 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. 1 Quote Link to comment Share on other sites More sharing options...
dmmslaver Posted May 18, 2017 Share Posted May 18, 2017 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 Quote Link to comment Share on other sites More sharing options...
d0zza Posted May 18, 2017 Share Posted May 18, 2017 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? Quote Link to comment Share on other sites More sharing options...