Results 1 to 5 of 5

Thread: Click Grand Exchange Person

  1. #1
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Click Grand Exchange Person

    i need help making sure that the grand exchange person gets clicked
    obviously when you log on, the camera view changes slightly and sometimes the grand exchange person may be out of a coordinate

    using the color picker probably, i need to make sure that the grand exchange person gets clicked when i log on

  2. #2
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    use something like this:

    SCAR Code:
    procedure clickbanker;
    var
     x, y: Integer;
    begin
     FindColor(x, y, bankercolor, x1, y1, x2, y2); // the x1, y1, x2, y2 are the points on the screen where FindColor will search
     Mouse(x, y, 2, 2, true);
    end;

    the bankercolor in this case would be whichever unique color you pick that relates to the banker.

    you can add in failsafes and such, but that's the basic way to find a color on the screen. if you want to find a specific color only in the mainscreen of runescape, use:

    SCAR Code:
    FindColor(x, y, bankercolor, MSX1, MSY1, MSX2, MSY2);

  3. #3
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    or, you can use a dtm of the bankers/ clerks on the minimap.

    SCAR Code:
    procedure clickgedude;
    var ge : integer; x, y: integer;
    begin
     ge := DTMFromString('78DA63CC64666060646440067FFE308169982' +
           '86311500D0B01357940353C04D4A401D570E2570300CB1109CA');
     if dtmrotated(ge, x, y, mmx1, mmy1, mmx2, mmy2) then
       mouseflag(x, y, 3, 3, 0);
      freedtm(ge);
    end;

    that should click a banker/ clerk on the minimap, but ofcorse you can just use a findcolorspiral

    SCAR Code:
    procedure clickgedude;
    var x, y: integer;
    begin
      if findcolorspiral(x, y, {color}, mmx1, mmy1, mmx2, mmy2, 10) then
        mouseflag(x, y, 4, 4, 0);
    end;

    ofcorse, fill in {color} with the yellow color on the minimap
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  4. #4
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    scuz 10 are you trying to click on the minimap or on the clerks to talk with them?
    If you are trying to click the minimap dot just use something a DTM, read more froma above
    but if you are trying to click on them to talk, once you are near them use
    SCAR Code:
    {*******************************************************************************
    Function FindObjThroughMM(var x, y: Integer; Kind: String; Colors, Tol: TIntegerArray; UpText: TStringArray; Width, Height: Integer): boolean;
    By: N1ke!
    Description: Finds a object with the given parameters.
    Uses minimap dots to get locations of objects.
    Will put the matching areas first in the TPA array,so it hovers those
    first.

    Note: It still searches the whole screen, but it puts items first in
          the array.

    Valid kinds are
    - npc/yellow
    - item/red
    - player/white
    *******************************************************************************}

    But that's just my idea :P maybe it's wrong but I would use this

    EDIT: Yay, I forgot to finish this post(too many post viewing at the same time :P).
    Before that you can use
    SCAR Code:
    SetAngle(True);  //set the angly to the highest
    MakeCompass('n'); //rotatea the compass to north
    so that will solve the different angle after logging in.

    Also the usage of that function I mentioned above with example:

    SCAR Code:
    if FindObjThroughMM(x, y, 'yellow', [1984, 989849, 981984], [5, 10, 15], ['rand', 'change', 'lerk'], 10, 20) then
    begin
      Mouse(x, y, 4, 4, False);
      //some chooseoption thing
      //etc ...
    end;

    Don't forget to declare x and y. The colors are just examples. Please note that colors and tolerances are in the same order so when the function searches for the first color it will search with the first tolerance. You don't need lot's of uptext and they are not in order.
    You can play with width/height to make it work better.
    Look in Object.scar if you still don't understand it fully. In the function itself I mean. Or ask here of course. We got a los of helpful member!
    Last edited by Sabzi; 08-20-2009 at 06:29 PM.

  5. #5
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Update:

    Got it working!!!! :d

    thanks!

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
  •