Results 1 to 5 of 5

Thread: Making an herbalist script

  1. #1
    Join Date
    Oct 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Making an herbalist script

    Basically, I've read up a LOT on how to make SCAR scripts, read up on DTMS and Bitmaps, even looked at some includes...

    Now what I want to do is make an herbalist script that sits in the bank, withdraws the vials, herbs, and ingredients, closes bank, makes the potions, and deposits them.

    I think I have the open bank and bank failsafe ok.

    Now, how do I make it withdraw the 3 ingredients, and what procedures would I use for it to make the potions?

    Please please PLEASE someone help me out here! I really want this script made!
    So far I have this:




    SCAR Code:
    program GlovesHerbalist;
    begin

    procedure OpenBank;
    var
      time: Integer;
    begin
      MarkTime(time);
      repeat;
        if (not(Loggedin)) then  break;
        OpenBankQuiet('lb');
      until(BankScreen or (TimeFromMark(time) > 120000));
    end;

    procedure Bank;
    var
      Potions, time: Integer;

    begin
      Guamleaf := BitmapFromString2(False, 'a64B7178DA8D8D510A0421' +   /
           '0C43AF5493D6EAA7237AFF236DEBECC7C0C0B2080F79265144647' +
           '9404609708C602D089AAEE46A41B53495334DAB4134CDBB1DB3D3' +
           'D48C883A836E3B8DE7A6E36498C6FBD9B92C17CE2FB29B5D3A982' +
           'D9142811C1DF732E31013B3AC2F3B7AE9CFA46D9DB4DF5D8280DC' +
           '7C2E54E8A6BFBB11643CBEBA741AECF6D50C6C7F754FEBC90FFC2' +
           '');

      MarkTime(time);
      repeat
        if (not(Loggedin)) then  break;
        OpenBankQuiet('lb')
      until(BankScreen or (TimeFromMark(time) > 120000));
      if Bankscreen then
      end;
      FreeBitMap(Guamleaf);
    end;

    begin

    procedure Withdraw(1, 1, 9: Integer);
    var
      rx, ry: Integer;
    begin
      rx := 35 + (col * 49);
      ry := 27 + (row * 38);
      if (BankScreen) then
      begin
        if (Amount = 1) then
          Mouse(rx, ry, 0, 0, True)
        else
        begin
          Mouse(rx, ry, 0, 0, False);
          if (Amount = 5) or (Amount = 10) then
            ChooseOption('Withdraw ' +IntToStr(Amount))
          else if (Amount = 0) then
            ChooseOption('Withdraw All')
          else
          begin
            ChooseOption('Withdraw X');
            Wait(1000 + Random(100));
            TypeSend(IntToStr(Amount) + Chr(13));
          end;
        end;
      end;
    end;

    begin
      SetupSRL;
      Openbank;
      Bank
      Withdraw
      until false
    end.

  2. #2
    Join Date
    Mar 2007
    Posts
    478
    Mentioned
    4 Post(s)
    Quoted
    4 Post(s)

    Default

    Instead of using bitmaps have you tried using DTMs? There is also a function that will search for the word like "Tree" when the mouse hovers over it. I will try to find it, that may help you out some. I see some good potential in this script.

    EDIT: This is what I was talking about, instead of "hop" use "guam" or "vial", you will need to change a couple things to make it work for your script. But This should help instead of using DTMs and Bitmaps to find things. You could also have them place the herbs and vials in the first 2 bank slots and use some form of clickmouse to withdraw 14 of each.
    if FindObj (x, y, 'hop', TreeColor, 30) then
    begin
    Mouse(x, y, 0, 0, False);
    if ChooseOption('hop') then
    Back from the dead.....

  3. #3
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    You have begins in totally wrong places =/

    I made a herblore include for SRL, but I don't think I will release it for a single person's needs, propably after couple days I'll make a poll to release it or not.

    Note: It has no functions to make pots for you, its mostly covering the herb part.

  4. #4
    Join Date
    Oct 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you for your feedback, but I'd like support on fixing the problems (and I already know what I'm lacking :-p thats why im asking how to do it! :-P)

  5. #5
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Are you going to use bitmaps or DTMs for the herbs? I don't have a member account so I don't know what herbs look like or if they can or can't be easily DTM'd.
    Temporarily inactive.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Making a php script
    By Zyt3x in forum OSR Help
    Replies: 24
    Last Post: 09-04-2008, 08:53 PM
  2. Making first script need some help
    By AC Lova123 in forum OSR Help
    Replies: 4
    Last Post: 05-10-2008, 12:33 PM
  3. Herbalist Update
    By Ciesson in forum RS has been updated.
    Replies: 3
    Last Post: 09-10-2007, 05:55 PM

Posting Permissions

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