kpreisser / MouseClickSimulator

Mouse Click Simulator for Toontown Rewritten and Corporate Clash
MIT License
26 stars 17 forks source link

Finding the right RGB for bubbles in minnie's melodyland, baritone boulevard. #15

Open zxstai opened 7 years ago

zxstai commented 7 years ago

So i got the movement working 100% for leaving the fishing stand and sell fish and move back to fishing stand. but i cannot figure how you are finding the correct RGB colors.

kpreisser commented 7 years ago

Hi, to find the RGB colors, you can e.g. use the Windows Paint application by pasting/opening a screenshot of TTR with the fishing pond, and then use the "Color picker" tool to select the color of a specific pixel. Then, you can click on "Edit colors" to view the Red, Green and Blue portions of the selected color. Alternatively, there are tools which can display the color from the current mouse position directly.

I usually create a few screenshots where the shadows have different positions, then use the average shadow color as value for the bubbleColorRgb attribute of the AutomaticFishing action. Additionally, I use half the difference of the Red, Green and Blue values of the darkest and the lightest shadow as value for the toleranceRgb attribute.

For example, for Baritone Boulevard, you might be able to use the following parameters:

<AutomaticFishing scan1="147, 230" scan2="823, 620" bubbleColorRgb="31, 107, 147"
                  toleranceRgb="8, 10, 15" />