[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 #41 - Mar 14, 2007 at 9:35 PM
  2. JESUS45
    Joined:
    Jul 23, 2006
    Posts:
    37
    Referrals:
    0
    Sythe Gold:
    0

    JESUS45 Member

    [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.
     
  3. Unread #42 - Mar 15, 2007 at 10:13 AM
  4. Sean
    Joined:
    May 26, 2005
    Posts:
    1,029
    Referrals:
    3
    Sythe Gold:
    10

    Sean Guru
    Banned

    [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?
     
  5. Unread #43 - Mar 15, 2007 at 4:58 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

    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.
     
  7. Unread #44 - Mar 17, 2007 at 7:04 AM
  8. Sythe_King
    Joined:
    Mar 15, 2007
    Posts:
    78
    Referrals:
    0
    Sythe Gold:
    0

    Sythe_King Member
    Banned

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Good guide, vouch
     
  9. Unread #45 - Mar 19, 2007 at 8:38 PM
  10. Grimskraper
    Referrals:
    0

    Grimskraper Guest

    [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" .
     
  11. Unread #46 - Mar 19, 2007 at 10:43 PM
  12. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    [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.
     
  13. Unread #47 - Mar 21, 2007 at 7:04 PM
  14. Fate1
    Joined:
    Apr 21, 2005
    Posts:
    773
    Referrals:
    2
    Sythe Gold:
    5

    Fate1 Apprentice
    Banned

    [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.
     
  15. Unread #48 - Mar 23, 2007 at 5:18 PM
  16. Sinep
    Joined:
    Mar 21, 2007
    Posts:
    729
    Referrals:
    0
    Sythe Gold:
    0

    Sinep Apprentice
    Banned

    [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!!!!!!!
     
  17. Unread #49 - Mar 25, 2007 at 9:34 PM
  18. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    [TUT]Unmatched Beginner's Guide to Scripting Scar

  19. Unread #50 - Mar 29, 2007 at 3:42 AM
  20. assboy
    Referrals:
    0

    assboy Guest

    [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.
     
  21. Unread #51 - Mar 31, 2007 at 5:43 AM
  22. Mafia Coder
    Joined:
    Feb 25, 2007
    Posts:
    263
    Referrals:
    0
    Sythe Gold:
    0

    Mafia Coder Forum Addict
    Banned

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Good Job, even though i dont play RS anymore i still think this is pretty good ;)
     
  23. Unread #52 - Mar 31, 2007 at 8:08 AM
  24. gimme b0tzz
    Referrals:
    0

    gimme b0tzz Guest

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    ehh im sorry i dont rly foloow it
     
  25. Unread #53 - Mar 31, 2007 at 8:33 AM
  26. 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

    For each "begin" you have, you have to have an "end".
     
  27. Unread #54 - Mar 31, 2007 at 11:25 AM
  28. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Didn't see that request. :( Sorry.
     
  29. Unread #55 - Apr 4, 2007 at 2:50 PM
  30. neto
    Joined:
    Apr 2, 2007
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0

    neto Member

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    does someone know?
     
  31. Unread #56 - Apr 12, 2007 at 7:48 AM
  32. Wilfred
    Joined:
    Mar 30, 2007
    Posts:
    898
    Referrals:
    10
    Sythe Gold:
    8

    Wilfred Apprentice

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    Whoa, nice guide. Extremely well detailed and hopefully I'll start making some scripts soon.
     
  33. Unread #57 - Apr 12, 2007 at 10:22 PM
  34. 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 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. . .
     
  35. Unread #58 - Apr 12, 2007 at 10:40 PM
  36. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    [TUT]Unmatched Beginner's Guide to Scripting Scar

  37. Unread #59 - Apr 14, 2007 at 11:06 PM
  38. letzgokill
    Joined:
    Jan 26, 2007
    Posts:
    1,136
    Referrals:
    1
    Sythe Gold:
    0

    letzgokill Guru
    Banned

    [TUT]Unmatched Beginner's Guide to Scripting Scar

    this was very helpful thanks
     
  39. Unread #60 - May 7, 2007 at 9:43 AM
  40. Flamedog
    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

    Flamedog Guru
    $25 USD Donor New

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

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


 
 
Adblock breaks this site