Hello, I am newer to coding but after having a couple Java classes I have spiked an interest in writing programs in java to play RS for me. Using Javas Robot Class, I have been quite successful in doing this - mostly I believe is because I found ways to level where the mouse does not need to traverse very far. I have a few skills left to max but they require more mouse use and further mouse travel and I am paranoid about my mouse now that I am close to max. Currently my mouse only moves in straight lines so I tried finding out how to make it move human like and I stumbled across beizier curves but those seemed too "smooth" to be considered, I am not sure how you could add "jaggedness" or cusps. Then I found a link to SRL from stackoverflow so here I am, ready to learn about Pascal and how you guys have successfully conjured a human like mouse movement.
I am confused about some of the variables and their apparent arbitrariness in _breakWindMouse.
- In the user defined function I assume wind deals with x movement? and gravity deals with y movements? and min and max wait are the wait times between mouse steps? Where is min and max wait used?
- What is the use and why sqrt 2,3,5?
- nModa ect is the remaining distances?
- hypot is hypotenuse? ?
- minE is min value ?
If someone would be kind enough to chop the code down into steps and add comments so I can follow and hopefully transfer into Java, that would be fantastic! I do not really understand the logic.
Thank you.