Adblock breaks this site

Scar with rsc, help with colors.

Discussion in 'Scar/Simba Help' started by MyNan0wns, Apr 14, 2010.

  1. MyNan0wns

    MyNan0wns Newcomer

    Joined:
    Jun 17, 2007
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0
    Scar with rsc, help with colors.

    Don't know whether its a problem with using Vista 64bit or writing a script for SCAR, but everytime I run a basic command such as:
    //
    program CombineExample1;

    var
    x,y: Integer;

    const
    MonsterColor = 293491;

    begin
    if(FindColor(x,y,MonsterColor,0,0,100,100)) then
    begin
    MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
    Wait(100+random(10));
    ClickMouse(x,y,true);
    end;
    end.
    //

    The script compiles, and "successfully executes" within a second without actually visibly clicking anywhere. & yes my colour is set to 32bit :)



    --Edit, solved it, changed back to 16bit and all is well. o0
     
  2. M_A_I_N_FTW

    M_A_I_N_FTW Guru

    Joined:
    Dec 22, 2007
    Posts:
    1,336
    Referrals:
    1
    Sythe Gold:
    0
    Scar with rsc, help with colors.

    Because you only set the script to run the procedure once.

    You can make sure the script has found color by adding

    begin
    MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
    Wait(100+random(10));
    Writeln('Found color');
    ClickMouse(x,y,true);
    end;



    The mosemousesmooth and clickmouse procedure is off dates and detectable, so I recommend you use the procedure mouse(x, y, random x, random y, left click); and mmouse(x, y, random x, randomy y);

    Clickmouse can be replaced with this
    Example:
    Begin
    Mouse(310, 310, 3,3,true);
    End.

    its similiar for mmouse, there is just no true,false in the end.

    I think you have a lot of potential, being able to learn the very basics from un offical source. I would suggest you start to learn it from a REAL and PROPER source, which is villavu.com
     
< Scar Forms | Help please :) >


 
 
Adblock breaks this site