Developer Zach Posted October 17, 2015 Author Developer Share Posted October 17, 2015 Released .127 with fixes for when the mouse would hover over the NPC for a little bit before clicking it. Link to comment
Woody Posted October 17, 2015 Share Posted October 17, 2015 (edited) V .123 is so much better than .127. When the script want to attack a npc, the mouse move a few pixels towards the entity and then stops, then move again and stops, repeatedly. This is what I use: InteractionEvent ie = new InteractionEvent(entity, "Attack"); ie.setHover(true); execute(ie); Another issue with grabbing ground items; it right clicks on the ground item but doesn't interact. GroundItem gi = getGroundItems().closest("blah"); if gi != null gi.interact("Take") Edited October 17, 2015 by Woody Link to comment
Joseph Posted October 17, 2015 Share Posted October 17, 2015 (edited) nice, and a configs browser too? This is what I want V .123 is so much better than .127. When the script want to attack a npc, the mouse move a few pixels towards the entity and then stops, then move again and stops, repeatedly. This is what I use: InteractionEvent ie = new InteractionEvent(entity, "Attack");ie.setHover(true);execute(ie);Another issue with grabbing ground items; it right clicks on the ground item but doesn't interact. GroundItem gi = getGroundItems().closest("blah");if gi != nullgi.interact("Take") Noob set hover makes the interaction event hover over the entity without actually interacting with it. If your not sure, log the result of interaction event it will be true Edited October 17, 2015 by Joseph Link to comment
Woody Posted October 17, 2015 Share Posted October 17, 2015 This is what I want Noob set hover makes the interaction event hover over the entity without actually interacting with it. If your not sure, log the result of interaction event it will be true I want it to hover over the entity, noob. Link to comment
Extreme Scripts Posted October 17, 2015 Share Posted October 17, 2015 V .123 is so much better than .127. When the script want to attack a npc, the mouse move a few pixels towards the entity and then stops, then move again and stops, repeatedly. This is what I use: InteractionEvent ie = new InteractionEvent(entity, "Attack"); ie.setHover(true); execute(ie); Another issue with grabbing ground items; it right clicks on the ground item but doesn't interact. GroundItem gi = getGroundItems().closest("blah"); if gi != null gi.interact("Take") If you are wanting to hover over an entity your using the completely wrong logic, you should first attack an NPC, then check you are in combat in another state/node and then hover over another NPC. Think about the logic, I haven't had any issues with the mouse in .27 and I've just re-written my whole agility script to use the new interaction sequences. @Zach did an amazing job props 1 Link to comment
Joseph Posted October 17, 2015 Share Posted October 17, 2015 (edited) I want it to hover over the entity, noob. oh my B, i thought you wanted to interact. btw you need some logic like extreme said. The code you posted, if you logged it. It would return true all the time. Which is why its keeps re-patterning its action. Edited October 17, 2015 by Joseph 1 Link to comment
Developer Zach Posted October 17, 2015 Author Developer Share Posted October 17, 2015 There are some more changes in the pipeline. Edit: v2.3.128 Reverted non-entity interactions back to .123Couple other changes to entity interactions. I'm working on reimplementing camera movements and walking with entity destinations for interaction event. 2 Link to comment
itzDot Posted October 17, 2015 Share Posted October 17, 2015 .128 currently interacting with groundItems is bugged Link to comment
Woody Posted October 17, 2015 Share Posted October 17, 2015 If you are wanting to hover over an entity your using the completely wrong logic, you should first attack an NPC, then check you are in combat in another state/node and then hover over another NPC. Think about the logic, I haven't had any issues with the mouse in .27 and I've just re-written my whole agility script to use the new interaction sequences. @Zach did an amazing job props Sorry to say, but you got it all wrong. The code I posted is just a part of my attacking method. Thanks though for your explanation, however I already knew about it. Hence http://osbot.org/forum/topic/74095-hovering-entitys-option/The reason I posted here is because the bug appeared in v 127 and I made no changes in the code. When I switched back to v 123, it was working perfectly fine. Link to comment
Developer Zach Posted October 17, 2015 Author Developer Share Posted October 17, 2015 .128 currently interacting with groundItems is bugged Can you provide more information than "bugged"? Link to comment
itzDot Posted October 17, 2015 Share Posted October 17, 2015 Can you provide more information than "bugged"? it will not pick up the item it right clicks it then moves the mouse away, and repeats. Link to comment
Developer Zach Posted October 17, 2015 Author Developer Share Posted October 17, 2015 it will not pick up the item it right clicks it then moves the mouse away, and repeats. Ah I already have that bug fixed. No wonder it didn't look bugged to me lol. Thanks Edit: .129 released. It has the fixes mentioned above and I re-implemented camera turning and walking for entity destination interaction events. As a side note Alek mentioned he increased the size of the Settings interface. 1 Link to comment
Developer Zach Posted October 18, 2015 Author Developer Share Posted October 18, 2015 After feedback from several scripters, Stable is now v2.3.129 Link to comment