Trunkss Posted October 22, 2015 Share Posted October 22, 2015 Hey guys, I'm trying to make a thieving bot for personal use, I've got everything sorted except my bot keeps clicking pickpocket while I'm stunned, How would I get it to stop Clicking while I'm stunned? Many thanks, Sherbie Quote Link to comment Share on other sites More sharing options...
Lemons Posted October 22, 2015 Share Posted October 22, 2015 I believe stunned = animating no? So just while myPlayer().isAnimating() make it sleep/wait (I think you can eat stunned idk tho). Someone more familiar with thieving will correct me if I am wrong :p Quote Link to comment Share on other sites More sharing options...
Woody Posted October 22, 2015 Share Posted October 22, 2015 Check the animation? Perhaps there's a certain animation id when you get stunned. Or you could check the message in the chatbox; if message that you're stunned -> sleep/wait. I believe stunned = animating no? So just while myPlayer().isAnimating() make it sleep/wait (I think you can eat stunned idk tho). Someone more familiar with thieving will correct me if I am wrong omg are we related or something?? Btw, inb4 @Bobrocket 1 Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted October 22, 2015 Share Posted October 22, 2015 Check the animation? Perhaps there's a certain animation id when you get stunned. Or you could check the message in the chatbox; if message that you're stunned -> sleep/wait. omg are we related or something?? Btw, inb4 @Bobrocket You called? Check player height before and after pickpocketing. Checking for animation is bad - when I wrote my scripts, there was no animation. (might be now, but it could change) Waiting a certain amount of time is bad - different time for every NPC Checking experience is meh - you'd still need to wait an arbitrary amount of time which is bad 2 Quote Link to comment Share on other sites More sharing options...
Chris Posted October 22, 2015 Share Posted October 22, 2015 check your player height? 190-191 is regular and if stunned it changes! Quote Link to comment Share on other sites More sharing options...
Volta Posted October 22, 2015 Share Posted October 22, 2015 Health bar is visible when stunned I believe. Quote Link to comment Share on other sites More sharing options...
Trunkss Posted October 22, 2015 Author Share Posted October 22, 2015 (edited) I believe stunned = animating no? So just while myPlayer().isAnimating() make it sleep/wait (I think you can eat stunned idk tho). Someone more familiar with thieving will correct me if I am wrong Tried that, But when you pickpocket you animate so it slows down the pickpocketing process You called? Check player height before and after pickpocketing. Checking for animation is bad - when I wrote my scripts, there was no animation. (might be now, but it could change) Waiting a certain amount of time is bad - different time for every NPC Checking experience is meh - you'd still need to wait an arbitrary amount of time which is bad check your player height? 190-191 is regular and if stunned it changes! worked like a charm, Thanks Edited October 22, 2015 by sherbie Quote Link to comment Share on other sites More sharing options...