Results 1 to 6 of 6

Thread: Were Now?

  1. #1
    Join Date
    Oct 2006
    Location
    Ohio
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Were Now?

    Hello, I'm new to the community and to scripting...

    I went through a lot of tutorials and I know how to make all the "Teaching Scripts" like the insanely easy "Hello World" and stuff, and I also know how to use Vars, Const, Procedures, Functions, and most everything...

    I don't just want to be a leecher
    I want to make my own Autominers, AutoCuters, and fletchers, whatever...

    Now here's my question:
    Were should I start when making scripts

    Should I take ideas from other peoples scripts (not code, but the ideas)
    or
    Start from scratch
    or
    Other

  2. #2
    Join Date
    Jun 2006
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i recomend starting from scratch

    good luck with scripting

  3. #3
    Join Date
    Oct 2006
    Location
    Ohio
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well could anyone tell me a simple(ish) script to make, and I'll try to make it, then you or someone else could tell me if I did it right\wrong... I know that takes other's time and I'm sorry, but I might turn out to be a good scripter, because I already knew the basic of C/C++ before I used Pascal

  4. #4
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    well i dont think theres anything wrong with using other peoples ideas, but if you want to make a unique script, thats up to you,

    its probably going to end up being something you've seen but know it would work for something else, like i got the idea from Fakawis goblin scheduler to make a autofighter which kills Draynor Jail Guards
    Join the Official SRL IRC channel. Learn how to Here.

  5. #5
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Look through the Massive Scar Learning Package. Read the tutorials and look at the example scripts. Then look in the free scripts section and look at the scripts. By then you should have plenty of ideas. Start off small (not as small as hello world) and work your way up.

  6. #6
    Join Date
    Oct 2006
    Location
    Ohio
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok here's the my first script, It's not the first one i've ever made, but the first one I actually think is cool and the first I actually put on the forums, it's SCAR not SRL....


    SCAR Code:
    {|/////////////////////////////////////////////////////////////////////|
    /|/////////////////////////////////////////////////////////////////////|
    /|////////////////////This Is My First Script//////////////////////////|
    /|//////////////////////////By: FrOgY//////////////////////////////////|
    /|/////////Draw a picture in Paint With Some Of These Colors///////////|
    /|////////////Dark Blue, Dark Yellow, Red, Black, or White/////////////|
    /|/////////Go To The Setup and Type the color you drew with////////////|
    /|////////Assign Scar to the Paint Window, then run the Script/////////|
    /|//The Script Will Erase or Draw Over all of the color you drew with//|
    /|/////////////////////////////////////////////////////////////////////|
    /|///////////////Make The Image At Least 10x10/////////////////////////|
    /|///////Use The Large Brush Tool or Eraser not pencil/////////////////|
    /|/////////////////////////////////////////////////////////////////////|
    /|////Start the Mouse By where you want it to start on the picture/////|
    /|//////////////////and use ctrl+alt+s to start////////////////////////|
    /|/////////////////////////////////////////////////////////////////////|}


    program New;
    var x,y,w,h: integer;

    const
    blue = 16711680;
    red = 255;
    yellow = 65535;
    black = 0;
    white = 16777215;

    // Setup Section
    color= blue; //type One Of Above Colors Here
    // End Of Setup

    procedure ClickColor;
     begin
      FindColorSpiral(x,y,color,3,3,w-1,h-1);
      MoveMouseSmooth(x,y);
      ClickMouse(x,y,true);
     end;

    begin
    GetClientDimensions(w,h);
    GetMousePos(x,y);
    repeat
    ClickColor;
    until(false)
    end.

    I actually had to debug the code many times to get it to work good

    Notice the
    FindColorSpiral(x,y,color,3,3,w-1,h-1);

    w and h are the client max dimensions, but since the move mouse jumped out a little to far sometimes the script would try to erase the frame and the Paint program itself, but by putting -1 on the xe and ye it stopped it from doing so...

    This script takes a while sometimes (especially if your using it as an inverter that changes more than 50% of the color to another one)

    I really like using this with mazes of Blue that are on a different color background, it will follow the lines if they are made with a pencil...

    Note: You can draw stuff with the pencil, you just cant erase with it
    Note: Stop the program with Ctrl+Alt+S
    Note: The Drawing starts wherever your mouse is when you hit Ctrl+Alt+R

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •