Scar Functions Halp

Discussion in 'Scar/Simba Help' started by Xjaa, Jan 15, 2008.

Scar Functions Halp
  1. Unread #1 - Jan 15, 2008 at 8:00 PM
  2. Xjaa
    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus

    Xjaa Penguin
    $100 USD Donor

    Scar Functions Halp

    Code:
    Program SlamForLulz;
    {.include SRL\SRL.scar}
    
    
    var
    a: Boolean;
    b: Integer;
    c: String;
    
     begin
    
    a:= True
    b:= 1
    c:= 324
    
    procedure Slam(a: Boolean);
    
    if a = (true) then begin
    find door // some kind of color detector that can tell if door is open
    if door = (true) // if the door is open then close it
    then close
    repeat // for the number of times listed with "b"
    
    end;
    
    I don't really know the functions for scar could somebody let me know what kind of function I should use for each instance, and also the anti-randoms (SRL)
     
  3. Unread #2 - Jan 15, 2008 at 8:04 PM
  4. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Scar Functions Halp

    Press F1 for a full list of Scar functions.
     
  5. Unread #3 - Jan 18, 2008 at 4:19 PM
  6. Xjaa
    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus

    Xjaa Penguin
    $100 USD Donor

    Scar Functions Halp

    I mean like what would you recomend.
     
  7. Unread #4 - Jan 18, 2008 at 6:20 PM
  8. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Scar Functions Halp

    FindColor, FindColorSpiral, FindColorSpiralTolerance

    Find the first point. If you are looking in a small space it may work.

    FindColorsTolerance, FindColorsSpiralTolerance

    Finds all points and stores them in an array. You will have to sort through the array to find the point you are looking for. Use UpTexts.

    It would be hard to tell if a door is open or closed. You can count pixels and try to get the dimensions of the door but there is no easy way.
     
< Need most recent SCAR/SRL links. | What The Fuck >

Users viewing this thread
1 guest


 
 
Adblock breaks this site