Results 1 to 9 of 9

Thread: Need help with my first script (Its a wine maker)

  1. #1
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with my first script (Its a wine maker)

    SCAR Code:
    {Name : Wine Maker}
          {Author : JAHURO}
          {Description : Makes and drinks wine in cook's guild}
          {Version : 0.3}
          {Date : 28/1/2007}
          {Contact : [email]Jahuro24@hotmail.com[/email]}
         
          {Special thanks to : Pentti (Helping me with this script)
         
          {VBright}

          {Highest angle of view}
          {Start inside the cooks guild, in front of the door}
          {Nothing in inventory}
          {Make the client face north}
          {Remember you need the chefs hat to enter}

    program Winemaker;
    begin
    Const
    stairs=4669512;
    secondstairs=2246496;
    jug=8290184;
    grapes=7213714;
    sink=6770760;

    Writeln('{~~~~~~~~~~~~~~~~~~~~~~~~}');
    Writeln('{~~Wine Maker By Jahuro~~}');
    Writeln('{~~~~~~~~~~~~~~~~~~~~~~~~}');

    wait(5000);

    Procedure clickstairs;
    Begin
    Findcolor(x,y,stairs,0,0,500,400)
    MouseC(x,y,1)
    wait(3000);
    end;

    Procedure clicksecondstairs;
    Begin
    Findcolor(x,y,secondstairs,0,0,500,400)
    MouseC(x,y,1)
    wait(3000);
    end;

    Procedure getgrapes;
    Begin
    Findcolor(x,y,grapes,0,0,500,400)
    MouseC(x,y,1)
    wait(1000);
    end;

    Procedure getjug;
    Begin
    Findcolor(x,y,jug,0,0,500,400)
    MouseC(x,y,1)
    wait(1000);
    end;

    Procedure clicksecondstairs;
    Begin
    Findcolor(x,y,secondstairs,0,0,500,400)
    MouseC(x,y,1)
    wait(3000);
    end;

    /Procedure clickstairs;
    Begin
    Findcolor(x,y,stairs,0,0,500,400)
    MouseC(x,y,1)
    wait(3000);
    end;

    // Fill Jug
    wait(2000);
    // Use Jug with Grapes
    wait(1000);
    // Drop all

    end.
    end.

  2. #2
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Btw, I forgot to say thanks.

  3. #3
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well first at all in function FindColor(var x,y: Integer; color, xs, ys, xe, ye: Integer): Boolean; you have put your x and y coordinates right and color right, but these xs, ys, xe, ye... these are like coordinates of box where it finds the color, xs and xy is top left coordinates and xe and ye is bottom right coordinates, it will find color in box you set.

    SCAR Code:
    -------------------------------------------------|
    |                                                 |
    |                                                 |
    |xs,xy.----------------                           |
    |     | Fins color    |                           |
    |     | in this       |                           |
    |     |   area        |                           |
    |     |               |                           |
    |     ----------------.xe,ye                      |
    |                                                 |
    |                                                 |
    |                                                 |
    |-------------------------------------------------|

  4. #4
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry i dont understand. Can you please fix it for me ??

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    If you are finding these colors in runescapes MainScreen then you put there MainScreen edge coords, something like this:
    SCAR Code:
    FindColor(x,y,color,0,0,500,400)

  6. #6
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks. Now would you be able to help me with the adding grapes to the jug?

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

    Default

    Use SRL or you will get banned.

    I recommend you try non RS scripts first to get comfortable with the commands. See my FAQ (link in sig)

    For clicking items in inventory, you can use DTMs, and commands in inventory.scar. I'll prolly write a tut on inventory by the time you're ready for RS scripts.

  8. #8
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks . Im might try to script for neopets first lol.

  9. #9
    ronny.m.p Guest

    Default

    lolz thats what i was doing when i was learning to script...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bow Maker in GE - First Script
    By RuneItBack2Front in forum First Scripts
    Replies: 6
    Last Post: 12-06-2008, 06:14 AM
  2. ~Need a wine maker and drinker~
    By Johura in forum RS3 Outdated / Broken Scripts
    Replies: 11
    Last Post: 02-21-2007, 02:19 AM

Posting Permissions

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