Jump to content

How to make the bot check if you've been stunned


Recommended Posts

Posted

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 tongue.png

omg are we related or something??

 

Btw, inb4 @Bobrocket

  • Like 1
Posted

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

  • Like 2
Posted (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 tongue.png

 

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 biggrin.png

Edited by sherbie

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...