Results 1 to 10 of 10

Thread: Noob guide to using MMToMS

  1. #1
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default Noob guide to using MMToMS

    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:



    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:


    Next, you want to find the color and store it into variablesUse the minimap constants depends on which include you are using, such as P07, or P06 or RS)

    Simba Code:
    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

    Simba Code:
    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:



    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:



    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:

    Simba Code:
    FindColorTolerance(X, Y, COLOR, X-25, Y+25, X+25, Y-25, 15)



    And your are finished!

  2. #2
    Join Date
    Jan 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    This looks cool, but have you released any soulsplit scripts yet?

  3. #3
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Edin View Post
    This looks cool, but have you released any soulsplit scripts yet?
    No because the include isn't finished

  4. #4
    Join Date
    Jan 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by RJJ95 View Post
    No because the include isn't finished
    Let me know when you release anything for Soulsplit.

  5. #5
    Join Date
    Jan 2012
    Posts
    468
    Mentioned
    3 Post(s)
    Quoted
    200 Post(s)

    Default

    Damm I am waiting for this Awesome Guide!

  6. #6
    Join Date
    Oct 2012
    Location
    Italy
    Posts
    145
    Mentioned
    0 Post(s)
    Quoted
    44 Post(s)

    Default

    Cool, I can't wait to see this guide finished
    Check out my new script here: http://villavu.com/forum/showthread.php?p=1194418 Al-Kharid Silk buyer

  7. #7
    Join Date
    Nov 2011
    Location
    Sacramento, California
    Posts
    366
    Mentioned
    4 Post(s)
    Quoted
    85 Post(s)

    Default

    I also am awaiting the completion of this guide.

    Hurry up RJJ :P

  8. #8
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by sahibjs View Post
    I also am awaiting the completion of this guide.

    Hurry up RJJ :P
    Gah I'm not sure if I should add array part because NPC's move a lot, but finished up with a way to make it more accurate.

  9. #9
    Join Date
    Mar 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    How accurate is this for 07? you said it wasn't accurate but for what generation? everyone of them?

  10. #10
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by MrMonotone View Post
    How accurate is this for 07? you said it wasn't accurate but for what generation? everyone of them?
    It isn't accurate to the point, I would advise you use it to get the general area of an object

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •