Recommended Posts

is there a way to control the zoom, i looked at the api and there's option to change the yaw (turning to the sides) and pitch (up and down)

 

i wanna be able to control the zooming but theres only the ctx.camera.y(); which just returns the positions

 

thanks a lot

Share this post


Link to post


iDzn   
Just now, likklemann said:

 

thanks for the quick reply, gonna mess around with it

Yeah no worries, I tried to look at the Y() but that only works for specific camera angles as once the camera moves to a different position then the Y() changes anyway.

Share this post


Link to post
1 minute ago, ShowtimeScripts said:

In the options menu there's a simple slider to change the zoom

yeah but i was hoping there was a built in function 

Share this post


Link to post
1 hour ago, iDzn said:

Yeah no worries, I tried to look at the Y() but that only works for specific camera angles as once the camera moves to a different position then the Y() changes anyway.

 

yo dan, im using the speed() built in function to try and slow the speed mouse, what integer do i give it to make a slow speeding mouse

Share this post


Link to post
iDzn   
1 hour ago, likklemann said:

 

yo dan, im using the speed() built in function to try and slow the speed mouse, what integer do i give it to make a slow speeding mouse

You can’t slow it down any more than default, you can only speed it up.

Share this post


Link to post
Asuna   
1 hour ago, likklemann said:

 

yo dan, im using the speed() built in function to try and slow the speed mouse, what integer do i give it to make a slow speeding mouse

https://www.powerbot.org/rsbot/releases/docs/org/powerbot/script/Input.html#speed-int-

 

The speed argument is actually an inverse.

Suppose C is a constant speed, the default speed or your mouse.

 

Then as the example given in the JavaDocs state:

  • int: 100 Normal Speed
  • int: 100 / 2 = 50 : 2x the speed
  • int: 100 / 4 = 25 : 4x the speed
  • so on...

 

 

 

Share this post


Link to post
36 minutes ago, Asuna said:

https://www.powerbot.org/rsbot/releases/docs/org/powerbot/script/Input.html#speed-int-

 

The speed argument is actually an inverse.

Suppose C is a constant speed, the default speed or your mouse.

 

Then as the example given in the JavaDocs state:

  • int: 100 Normal Speed
  • int: 100 / 2 = 50 : 2x the speed
  • int: 100 / 4 = 25 : 4x the speed
  • so on...

 

 

 

I love how you defined C and then never used it

Share this post


Link to post
Asuna   
19 minutes ago, ShowtimeScripts said:

I love how you defined C and then never used it

"Free Variable" 🤪🤪🤪

Edited by Asuna

Share this post


Link to post

how can i use widgets to see if i got a level up

 

look at the picture below

https://imgur.com/a/qGJXocc 

 

so how can i use that widget in code so in future i know when i get a level up so then i can drag the mouse to the "click there to continue"

- just wanna make a lot of anti-ban features

Edited by likklemann

Share this post


Link to post
8 minutes ago, likklemann said:

how can i use widgets to see if i got a level up

 

look at the picture below

https://imgur.com/a/qGJXocc 

 

so how can i use that widget in code so in future i know when i get a level up so then i can drag the mouse to the "click there to continue"

- just wanna make a lot of anti-ban features

Chat classs has methods for that

Share this post


Link to post
iDzn   
6 hours ago, Asuna said:

ctx.widgets.widget(233).component(3).click() also works

There ar different components for level up, when you unlock a new item or whatever in a skill it’s a new widget that needs to be cleared :c

Share this post


Link to post
Asuna   
1 minute ago, iDzn said:

There ar different components for level up, when you unlock a new item or whatever in a skill it’s a new widget that needs to be cleared :c

Didn't know that. Well the alternative solution that I use ('cause I absolutely despise widgets; how often they change 'cause of mobile) is to listen to the chat for a level-up message.

Share this post


Link to post
iDzn   

Yeah I do that in some cases, I tried to do ctx.chat.continue() but rarely works, most of the time i do a component search for the text click to continue and if it’s visible hit the space bar.

Edited by iDzn

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now