Results 1 to 14 of 14

Thread: help with wcer

  1. #1
    Join Date
    May 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help with wcer

    ok so i am making my first script and i all ready have 86 wc so i just use that to make some money and hopefully hit 99

    so her is what i have so far to find the tree and to click on it but i get this error code Error] (16776:1): Invalid number of parameters

    Code:
                           program lumbywc;
    
    // set up
    // make sure you are faceing the yew tree closest to the lumby general store
    // have axe in first slot
    
    {.include SRL/SRL.Scar}
    
    var
    x,y: Integer;
    
    begin
     findcolor(x,y,3823733,331,443,246,368);
      mmouse(x,y)
    end;
    can any one help

  2. #2
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Code:
                           program lumbywc;
    
    // set up
    // make sure you are faceing the yew tree closest to the lumby general store
    // have axe in first slot
    
    {.include SRL/SRL.Scar}
    
    var
    x,y: Integer;
    
    begin
     if (FindColor(x, y, {yew color}, MMX1, MMY1, MMX2, MMY2)) then
      MMouse(x, y, 0, 0, True);
    end.
    i think it cause it needed a period but im not sure

  3. #3
    Join Date
    May 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by J_Pizzle View Post
    Code:
                           program lumbywc;
    
    // set up
    // make sure you are faceing the yew tree closest to the lumby general store
    // have axe in first slot
    
    {.include SRL/SRL.Scar}
    
    var
    x,y: Integer;
    
    begin
     if (FindColor(x, y, {yew color}, MMX1, MMY1, MMX2, MMY2)) then
      MMouse(x, y, 0, 0, True);
    end.
    i think it cause it needed a period but im not sure
    i tryed it and it did not work any other ideas

  4. #4
    Join Date
    May 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy ok i go to wok but..

    ok i got it to work and i changed to findcolorspiral but the mouse moves to slow it would take forever... how do i make it move faster?

  5. #5
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Code:
    mousespeed :=35;

  6. #6
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    use this: MouseSpeed := RandomRange(13, 19);
    Tiny bit of randomness
    35 is wayyyy too fast!

    T~M

  7. #7
    Join Date
    May 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ty

    ok ty it looks like a human at mousespeed:=10;
    so i will keep using this thread if i have another problem (witch i will lol (new))
    thx for the help

  8. #8
    Join Date
    May 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by The Man View Post
    use this: MouseSpeed := RandomRange(13, 19);
    Tiny bit of randomness
    35 is wayyyy too fast!

    T~M
    o ok i should of thought of that lol ok
    ty too

  9. #9
    Join Date
    May 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ok runing?

    ok i have

    Code:
                           program lumbywc;
    
    // set up
    // make sure you are faceing the yew tree closest to the lumby general store
    // have axe in first slot
    
    {.include SRL/SRL.Scar}
    
    var
    x,y: Integer;
    
    begin
     if findcolorspiral(x,y,{yewcolor},x1,y1,x2,y2)then
     mousespeed:=randomrange(9,15);
      mouse(x,y,10,10,true);
    if not
    
    end.

    after if not i could put
    walk(s) and i could use like for how many mili secs or tell see a certain color ?

    tell me if this would work or is there a better way

  10. #10
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    no that wouldnt work, notice the 'yew color' guess what goes there
    yes of course there is a better way. if tomorrow you still aint got it i will make you the base.
    check out the tutorial island in mean time

    T~M

  11. #11
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    SCAR Code:
    var
     x, y, TimesToWait : Integer;

    begin
      if findcolorspiral( x, y, {yewcolor}, x1, y1, x2, y2)then
      begin
        mousespeed := randomrange(9,15)
        mouse( x, y, 10, 10, true)
      end else //Replaces the 'in not..' so if FindColorSpiral() then DoThis; else DoThat;
      begin
        repeat
          Inc(TimesToWait);  //Adds +1 to the Value held by TimesToWait.
          Wait(100);
        until(TimesToWait > 10) or (FindColor(FILL THIS OUT));  //Will Continue Waiting Until TimesToWait has a greater value then '10' or you find your color.
      end;
    end;

  12. #12
    Join Date
    May 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default explain

    can u or soem one plz explain this

  13. #13
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    read the green text in the box.

    those are my notes to you.

  14. #14
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Dont use FindColor as colors change you should try using FindObj or FindObjTPA or making your own one
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

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
  •