rj
03-21-2013, 12:26 AM
Hello, this is a tutorial on how to use MMToMS. You may be wondering what was MMToMS? MMToMS Stands for:
Mini map to main screen. It is a Function built into the SRL include to help you click objects on the main screen that are hard to find. I found a great example on the "Soulsplit" private server:
http://i45.tinypic.com/nzglqo.png
In order to exit this cave, you need to click the area inside of the red box, and you can appear in different places each time you show up in this cave, so using a mousebox would be impractical! No worries, the Function I am about to teach you will help you solve your problem and is VERY easy to use(Until it gets to be more advanced such as searching multiple points, I will write a tutorial on that later). First, you will want to find a good color to use on the minimap, I found the little red exit:
http://i48.tinypic.com/e5iu6f.png
Next, you want to find the color and store it into variables:(Use the minimap constants depends on which include you are using, such as P07, or P06 or RS)
If FindColorTolerance(X, Y, 228, SS_MMX1, SS_MMY1, SS_MMX2, SS_MMY2, 15) Then
Next, simply use the same variables you just stored them in, using the MMToMS Function
P07_MMToMSPoint(X, Y);
mmouse(x,y,1,1)
ClickMouse2(Mouse_Left);
Congratulations! It should have click the spot were you were supposed to exit:
http://i45.tinypic.com/17zoyp.png
Now this method.. is not that very accurate in most circumstances because there are usually a lot more colors on the minimap to confuse use, which leads me to the next part: Expanding the area it searches. This is actually very simple, just do the same thing as above storing were the point is in 2 variables, and then we can draw a box from that point, example:
http://i49.tinypic.com/2zf8wo6.png
The blue dots represent were you defined the boxed area to look for the color by subtracting from the Point's X and adding to the Y for the Upper right (hopefully you know basic graphing to know left = negitive X Up = Positive Y, Right = Positive X, Down = negive Y.
To give you a visual the code would look something like this:
FindColorTolerance(X, Y, COLOR, X-25, Y+25, X+25, Y-25, 15)
And your are finished!
Mini map to main screen. It is a Function built into the SRL include to help you click objects on the main screen that are hard to find. I found a great example on the "Soulsplit" private server:
http://i45.tinypic.com/nzglqo.png
In order to exit this cave, you need to click the area inside of the red box, and you can appear in different places each time you show up in this cave, so using a mousebox would be impractical! No worries, the Function I am about to teach you will help you solve your problem and is VERY easy to use(Until it gets to be more advanced such as searching multiple points, I will write a tutorial on that later). First, you will want to find a good color to use on the minimap, I found the little red exit:
http://i48.tinypic.com/e5iu6f.png
Next, you want to find the color and store it into variables:(Use the minimap constants depends on which include you are using, such as P07, or P06 or RS)
If FindColorTolerance(X, Y, 228, SS_MMX1, SS_MMY1, SS_MMX2, SS_MMY2, 15) Then
Next, simply use the same variables you just stored them in, using the MMToMS Function
P07_MMToMSPoint(X, Y);
mmouse(x,y,1,1)
ClickMouse2(Mouse_Left);
Congratulations! It should have click the spot were you were supposed to exit:
http://i45.tinypic.com/17zoyp.png
Now this method.. is not that very accurate in most circumstances because there are usually a lot more colors on the minimap to confuse use, which leads me to the next part: Expanding the area it searches. This is actually very simple, just do the same thing as above storing were the point is in 2 variables, and then we can draw a box from that point, example:
http://i49.tinypic.com/2zf8wo6.png
The blue dots represent were you defined the boxed area to look for the color by subtracting from the Point's X and adding to the Y for the Upper right (hopefully you know basic graphing to know left = negitive X Up = Positive Y, Right = Positive X, Down = negive Y.
To give you a visual the code would look something like this:
FindColorTolerance(X, Y, COLOR, X-25, Y+25, X+25, Y-25, 15)
And your are finished!