Adblock breaks this site

[TUT]Unmatched Beginner's Guide to Scripting Scar

Discussion in 'Scar/Simba Help' started by WhoCares357, Jan 21, 2007.

?

How Helpfull

  1. Unmatched/Perfect

    169 vote(s)
    59.1%
  2. Needs a Little Improvement

    50 vote(s)
    17.5%
  3. Vague/Hard to Follow

    35 vote(s)
    12.2%
  4. Impossible/Needs Total Revision

    32 vote(s)
    11.2%
Thread Status:
Not open for further replies.
  1. Jukka

    Jukka Active Member

    Joined:
    Nov 23, 2005
    Posts:
    244
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    good tut! though i learned nothing :(
     
  2. Flagrant0

    Flagrant0 Active Member

    Joined:
    Jan 30, 2007
    Posts:
    145
    Referrals:
    1
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    ooh nice man, good job!!!!

    Scar User Educator pl0x!!!!!!
     
  3. WhoCares357

    WhoCares357 Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Lol, don't have 5 tuts yet :p
     
  4. Flagrant0

    Flagrant0 Active Member

    Joined:
    Jan 30, 2007
    Posts:
    145
    Referrals:
    1
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    man u took ur time on that man....i feel proud for you man. NICE took u prob like weeks!!!

    That tut is so good it as good as 5 tuts together!
     
  5. joeman032000

    joeman032000 Forum Addict
    Banned

    Joined:
    Nov 5, 2005
    Posts:
    358
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    wonderfull, really helps a lot
     
  6. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    I don't think it matters much, but when you are doing an If+Then+Else Procedure, do you need to add semi-colons?

    Wouldn't these two be exactly the same?

    Code:
    program ExampleConstant2;
    
    var
    x,y: Integer;
    
    const
    FishColor= 19245;//Set the color of the fish
    
    begin
    if(FindColor(x,y,FishColor,0,0,600,600)) then
     begin
      Writeln('Found Fish');
     end else
      Writeln('Did not find Fish');
    end.
    Code:
    program ExampleConstant2;
    
    var
    x,y: Integer;
    
    const
    FishColor= 19245;//Set the color of the fish
    
    begin
    if(FindColor(x,y,FishColor,0,0,600,600)) then
     begin
      Writeln('Found Fish')
     end else
      Writeln('Did not find Fish')
    end.
    Thanks
     
  7. nigerlet

    nigerlet Guest

    Referrals:
    1
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    I got a question I don't know if its dumb but i need help. I download SRL from the site SRL-Fourms. When it's all done it has a windows media player logo instead of a folder. When I open it it takes me to Windows Media Player and doesn't do anything. If somone could just tell me what im doing wrong that would help so much.
     
  8. WhoCares357

    WhoCares357 Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Yes, they will both work.
     
  9. the smith400

    the smith400 Guest

    Referrals:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    COOL...now can u show us how to auto type and click...just like an auto login..plzzzz
     
  10. pker overkil

    pker overkil Forum Addict

    Joined:
    Feb 11, 2007
    Posts:
    387
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    i just have 1 question what do you mean by findcolor is the same as findcolor spiral except findcolorspiral si used for colors that take up more space? and i never see findcolor in scripts i always see findcolorspiral
     
  11. aero

    aero Guest

    Referrals:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Very nice Tut.
     
  12. WhoCares357

    WhoCares357 Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    FindColor is used to find a single pixel (AKA small dot of the color)
    FindColorSpiral is used to find an amount of pixels (AKA a large area of the color)
     
  13. pker overkil

    pker overkil Forum Addict

    Joined:
    Feb 11, 2007
    Posts:
    387
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    ooooooooh i get it thank you
     
  14. M I H O L K

    M I H O L K Member
    Banned

    Joined:
    Jan 25, 2007
    Posts:
    69
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Its a very nice tutorial indeed!
    - I found out alot about all the basics and stuff.
    If i should rate it then it would be a 9/10.

    You could improve, by showing me some very simple scripts, for example a bone buryer, and tell what to do, how to string it all together etc.etc.
    more pictures would be great too.
    BUT GREAT TUTORIAL! INDEED!
     
  15. Slafe1

    Slafe1 Guest

    Referrals:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Very good tutorial, I now understand the basics, thanks!
     
  16. Hephaistos

    Hephaistos Member

    Joined:
    Feb 8, 2007
    Posts:
    35
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Just perfect, great way to learn the basics with a nice step by step user friendly way. Definitely a unmatched beginners guide.
     
  17. jarlaxe

    jarlaxe Guest

    Referrals:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Well done for a great guide
     
  18. Grimskraper

    Grimskraper Guest

    Referrals:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Hey this is my first post on this site. I joined this site for the sole fact that this guide was sooooo helpful in using scar. I tried writing a script that would mine coal until the inventory was full, but I keep getin an error saying Line 3: [Error] (3:1): Semicolon (';') expected in script C:\Program Files\SCAR 2.03\Scripts\storeore.scar
    Below is what I have of my script so far:

    program StoreOre

    var
    x,y: Integer;

    const
    Coalcolor=2175795

    const
    Error=16711680

    program StoreOre

    var
    x,y: Integer;

    const
    Coalcolor=2175795

    const
    Error=16711680

    begin
    if(FindColor(x,y,Coalcolor,124,214,635,546))then
    Writeln('found coal');
    begin
    Wait(1000+random(2000));
    Findcolor(x,y,2175795,124,214,635,546)
    MoveMouseSmoothEX(x,y,o,o);
    Mouse(x,y,0,0,true);
    repeat
    until(InvFull);
    end;
    end.

    What I've attempted to make it do so far is mine the inventory full of coal, then repeat untill the inventory is full. I found the (Invfull) thing that was refered to in the guide on this page http://www.srl-forums.com/forum/tut-things-begginer-t7368.html?, which I found in the guide on this site.
    I was origionaly gonna tell it to repeat until it found the blue words saying "click here to continue" inbetween the coordinates below the map, which is what the Error=16711680 is.
    I know it doesn't actually look like it stores ore, but I haven't got to that part yet. I don't know exactly where I forgot the colon. If you guys could help me revise this, I'd appreciate it alot. Great guide!
     
  19. evil-oreo

    evil-oreo Member

    Joined:
    Dec 3, 2005
    Posts:
    40
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Thank you, this guide has helped me alot.
     
  20. WhoCares357

    WhoCares357 Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Code:
    program StoreOre;
    
    var
    x,y: Integer;
    
    const
    Coalcolor=2175795;
    
    const
    Error=16711680;
    
    begin
    if(FindColor(x,y,Coalcolor,124,214,635,546))then
    Writeln('found coal');
    begin
    Wait(1000+random(2000));
    Findcolor(x,y,2175795,124,214,635,546)
    MoveMouseSmoothEX(x,y,o,o);
    Mouse(x,y,0,0,true);
    repeat
    until(InvFull);
    end;
    end.
    You need semicolons after program name and constants. You forgot. It's a common mistake.
     
< help with simba macro | >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site