Succulent 18 Share 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! Link to comment Share on other sites More sharing options...
Neffarion 486 Share Posted June 17, 2020 You have to make your own listener, there isn't one for what you want already available Link to comment Share on other sites More sharing options...
Succulent 18 Author Share 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? Link to comment Share on other sites More sharing options...
Neffarion 486 Share 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 Link to comment Share on other sites More sharing options...
Xtra 31 Share Posted June 17, 2020 10 minutes ago, Neffarion said: I could write a listener tutorial, shouldnt take long Would also be interested in this Link to comment Share on other sites More sharing options...
Succulent 18 Author Share Posted June 17, 2020 13 minutes ago, Neffarion said: I could write a listener tutorial, shouldnt take long That would be greatly appreciated Link to comment Share on other sites More sharing options...
Neffarion 486 Share 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 Link to comment Share on other sites More sharing options...
Succulent 18 Author Share Posted June 17, 2020 1 minute ago, Neffarion said: Beast, will give it a read now. Link to comment Share on other sites More sharing options...
TheCloakdOne 389 Share Posted June 18, 2020 8 hours ago, Neffarion said: Legend! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.