Satire Posted June 6, 2019 Share Posted June 6, 2019 (edited) 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 June 6, 2019 by Satire Quote Link to comment Share on other sites More sharing options...
Chris Posted June 6, 2019 Share Posted June 6, 2019 i use ItemDefinition for worn gear in my dragon aio. it should be working 100% Quote Link to comment Share on other sites More sharing options...
zwaffel Posted June 8, 2019 Share Posted June 8, 2019 (edited) 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 June 8, 2019 by zwaffel Quote Link to comment Share on other sites More sharing options...
Satire Posted June 12, 2019 Author Share Posted June 12, 2019 (edited) 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 June 12, 2019 by Satire Quote Link to comment Share on other sites More sharing options...
zwaffel Posted June 13, 2019 Share Posted June 13, 2019 Yeh i feel like Z is more like depth, the distance your camera is away from you rather than the zoom. Quote Link to comment Share on other sites More sharing options...