An Auto Fighter for Last Chaos

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

An Auto Fighter for Last Chaos
  1. Unread #1 - Mar 6, 2010 at 9:09 AM
  2. demon9414
    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    demon9414 Active Member

    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?
     
  3. Unread #2 - Mar 7, 2010 at 8:56 AM
  4. iTankedYou
    Joined:
    Mar 7, 2010
    Posts:
    66
    Referrals:
    0
    Sythe Gold:
    0

    iTankedYou Member
    Banned

    An Auto Fighter for Last Chaos

    Huge Vouch iSparcMac Got me a fire cape and I only paid $5.95!
     
  5. Unread #3 - Mar 8, 2010 at 7:07 PM
  6. demon9414
    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    demon9414 Active Member

    An Auto Fighter for Last Chaos

    Nice spam there..

    Still need some help with this.
     
  7. Unread #4 - Mar 9, 2010 at 3:33 PM
  8. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    An Auto Fighter for Last Chaos

    Post the script - so we can look further.
     
  9. Unread #5 - Mar 9, 2010 at 6:05 PM
  10. demon9414
    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    demon9414 Active Member

    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.
     
  11. Unread #6 - Mar 10, 2010 at 4:30 PM
  12. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    An Auto Fighter for Last Chaos

    Use FindColorTolerance to search with tolerance. 15-30 is good for monsters.
     
  13. Unread #7 - Mar 10, 2010 at 6:23 PM
  14. demon9414
    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    demon9414 Active Member

    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.
     
  15. Unread #8 - Mar 12, 2010 at 6:48 PM
  16. demon9414
    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    demon9414 Active Member

    An Auto Fighter for Last Chaos

    Still searching for a solution to my problem..
     
  17. Unread #9 - Mar 15, 2010 at 3:00 PM
  18. demon9414
    Joined:
    Mar 10, 2007
    Posts:
    221
    Referrals:
    0
    Sythe Gold:
    0

    demon9414 Active Member

    An Auto Fighter for Last Chaos

    Really? Not a single person can help?
     
  19. Unread #10 - Mar 16, 2010 at 5:37 AM
  20. sgt soul
    Joined:
    Oct 28, 2009
    Posts:
    345
    Referrals:
    0
    Sythe Gold:
    0

    sgt soul Forum Addict

    An Auto Fighter for Last Chaos

    it would be wise to check on SRL-forums, as they know all areas of scripting :)
     
  21. Unread #11 - Mar 21, 2010 at 10:36 AM
  22. M_A_I_N_FTW
    Joined:
    Dec 22, 2007
    Posts:
    1,336
    Referrals:
    1
    Sythe Gold:
    0

    M_A_I_N_FTW Guru

    An Auto Fighter for Last Chaos

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

Users viewing this thread
1 guest


 
 
Adblock breaks this site