Adblock breaks this site

An Auto Fighter for Last Chaos

Discussion in 'Scar/Simba Help' started by demon9414, Mar 6, 2010.

  1. demon9414

    demon9414 Active Member

    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    Maybe someone could help me. Right now, the script finds the colors, but it won't click for some reason.

    I've tried making the mouse move to the coordinates and then click, I've tried making it click twice, and I've tried a combination of the two.

    Is there something obvious I'm missing?
     
  2. iTankedYou

    iTankedYou Member
    Banned

    Joined:
    Mar 7, 2010
    Posts:
    66
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    Huge Vouch iSparcMac Got me a fire cape and I only paid $5.95!
     
  3. demon9414

    demon9414 Active Member

    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    Nice spam there..

    Still need some help with this.
     
  4. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    Post the script - so we can look further.
     
  5. demon9414

    demon9414 Active Member

    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    This is what I have for my script..

    BEWARE! This is my first Scar script, so watch out your eyes don't burst and your brains don't boil and ooze out your ears.

    Code:
    program Fighter;
    
    var
    x,y: Integer;
    
    const
    Monster1= 3222577; //Different Monster Colors
    Monster2= 1579032;
    Monster3= 1580065;
    Monster4= 3749945;
    Monster5= 1580065;
    Monster6= 526344;
    WaitTime= 1000;
    
    begin
    repeat
    if(FindColor(x,y,Monster1,0,96,1024,768)) then
     begin
      Writeln('Monster Found');
      MoveMouse(x,y);
      Wait(100);
      ClickMouse(x,y,true);
      end else
      if(FindColor(x,y,Monster2,0,96,1024,768)) then
     begin
      Writeln('Monster Found');
      MoveMouse(x,y);
      Wait(100);
      ClickMouse(x,y,true);
      end else
      if(FindColor(x,y,Monster3,0,96,1024,768)) then
     begin
      Writeln('Monster Found');
      MoveMouse(x,y);
      Wait(100);
      ClickMouse(x,y,true);
      end else
      if(FindColor(x,y,Monster4,0,96,1024,768)) then
     begin
      Writeln('Monster Found');
      MoveMouse(x,y);
      Wait(100);
      ClickMouse(x,y,true);
      end else
      if(FindColor(x,y,Monster5,0,96,1024,768)) then
     begin
      Writeln('Monster Found');
      MoveMouse(x,y);
      Wait(100);
      ClickMouse(x,y,true);
      end else
      Writeln('Monster Not Found');
     Wait(WaitTime+random(1000));
     until(false);
    end.
    
    I'm guessing there is some kind of color selector that has a tolerance, but I didn't look very hard for it so I just simply made it so the script will search for 6 different colors.
     
  6. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    Use FindColorTolerance to search with tolerance. 15-30 is good for monsters.
     
  7. demon9414

    demon9414 Active Member

    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    This is not my problem though, I can find the monsters just fine the way it is now, but when it finds them for some reason it won't actually click on them. The mouse moves over the color and then just doesn't click.
     
  8. demon9414

    demon9414 Active Member

    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    Still searching for a solution to my problem..
     
  9. demon9414

    demon9414 Active Member

    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    Really? Not a single person can help?
     
  10. sgt soul

    sgt soul Forum Addict

    Joined:
    Oct 28, 2009
    Posts:
    345
    Referrals:
    0
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    it would be wise to check on SRL-forums, as they know all areas of scripting :)
     
  11. M_A_I_N_FTW

    M_A_I_N_FTW Guru

    Joined:
    Dec 22, 2007
    Posts:
    1,336
    Referrals:
    1
    Sythe Gold:
    0
    An Auto Fighter for Last Chaos

    out dated and it didn't include srl.scar
     
< Error with Smart | Help please. >


 
 
Adblock breaks this site