Results 1 to 7 of 7

Thread: Smithing Help

  1. #1
    Join Date
    Mar 2008
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Smithing Help

    How can I tell the script to wait unil the smelting bar screen appear when clicking the furnace?
    There is a SmeltingScreen function in smithing.scar but I cannot use it becoz I dont know how -.-
    Last edited by zealkctro; 03-25-2009 at 04:01 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try this:

    SCAR Code:
    function SmithingScreen2: Boolean;
    var
      T: Integer;
     
    begin
      MarkTime(T);
      repeat
        Wait(100+random(250));
        if SmithingScreen then
        begin
          Result := True;
          Break;
        end;
      until (TimeFromMark(T) >= 15000) or (not(LoggedIn));
    end;
    lol

  3. #3
    Join Date
    Nov 2008
    Location
    Belgium
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can simply use:
    Code:
    If(SmithingScreen) then
    {CODE HERE}
    end else
    {CODE HERE}
    If you take a look at the include then you see that SmithingScreen is a Boolean, which means that you can use it in an If Then statement.

    EDIT: posted at the same time as Quickmarch
    But i think my explination is a little easier to understand
    Last edited by impiwimpi; 03-25-2009 at 04:07 PM.

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Or

    SCAR Code:
    While Not SmithingScreen Do
      SleepAndMoveMouse(800 + Random(200));

  5. #5
    Join Date
    Mar 2008
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thx for all of your help.
    but I got another problem with banking...when I wrote openbankfast('akb'); It will just right click the banker and did nothing
    Last edited by zealkctro; 03-26-2009 at 01:38 AM.

  6. #6
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, Include {.include srl/srl/misc/smithing.scar} after including SRL.


  7. #7
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Or

    SCAR Code:
    While Not SmithingScreen Do
      SleepAndMoveMouse(800 + Random(200));
    *Cough* Endless loop
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

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
  •