[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.
[TUT]Unmatched Beginner's Guide to Scripting Scar
  1. Unread #21 - Feb 4, 2007 at 11:18 AM
  2. Jukka
    Joined:
    Nov 23, 2005
    Posts:
    244
    Referrals:
    0
    Sythe Gold:
    0

    Jukka Active Member

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    good tut! though i learned nothing :(
     
  3. Unread #22 - Feb 4, 2007 at 11:22 PM
  4. Flagrant0
    Joined:
    Jan 30, 2007
    Posts:
    145
    Referrals:
    1
    Sythe Gold:
    0

    Flagrant0 Active Member

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    ooh nice man, good job!!!!

    Scar User Educator pl0x!!!!!!
     
  5. Unread #23 - Feb 4, 2007 at 11:52 PM
  6. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Lol, don't have 5 tuts yet :p
     
  7. Unread #24 - Feb 5, 2007 at 12:00 AM
  8. Flagrant0
    Joined:
    Jan 30, 2007
    Posts:
    145
    Referrals:
    1
    Sythe Gold:
    0

    Flagrant0 Active Member

    [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!
     
  9. Unread #25 - Feb 8, 2007 at 4:50 PM
  10. joeman032000
    Joined:
    Nov 5, 2005
    Posts:
    358
    Referrals:
    0
    Sythe Gold:
    0

    joeman032000 Forum Addict
    Banned

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    wonderfull, really helps a lot
     
  11. Unread #26 - Feb 11, 2007 at 12:05 PM
  12. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    [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
     
  13. Unread #27 - Feb 11, 2007 at 2:19 PM
  14. nigerlet
    Referrals:
    1

    nigerlet Guest

    [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.
     
  15. Unread #28 - Feb 11, 2007 at 2:47 PM
  16. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Yes, they will both work.
     
  17. Unread #29 - Feb 12, 2007 at 7:45 AM
  18. the smith400
    Referrals:
    0

    the smith400 Guest

    [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
     
  19. Unread #30 - Feb 14, 2007 at 9:58 AM
  20. pker overkil
    Joined:
    Feb 11, 2007
    Posts:
    387
    Referrals:
    0
    Sythe Gold:
    0

    pker overkil Forum Addict

    [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
     
  21. Unread #31 - Feb 14, 2007 at 4:28 PM
  22. aero
    Referrals:
    0

    aero Guest

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Very nice Tut.
     
  23. Unread #32 - Feb 14, 2007 at 5:14 PM
  24. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    [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)
     
  25. Unread #33 - Feb 15, 2007 at 7:32 AM
  26. pker overkil
    Joined:
    Feb 11, 2007
    Posts:
    387
    Referrals:
    0
    Sythe Gold:
    0

    pker overkil Forum Addict

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    ooooooooh i get it thank you
     
  27. Unread #34 - Feb 22, 2007 at 4:43 AM
  28. M I H O L K
    Joined:
    Jan 25, 2007
    Posts:
    69
    Referrals:
    0
    Sythe Gold:
    0

    M I H O L K Member
    Banned

    [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!
     
  29. Unread #35 - Feb 23, 2007 at 4:46 PM
  30. Slafe1
    Referrals:
    0

    Slafe1 Guest

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Very good tutorial, I now understand the basics, thanks!
     
  31. Unread #36 - Mar 9, 2007 at 2:51 AM
  32. Hephaistos
    Joined:
    Feb 8, 2007
    Posts:
    35
    Referrals:
    0
    Sythe Gold:
    0

    Hephaistos Member

    [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.
     
  33. Unread #37 - Mar 9, 2007 at 5:19 AM
  34. jarlaxe
    Referrals:
    0

    jarlaxe Guest

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Well done for a great guide
     
  35. Unread #38 - Mar 9, 2007 at 9:58 PM
  36. Grimskraper
    Referrals:
    0

    Grimskraper Guest

    [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!
     
  37. Unread #39 - Mar 12, 2007 at 7:36 PM
  38. evil-oreo
    Joined:
    Dec 3, 2005
    Posts:
    40
    Referrals:
    0
    Sythe Gold:
    0

    evil-oreo Member

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Thank you, this guide has helped me alot.
     
  39. Unread #40 - Mar 12, 2007 at 9:22 PM
  40. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    [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 | >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site