Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Mouse#startIdle() and Mouse#stopIdle()

Joined
Nov 3, 2013
Messages
609
These would be functions that could be used to start and stop mouse idling. This would obviously be hooked into player sense, but it could do things like slight movements, moving off screen, or some of the jittering movements that I know some people make while waiting for some event to happen in RS.
@Cloud @Arbiter
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,044
This ties in very well with the idea @Eagles13 had with allowing devs to have a method to tell the client that it's safe to idle for a set duration where control is deferred (to the client to potentially do PlayerSense'd antiban). Something along the lines of PlayerSense.idle(5 *ms*). That way devs can lower bans without trying to implement their own anti-ban during longer activities like potion making or fletching.
 
Alternatively we can assume that all sleeps are idle states that the client can do certain actions during with an optional boolean flag that force prevents deferring control.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
This ties in very well with the idea @Eagles13 had with allowing devs to have a method to tell the client that it's safe to idle for a set duration where control is deferred (to the client to potentially do PlayerSense'd antiban). Something along the lines of PlayerSense.idle(5 *ms*). That way devs can lower bans without trying to implement their own anti-ban during longer activities like potion making or fletching.
 
Alternatively we can assume that all sleeps are idle states that the client can do certain actions during with an optional boolean flag that force prevents deferring control.
Taking advantage of Execution.delay sleeps is a pretty good idea, if done properly...
 
Joined
Nov 3, 2013
Messages
609
Alternatively we can assume that all sleeps are idle states that the client can do certain actions during with an optional boolean flag that force prevents deferring control.
I'm not sure this is a good idea, I think scripters should have at least some option to make actual sleeping happen.

Also, I think idling for longer periods of time (> 10 min) could actually logout to the lobby or something.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,044
I'm not sure this is a good idea, I think scripters should have at least some option to make actual sleeping happen.

Also, I think idling for longer periods of time (> 10 min) could actually logout to the lobby or something.
That's what the optional (new) flag would do. It would allow the dev not to defer control if the use case demands it.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
That's what the optional (new) flag would do. It would allow the dev not to defer control if the use case demands it.
By default I'd make it not give us control, they would have to pass in an extra flag saying it's safe.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,044
By default I'd make it not give us control, they would have to pass in an extra flag saying it's safe.
Do not like as most scenarios are "safe" and those dealing with potentially dangerous situations would be expected to read the documentation to know how to use the flag. Otherwise this feature will not be used nearly enough.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Do not like as most scenarios are "safe" and those dealing with potentially dangerous situations would be expected to read the documentation to know how to use the flag. Otherwise this feature will not be used nearly enough.
I would rather be conservative and have predictable behavior while educating our bot authors on how to best use the api.
 
Joined
Nov 3, 2013
Messages
609
I'd vote for enabled by default if it is just mouse movement, but if it handles things like checking stats, looking up stat advancements or equipment, then I would say have a flag.

I also like the idea of having three states:
1) Off - Full control to script
2) On Light - Direct control is with the script, but the client may do things that are passive (camera, mouse jitters but not full movement)
3) On Full - Full control can be in the hands of the client.

Have light be enabled by default then just take in a boolean for off or fully on. Additionally, for longer rests, larger mouse movements can be used so long as the mouse is moved back to the original location at the end of the sleep.
 
Top