Results 1 to 7 of 7

Thread: Npc Something another?

  1. #1
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Npc Something another?

    Ok so i've been working on a vial buyer in ardouge and i have come across a problem

    I can't figure out a way to trade the npc and buy the vials

    It just clicks around the screen really fast when i use color finder to trade him.
    Can someone plz help me?

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    function FindObj(var cx, cy: Integer; Text: string; Color: Integer; Tol: Integer): Boolean;
    begin
    Result := FindObjEx(cx, cy, [Text], [Color], Tol, 50, MSX1, MSY1, MSX2, MSY2);
    end;

    So how would i go about working with this?

  4. #4
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function FindObj(var cx, cy: Integer; Text: string; Color: Integer; Tol: Integer): Boolean;
    begin
    Result := FindObjEx(cx, cy, [Text], [Color], Tol, 50, MSX1, MSY1, MSX2, MSY2);
    end;

    Just get the uptext from the NPC and put it into the Text place and get the colour and put it into Color place
    lol

  5. #5
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I keep getting DUPLICATE IDENTIFIER 'FindObj'

  6. #6
    Join Date
    Jul 2008
    Location
    Far Off Pot Fields, Nowhere
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    procedure FindKeeper;

    begin
    if FindObjCustom(x, y, ['emad', 'ortan', 'ad Kor'], [3102849, 2640493], 4) then
    begin
    Mouse(x, y ,2, 2, False);
    ChooseOption('rade');
    begin
    wait(600 + random(1200));
    end;
    end;
    end;


    I used this instead o.O

  7. #7
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Quote Originally Posted by Sir_Oober View Post
    procedure FindKeeper;

    begin
    if FindObjCustom(x, y, ['emad', 'ortan', 'ad Kor'], [3102849, 2640493], 4) then
    begin
    Mouse(x, y ,2, 2, False);
    ChooseOption('rade');
    begin
    wait(600 + random(1200));
    end;
    end;
    end;


    I used this instead o.O
    does it even right click? or cant find the color?

    its prolly your color, use Reflection for the easy way out or make a new function(TPA/FindColorSpiral or something else thats related to color finding).

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
  •