Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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

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

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

check your player height? 190-191 is regular and if stunned it changes!

Health bar is visible when stunned I believe.

  • Author

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.