Results 1 to 10 of 10

Thread: Need help with my projekt guildfisher

  1. #1
    Join Date
    Jun 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with my projekt guildfisher

    this is the script i need help with... made banking so far... now i need to make a path to the fising spots and start fishing...

    procedure walktofishingspoint;
    var x,y : Integer;
    begin
    FindColorTolerance(x, y, 1128001, 666, 104, 721, 56,30)
    MoveMouseSmooth(x + 20 ,y + 2);
    ClickMouse(x,y,true)
    end;

    this procedure doent do anything... but it compiles.. what is wrong?

    Need help with using findcolorTolerance and i need to know of a good command to locate all the fish spots...

  2. #2
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    first dont use MoveMouseSmooth. Ever. Use Mmouse(x,y,rx,ry) to just move the mouse. Use Mouse (x,y,rx,ry,true) to move AND click the mouse. also since your looking on the minimap you can use the srl function

    FindMMColorTol(var x, y: Integer; color, tol: Integer): Boolean;
    By: Stupid3ooo
    Description:
    Finds color on Minimap with tolerance

    so your current script would read


    procedure walktofishingspoint;
    begin
    FindMMColorTol(x,y,1128001,30)
    Mouse(x,y,x+20,y+2,true)
    end;

    also if it doesn't do anything, make sure you have dragged the crosshairs to the rs window and that it can see the color that your looking for.

  3. #3
    Join Date
    Jun 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you verry much

  4. #4
    Join Date
    Jun 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what are the rules for functions?

    procedure walktofishingspoint;
    var x,y : Integer;
    begin
    FindColorTolerance(var x,y,2505552, 805, 231, 843, 190,30)
    Mouse(x,y,x+20,y+2,true)
    flag;
    end;

    i get syntax error on this... and btw... anyone got good tut on errors?

  5. #5
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well you get a syntax error on

    FindColorTolerance(var x,y,2505552, 805, 231, 843, 190,30)

    you don't put var in there. var is a declaration. not an actual parameter. you didn't have that in your first posting of the script, how come you have it now? :s

  6. #6
    Join Date
    Jun 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IronTeapot View Post
    well you get a syntax error on

    FindColorTolerance(var x,y,2505552, 805, 231, 843, 190,30)

    you don't put var in there. var is a declaration. not an actual parameter. you didn't have that in your first posting of the script, how come you have it now? :s
    was that it? argH!

    Sorry... just i am a little tired now... think i`ll skip programing for the rest of the day...

    thanks again

  7. #7
    Join Date
    Jun 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    my script now runs but i get this error on my procedure

    procedure walktofishingspoint;
    var x,y : Integer;
    begin
    FindColorEllipse(x, y,1719903, 30, 677, 102, 714, 67)
    CMMouse(x, y, 1000, 1500)
    flag;
    end;


    [Runtime Error] : Exception: Canvas does not allow drawing in line 220 in script C:\Documents and Settings\Frenzel\Skrivebord\SCAR 2.03\includes\srl\srl\core\Color.scar

    whats wrong with this?

    AND btw... the only thing i need to do is to have a command that searches after a color with tolerance...
    I want it to search from this cords (667, 96) to (710, 57) after that collor...

  8. #8
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well for starters, did you properly drag the cross hairs to the rs window?
    second i dont know if CMMouse is actually a procedure. If you have flag that means you have clicked, so it should just be Mouse(x,y,rx,ry,true)
    and lastly and the most important in the rx and ry values you have in CMMouse(x, y, 1000, 1500). 1000 and 1500 are the random amounts to move along the x or y coordinates away from the original x and y. the rs game is only about 800 by 600 or so. you getting it to click on places that dont exist inside teh client window, and therefore can not do anything, and results in an error.

    Also, how come you keep changing around the procedure, adding things that dont need to be there (var x,y : Integer; for example, thats declared when you do {.include Srl/Srl.scar} which you should be using anyways)
    even after i fixed it originally up at the top of this thread?

  9. #9
    Join Date
    Jun 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IronTeapot View Post
    well for starters, did you properly drag the cross hairs to the rs window?
    second i dont know if CMMouse is actually a procedure. If you have flag that means you have clicked, so it should just be Mouse(x,y,rx,ry,true)
    and lastly and the most important in the rx and ry values you have in CMMouse(x, y, 1000, 1500). 1000 and 1500 are the random amounts to move along the x or y coordinates away from the original x and y. the rs game is only about 800 by 600 or so. you getting it to click on places that dont exist inside teh client window, and therefore can not do anything, and results in an error.

    Also, how come you keep changing around the procedure, adding things that dont need to be there (var x,y : Integer; for example, thats declared when you do {.include Srl/Srl.scar} which you should be using anyways)
    even after i fixed it originally up at the top of this thread?

    the interger is just to my way to remember what it is... but i didnt know this"the rs game is only about 800 by 600 or so. "

    can you explain why this procedure works?

    procedure walktofishingspoint;
    var x,y : Integer;
    begin
    FindColorAbstract(x,y, 1586249, 30, 680, 58 ,715, 64,677, 97, 711, 96)
    CMMouse(x +5, y +5, 1000, 1500)
    GetMousePos(x,y)
    clickmouse(x,y,true)
    flag;
    end;

    btw... thanks for all the help again.. ironteapot... you will get extra credits for helping me out when i realese my script...

  10. #10
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    why or how? why it works is because it doesn't contain any errors. how, you should know if your already using those functions and if not, you shouldnt be using those functions start with the ones you know.First, tell me why you keep changing your findcolor procedures. secondly tell me how come you keep putting the stupid 'var x,y : Integer;' in the procedure. srl.scar declares them for you. and you cant use the procedure if you haven't included srl.scar

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
  •