Results 1 to 4 of 4

Thread: I need help with a color problem

  1. #1
    Join Date
    Jul 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I need help with a color problem

    ok i can find the fally road color, but i don't know how to get that color from the debug box to the if "(FindColor (x, y, [insert color], 0, 0, 0, 0))then".

  2. #2
    Join Date
    Jul 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    procedure GoToFurnace;

    var FaladorRoadColor: integer;

    begin
    FaladorRoadColor:= IntToStr(FindFallyRoadColor);
    FindFallyRoadColor;
    if (FindColor (x, y, (FaladorRoadColor), 800, 200, 850, 250))then
    movemousesmooth(x, y);
    wait(500);
    clickmouse(x, y, true);
    end;



    thsi is what i have so far, anyone see anything i have to change? it says

  3. #3
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't use movemouse and clickmouse, as it is detectable and gets you banned. Use MMouse (to move the mouse) or just Mouse if you need to move to and then click. works like so:

    SCAR Code:
    MMouse(x,y,2,2); //Moves to x,y with randomness of 2 to both x and y
    Mouse(x,y,2,2,True); //Moves to x,y with randomness of 2 to both x and y and clicks

    And you don't need FaladorRoadColor := IntToStr(FindFallyRoadColor). All you need is FaladorRoadColor := FindFallyRoadColor. The function itself returns an integer, it just also writes it out for you to see in the debug box. And you don't need to call FindFallyRoadColor afterwards either. Only FaladorRoadColor := FindFallyRoadColor; as that takes care of it for you.

    Also, you should read some tutorials on RadialWalk and RadialRoadWalk, as it works much better for walking. Basically, if you do FindColor(x,y,FallyRoadColor, etc) it'll click anywhere that it finds that color, which doesn't allow you to control which way it moves. RadialRoadWalk gives you more control on where it searches for the color, just find some tutorials on it and you'll be fine.

  4. #4
    Join Date
    Jul 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ty, i'm working on my first script, it's an auto smelter

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Forms problem!! (color pciker involved)
    By sink998 in forum OSR Help
    Replies: 2
    Last Post: 09-17-2008, 09:30 PM
  2. Color finding problem
    By topiser in forum OSR Help
    Replies: 8
    Last Post: 05-09-2008, 06:44 AM
  3. problem with color tool
    By hoo in forum News and General
    Replies: 0
    Last Post: 11-08-2007, 12:02 PM
  4. Problem with desert color
    By Kingofptw in forum OSR Help
    Replies: 18
    Last Post: 03-26-2007, 09:48 PM

Posting Permissions

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