Results 1 to 3 of 3

Thread: MMtoMS help

  1. #1
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default MMtoMS help

    Would like to know more on how to use this function. I want to learn on how to detect items or NPC on the mainscreen with the use of the dots from the minimap.

    I tried searching for guides, but couldn't find it. Help is appreciated

  2. #2
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Simba Code:
    Dots := GetMiniMapDotsIn('npc', MMX1, MMY1, MMX2, MMY2);
    SortTPAFrom(Dots, IntToPoint(MMCX, MMCY));//This might be unneccessary if GetMinimapDots already returns the points sorted from the center.
    for I := 0 to Length(Dots) -1 do
    begin
        MSDot := MMtoMS(Dots[I]);
        //Here you do whatever you want with each mainscreen point of the NPC dots.
        //Remember that the point isn't 100% accurate so you might want to perform an object(color) search function
        //to area like MSDot.X-20, MSDot.Y-20, MSDot.X+20, MSDot.Y+20
    end;

    Edit:
    here is what you set as variables:
    Simba Code:
    var
      I: Integer;
      Dots: TPointArray;
      MSDot: TPoint;
    Last edited by weequ; 05-22-2012 at 01:46 PM.
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  3. #3
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks! I'll try that out now.

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
  •