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.

Camera yaw move directions not exactly going to position?

Featured Replies

Hello,

 

I can't seem to figure out why my script will not move my camera yaw to the exact position I want. I never noticed an issue with this before and it seemed to work fine but now it will sometimes be off ~6 degrees give or take. This is weird because in my script every loop I have it check to make sure the getCamera().getYawAngle() is equal to my desired angle. This is why I find itw eird it won't move the camera because I even put a logger into the section and it should be executing the moveYaw method but it doesn't appear to do anything. This results in repeated camera yaw check fails and throws off clicking spots.

 

Is there anyway like with creating a walking destination that you can set the min move to 0 so it will exactly move to it?

  • Author
9 hours ago, Juggles said:

It has a margin of +-6 

Hey, I can't seem to figure out another weird bug wondering if you have any input on it kind of related to this I guess.

 

When using gRandom (I know it's deprecated) I set it using gRandom(0, 6) sometimes it appears to generate 10 or other numbers outside of its bounds. An example of what I was doing would be like (1000 + gRandom(0, 6)) this will sometimes output 1011 etc...

26 minutes ago, Nebulae said:

Hey, I can't seem to figure out another weird bug wondering if you have any input on it kind of related to this I guess.

 

When using gRandom (I know it's deprecated) I set it using gRandom(0, 6) sometimes it appears to generate 10 or other numbers outside of its bounds. An example of what I was doing would be like (1000 + gRandom(0, 6)) this will sometimes output 1011 etc...

isn't it gRandom(standard Deviation, mean) ?
Should only give you 1006 every time then 

  • Author
22 hours ago, Juggles said:

isn't it gRandom(standard Deviation, mean) ?
Should only give you 1006 every time then 

 

Output from

log(gRandom(0, 1))
[INFO][Bot #1][09/26 11:36:37 PM]: 1
[INFO][Bot #1][09/26 11:36:37 PM]: 0
[INFO][Bot #1][09/26 11:36:38 PM]: 0
[INFO][Bot #1][09/26 11:36:38 PM]: 2
[INFO][Bot #1][09/26 11:36:40 PM]: 1
[INFO][Bot #1][09/26 11:36:40 PM]: 1
[INFO][Bot #1][09/26 11:36:41 PM]: 0
[INFO][Bot #1][09/26 11:36:41 PM]: 1
[INFO][Bot #1][09/26 11:36:43 PM]: 1
[INFO][Bot #1][09/26 11:36:43 PM]: 0
[INFO][Bot #1][09/26 11:36:44 PM]: 1
[INFO][Bot #1][09/26 11:36:44 PM]: 2

 

Just to verify doing gRandom(0, 0.5) works the way I want it to.

Edited by Nebulae

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.