Results 1 to 5 of 5

Thread: A few Scripting questions (please help)

  1. #1
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default A few Scripting questions (please help)

    1. There is the SearchBank option, but how can i take out the item found in the search?
    2. I want to make a procedure that will use a Chisel on an Uncut Gem in the inventory and will choose the "Cut All" option. It will cut 27 Uncut Gems. How do i do that?

    Thats it for now
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Heres something i quickly made for you..
    If you have the bank window open, that will take out the max uncuts it can, and then it will click the chisel, an then click the gem, i'm not sure what happens when you do that, whether a menu pops up or whether you need to select how many gems you cut, etc.. but i'm sure you can continue from there?

    SCAR Code:
    program New;
    {.include /SRL/SRL.SCAR}
    const
      UncutGemColor    = 12345;
      ChiselColor      = 12345;
    var
      x, y, Ai: Integer;
    begin
      repeat
        if FindColorTolerance(x, y, UncutGemColor, 0, 0, 514, 336, 5) then   // Find the gem
        Inc(Ai);                                  // Increases the var Ai;
        wait(1000 +random(500));
      until FindColorTolerance(x, y, UncutGemColor, 0, 0, 514, 336, 5) or (Ai > 10);   // repeats until it finds the gem,
      begin                                                                    // or until Ai is greater than 10.
        MMouse(x, y, 2, 2);
        if IsUpText('ncut') then  // Searches for "ncut" in the top left of the RS screen
        begin
          Mouse(x, y, 0, 0, false);
          wait(500 +random(250));     // waits a bit, because SCAR is faster than RS
          ChooseOption('All');
          wait(250 +random(250));
          CloseBank;
          wait(250 +random(250));
          GameTab(4);                 // opens inventory
          if FindColorTolerance(x, y, ChiselColor, 0, 0, 514, 336, 5) then
          begin
            MMouse(x, y, 2, 2);
            Mouse(x, y, 0, 0, true);
          end;
          if FindColorTolerance(x, y, UncutGemColor, 0, 0, 757, 480, 5) then
          begin
            MMouse(x, y, 2, 2);
            if IsUpText('ncut') then
            begin
              Mouse(x, y, 0, 0, true);
            end;
          end;
        end;
      end;
    end.

  4. #4
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm well i would like to make the procedure myself for now ^_^
    U know im trying to make my first REAL script so yeah

    So i thought if maybe someone just would make a new search Function that would search for an item and then withdraw an amount if items in the 1st row in the 1st collumn. I'm not an advanced scripter so i don't know how to do that

    EDIT: Hmm the problem with the Withdraw function is that it used FixBankTab and exited from the search. So i copied the function in my script and removed the FixBankTab. This might work then.

    IT WORKED
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

  5. #5
    Join Date
    Nov 2007
    Posts
    184
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i suggest u to use DTMs to find the item in the bank.make sure that the subpoints are all on the black outline of the object.Its quite simple and there are many guides out there to help u with it.

    Option 2 is to withdraw X amt of the item in a certain slot(check bank.scar for exact function).

    U can use method 1 then use method 2 as a failsafe or viceversa.

    hope i helped.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My questions of scripting
    By vamos124 in forum OSR Help
    Replies: 9
    Last Post: 11-05-2008, 05:10 PM
  2. A couple of scripting questions.
    By Buckleyindahouse in forum OSR Help
    Replies: 3
    Last Post: 12-01-2006, 06:04 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
  •