Jump to content

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


Trunkss

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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