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.getZ and ItemDefinition.forId broken?

Featured Replies

Is the camera Z meant to be the zoom or just the Z axis of the camera? If no, how would I be able to tell when it hit max zoomout? I know there's a call for checking if the scale is defaulted, but I want to see the scale value itself. Doesn't seem to be a getter for it either :(

Secondly, ItemDefinition.forId(1993) returns null, is it broken? I recall it working properly when I last tried it, don't know why it doesn't work now...

EDIT: Sometime's it's broken, sometime's it works. How can I make it work 100%? 

I just opened my bank, closed it and then re-ran the test script. Magically,  it started working again... 

1993 = Jug of wine.

Edited by Satire

i use ItemDefinition for worn gear in my dragon aio. it should be working 100%

copied from the api:

Quote

Gets the definition for an item based on it's id. Note: This method might return null because the item hasn't been loaded by the client yet!

 

To make sure your camera is at the max distance i would open the settings and use configs to change the camera to its max position.

You can get the values by printing the getters of z, x and y.

Edited by zwaffel

  • Author
On 6/7/2019 at 8:04 AM, Chris said:

i use ItemDefinition for worn gear in my dragon aio. it should be working 100%

How does it operate? It nulls out on me during initialization of my class constructor. Sometimes it returns null, sometimes it doesn't. Is there a way I can force reload the ItemDefinition list? This is really a core part of my script...  Or will I have to hardcode the ID's I use... 

EDIT: dw, I just hardcoded it. 0 issues now, I run too many bots for me to rely on .forID, it just isn't reliable whatsoever.

On 6/9/2019 at 1:49 AM, zwaffel said:

copied from the api:

 

To make sure your camera is at the max distance i would open the settings and use configs to change the camera to its max position.

You can get the values by printing the getters of z, x and y.

the Z getter is not actually the camera's scale. The actual Z for the scale doesn't "exist". Wish I knew why it wasn't public lmao 

Edited by Satire

Yeh i feel like Z is more like depth, the distance your camera is away from you rather than the zoom.

 

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.