Succulent 18 Posted June 17, 2020 Is there a way to listen for menu interaction events? The event could include the action ("Use", "Eat", "Attack"), the target (name of the item, object, npc), and the targeted interactable (an Item, GameObject, GroundItem, Npc, etc.) and some other information such as mouse/canvas position and opcode. If there is no such listener/event it could be a nice addition to the API. I would prefer to rely on menu interaction events as confirmation of an interaction rather than the boolean return of various interact() methods. For example, If I wanted to perform a sequence of actions in quick succession, I could flag certain actions as being 'done' if the appropriate menu interaction event gets triggered, and the bot would know it's time to perform the next action in the sequence. Here is what I mean: Spoiler Note: There is a chance that the interact() methods' returns are based on menu events already. If that is the case then a listener this isn't that important since we can rely on the method returns!
Neffarion 486 Posted June 17, 2020 You have to make your own listener, there isn't one for what you want already available
Succulent 18 Author Posted June 17, 2020 1 minute ago, Neffarion said: You have to make your own listener, there isn't one for what you want already available Could you point me in the right direction for figuring that out?
Neffarion 486 Posted June 17, 2020 1 hour ago, Succulent said: Could you point me in the right direction for figuring that out? I could write a listener tutorial, shouldnt take long
Xtra 31 Posted June 17, 2020 10 minutes ago, Neffarion said: I could write a listener tutorial, shouldnt take long Would also be interested in this
Succulent 18 Author Posted June 17, 2020 13 minutes ago, Neffarion said: I could write a listener tutorial, shouldnt take long That would be greatly appreciated
Neffarion 486 Posted June 17, 2020 6 hours ago, Succulent said: That would be greatly appreciated 6 hours ago, Xtra said: Would also be interested in this
Succulent 18 Author Posted June 17, 2020 1 minute ago, Neffarion said: Beast, will give it a read now.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.