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.

Weird Camera Movement

Featured Replies

if (camera.getPitchAngle() < 44) {
	status = "Moving camera angle";

	int targetPitch = random(44, 67);
	log(targetPitch);

	if (camera.movePitch(targetPitch)) {
		if (!CTime.sleepUntil(3000, 100, () -> camera.getPitchAngle() == targetPitch)) {
			return random(50, 300);
		}
	}
}

This always sets my camera pitch to 67...

targetPitch doesn't always return 67.

Let me know if you get this behavior too, or if I'm doing something wrong in my code.

  • Author
1 minute ago, Stimpack said:

maybe the minimum pitch for that particular area is 67

67 is the maximum pitch in the game actually. I was testing this by pausing and moving my pitch below 44, so I don't believe this could be the problem.

Looking for others to test this. This could be a serious bug in the client, if every script is running at 67 pitch

doubt every script is running at 67 pitch lol

 

[INFO][Bot #1][02/04 09:00:58 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:00:58 AM]: [3240] 47
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] 56
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] 50
[INFO][Bot #1][02/04 09:01:19 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:19 AM]: [3240] 53
[INFO][Bot #1][02/04 09:01:20 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:20 AM]: [3240] 47

 

seems fine, i'm north of sw varr mine

  • Author
4 minutes ago, Stimpack said:

doubt every script is running at 67 pitch lol

 


[INFO][Bot #1][02/04 09:00:58 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:00:58 AM]: [3240] 47
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] 56
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] 50
[INFO][Bot #1][02/04 09:01:19 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:19 AM]: [3240] 53
[INFO][Bot #1][02/04 09:01:20 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:20 AM]: [3240] 47

 

seems fine, i'm north of sw varr mine

Are you checking to see if the pitch is indeed set to that pitch though?

  • Author
4 minutes ago, Stimpack said:

yeah, for the most part it works, sometimes it's off by +- 2 degrees. probs the sleep time used while checking to see if pitch is desired amount before releasing the up/down key. idk

https://i.imgur.com/gQN1fJo.gifv

 

 

Can you link your updated code?

um, it's your code that u posted 


        if (camera.getPitchAngle() < 44) {
            log("Moving camera angle");

            int targetPitch = random(44, 67);
            log(targetPitch);

            if (camera.movePitch(targetPitch)) {
                Sleep.until(() -> camera.getPitchAngle() == targetPitch, 3_000, 400, 200);
            }
        }

except i use Sleep class cuz i dont have ur CTime

dfrOO0O.gif

        int angleToMove = s.random(44, 67);
        log("Angle to move to: " + angleToMove);

        if (getCamera().getPitchAngle() < 44){
            log("Current camera pitch is: " + getCamera().getPitchAngle());
            getCamera().movePitch(angleToMove);
        } else {
            log("Camera pitch is " + getCamera().getPitchAngle() + " which is " + (getCamera().getPitchAngle() - 44) + " greater than 44, don't move camera.");
        }

 

  • Author
48 minutes ago, TrekToop11 said:

dfrOO0O.gif


        int angleToMove = s.random(44, 67);
        log("Angle to move to: " + angleToMove);

        if (getCamera().getPitchAngle() < 44){
            log("Current camera pitch is: " + getCamera().getPitchAngle());
            getCamera().movePitch(angleToMove);
        } else {
            log("Camera pitch is " + getCamera().getPitchAngle() + " which is " + (getCamera().getPitchAngle() - 44) + " greater than 44, don't move camera.");
        }

 

Weird behavior on my side only. Thanks guys!

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.