Scar with rsc, help with colors.

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

Scar with rsc, help with colors.
  1. Unread #1 - Apr 14, 2010 at 1:45 PM
  2. MyNan0wns
    Joined:
    Jun 17, 2007
    Posts:
    2
    Referrals:
    0
    Sythe Gold:
    0

    MyNan0wns Newcomer

    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
     
  3. Unread #2 - Apr 14, 2010 at 11:07 PM
  4. M_A_I_N_FTW
    Joined:
    Dec 22, 2007
    Posts:
    1,336
    Referrals:
    1
    Sythe Gold:
    0

    M_A_I_N_FTW Guru

    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 :) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site