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. JESUS45

    JESUS45 Member

    Joined:
    Jul 23, 2006
    Posts:
    37
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    very very nice I knew only a little about scar but this makes it much mroe clear. I hope you see some of my scripts in the future. Also it was very well written. I had no problems with spelling errors and such. Thanks very much :) . Keep it real.
     
  2. Sean

    Sean Guru
    Banned

    Joined:
    May 26, 2005
    Posts:
    1,029
    Referrals:
    3
    Sythe Gold:
    10
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Hmm i have a question, If i wanted to get a image (Object) for the bitmap

    Would i just Screen shot runescape, come the section and paste it on a black background?
     
  3. WhoCares357

    WhoCares357 Forum Addict

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

    Yes, but try to make it as small as possible. Eliminate all the colors you don't need and shrink the background to just fit the picture.
     
  4. Sythe_King

    Sythe_King Member
    Banned

    Joined:
    Mar 15, 2007
    Posts:
    78
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Good guide, vouch
     
  5. Grimskraper

    Grimskraper Guest

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

    I'm still not sure as how to get my mouse to move to a certain color. I know how to make my mouse move to a certain coordinate, but not how to move to a certain color. Right now I have this

    begin
    Wait(1000+random(2000));
    Findcolor(x,y,2175795,124,214,635,546)
    MoveMouseSmoothEX(x,y,0,0);
    Mouse(x,y,0,0,true);
    repeat

    (thats just a fraction) but is there something wrong with that part of my script? When I try to run it, it says "Failed when compiling Line 18: [Error] (18:27): Invalid number of parameters in script" .
     
  6. WhoCares357

    WhoCares357 Forum Addict

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

    I'm guessing that you are using SRL. If you are, then get rid of MoveMouseSmoothEx.

    Code:
    program ClickColor;
    
    {.include SRL\SRL.scar}
    
    var
      x, y: Integer;
    
    begin
     if FindColor(x, y, color, 124, 635, 546) then
     begin
      Mouse(x, y, 0, 0, true);
     end;
    end.
    The error in your script is from MoveMouseSmoothEx. There are many more integers involved in the procedure.

    You only have x, y, minsleeptime, and maxsleeptime.
     
  7. Fate1

    Fate1 Apprentice
    Banned

    Joined:
    Apr 21, 2005
    Posts:
    773
    Referrals:
    2
    Sythe Gold:
    5
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Alright I took about 1 hour to read this whole guide. It is amazing. I never knew how to even write a script till now! I read over the functions over and over trying to remember them. I finally made a simple and easy login, but hey im a nooby scripter ^_^. It will click existing user type in username and pasword and logs you in. i know its nothing but it is a lot for me. This guide helped me like hell. I love it.
     
  8. Sinep

    Sinep Apprentice
    Banned

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

    Awesome tut!!! It took me about 3 hours to try almost every example (besides the bitmap examples, just to lazy to do those and as you said, try to avoid them lol). I now understand alot about scar but I'm pretty sure theres more then just that :p

    Thanks again!!!!!!!
     
  9. WhoCares357

    WhoCares357 Forum Addict

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

  10. assboy

    assboy Guest

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

    ty for the guide it helps
    i just got 1 prob,
    i read the guide and started to make it wookcut trees and bank but everytime i go to see if it works i add end. and it comes up with identifier expetct here is the script can u try it and fish it and send to [email protected]

    ---------------------------------
    here it is
    ---------------------------------


    program randomwoodctter;

    var
    x,y: integer;

    const
    bankcolour= 3127755;
    rockcolors= 2303520;
    treemapcolors= 18449;

    begin
    if(findcolor(x,y,rockcolors,582,11,758,157)) then
    begin
    movemousesmoothex(x,y +random(0),20,40,45,25,20);
    wait(1000+random(500));
    clickmouse (x,y,true);

    begin
    if(findcolor(x,y,treemapcolors,582,11,758,157)) then
    begin
    movemousesmoothex(x,y +random(0),20,40,45,25,20);
    wait(1000+random(500));
    clickmouse (x,y,true);
    end else
    writeln('did not find rockcolor');
    end.
     
  11. Mafia Coder

    Mafia Coder Forum Addict
    Banned

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

    Good Job, even though i dont play RS anymore i still think this is pretty good ;)
     
  12. gimme b0tzz

    gimme b0tzz Guest

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

    ehh im sorry i dont rly foloow it
     
  13. 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

    For each "begin" you have, you have to have an "end".
     
  14. WhoCares357

    WhoCares357 Forum Addict

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

    Didn't see that request. :( Sorry.
     
  15. neto

    neto Member

    Joined:
    Apr 2, 2007
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    does someone know?
     
  16. Wilfred

    Wilfred Apprentice

    Joined:
    Mar 30, 2007
    Posts:
    898
    Referrals:
    10
    Sythe Gold:
    8
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Whoa, nice guide. Extremely well detailed and hopefully I'll start making some scripts soon.
     
  17. 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 understand DTMs (opposed to BMPs), could you enlighten me? :D

    -- Nevermind, I didn't realise there was a "DTM Editor" option. It's all so much clearer now. . .
     
  18. WhoCares357

    WhoCares357 Forum Addict

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

  19. letzgokill

    letzgokill Guru
    Banned

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

    this was very helpful thanks
     
  20. Flamedog

    Flamedog Guru
    $25 USD Donor New

    Joined:
    Mar 8, 2007
    Posts:
    1,535
    Referrals:
    0
    Sythe Gold:
    1,269
    Discord Unique ID:
    226029838161412096
    Two Factor Authentication User Supporting Business Christmas 2015 Lawrence
    [TUT]Unmatched Beginner's Guide to Scripting Scar

    This guide is really AWSOME!!! I always wanted to script something myself, well, i made a bit of a auto-miner. I won't use it because it's a bit too simple.

    But there's still 1 thing that's quite foggy, the 'var' with the x,y: integer;

    I don't get that really well, I hope you can help me out, otherwise I search the site a bit.

    Thx for making me better with SCAR
     
< help with simba macro | >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site