LSFKing Posted May 17, 2015 Share Posted May 17, 2015 Hello, I'm a new poster and I hope I'm doing this right.I wrote my own script that steals from chests, but some are trapped so I made it so that it will always click the "Search for traps" option, not the "Open" one.However, it seems that every now and then the bot will click the "Open" button and take damage. This shouldn't be the case at all since "Open" isn't even included in the script.Anyone have any ideas? Is there a bit of code that can tell it to be sure NOT to click "Open"?Thanks much! Quote Link to comment Share on other sites More sharing options...
heptic Posted May 17, 2015 Share Posted May 17, 2015 Try this: objects.closest("NAME OF ITEM").interact("WHAT ACTION YOU WANT TO USE"); Quote Link to comment Share on other sites More sharing options...
LSFKing Posted May 17, 2015 Author Share Posted May 17, 2015 Try this: objects.closest("NAME OF ITEM").interact("WHAT ACTION YOU WANT TO USE"); I went even further than that, I gave the EXACT location of the object and made the camera center on that object to always keep it visible. Quote Link to comment Share on other sites More sharing options...
heptic Posted May 17, 2015 Share Posted May 17, 2015 I went even further than that, I gave the EXACT location of the object and made the camera center on that object to always keep it visible. I'm not sure, when i want to use a object i normally just use this; works fine this way. Quote Link to comment Share on other sites More sharing options...
FrostBug Posted May 17, 2015 Share Posted May 17, 2015 It could be that the Open option is the right-click option at the time of starting the interaction event; but then the object changes state before the actual click is executed? About one of the only scenarios I can think of. You could enforce right-click interactions if you want to make sure that 'Open' is never selected. This could be done by right clicking the chest and then using MenuAPI to find and click the option Quote Link to comment Share on other sites More sharing options...
LSFKing Posted May 17, 2015 Author Share Posted May 17, 2015 (edited) I'm not sure, when i want to use a object i normally just use this; works fine this way. The only issue I had with that was the fact that right after he would open the chest, he would walk to a chest across the room and start mucking about with that one. It could be that the Open option is the right-click option at the time of starting the interaction event; but then the object changes state before the actual click is executed? About one of the only scenarios I can think of. You could enforce right-click interactions if you want to make sure that 'Open' is never selected. This could be done by right clicking the chest and then using MenuAPI to find and click the option I'll give this a try and will report back with the results. Thanks! Edited May 17, 2015 by LSFKing Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted May 17, 2015 Share Posted May 17, 2015 (edited) Never heard of missclicking? Shouldn't happen alot. Try lower the mouse speed or something ... Edited May 17, 2015 by Khaleesi Quote Link to comment Share on other sites More sharing options...
LSFKing Posted May 17, 2015 Author Share Posted May 17, 2015 Never heard of missclicking? Shouldn't happen alot. Try lower the mouse speed or something ... This sounds a little more like what might be happening. What speed would you recommend setting it to to ensure accuracy but not impact efficiency? Quote Link to comment Share on other sites More sharing options...
Apaec Posted May 17, 2015 Share Posted May 17, 2015 Never heard of missclicking? Shouldn't happen alot. Try lower the mouse speed or something ... Who did your signature? I love it. Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted May 17, 2015 Share Posted May 17, 2015 (edited) Who did your signature? I love it. Awesome, isn't it? My manager @LeBron found this awesome guy, you should definately send him a PM and ask him to update yours too. @Making Rice is the genius behind this. Edited May 17, 2015 by Khaleesi 1 Quote Link to comment Share on other sites More sharing options...
Apaec Posted May 17, 2015 Share Posted May 17, 2015 Awesome, isn't it? My manager @LeBron found this awesome guy, you should definately send him a PM and ask him to update yours too. @Making Rice is the genius behind this. I really like ur sig alot. I think i'll aproach rice once i've finished with my ghoul killer and it's released as part of my perm collection apa 1 Quote Link to comment Share on other sites More sharing options...
LSFKing Posted May 17, 2015 Author Share Posted May 17, 2015 Okay, fixed it. What I did was put a delay between right-clicking and selecting the option and I haven't had any issues since. Plus, I added a failsafe so that if one of my bots take damage, it logouts and turns itself off so I immediately know the issue.Thanks all for your input, much appreciated! Quote Link to comment Share on other sites More sharing options...