Results 1 to 13 of 13

Thread: LongBow Fletcher Problems

  1. #1
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default LongBow Fletcher Problems

    hey. ive been workin non stop on an any long bow fletcher but right now, despite the amount of times i redo my DTM, SCAR doesnt seem to find the log. ive tried to make countless failsafes until it DOES find it, but it seems to just skip the WHOLE step entirely.

    if u want to run the script and see the problem, be my guest =). start on low detail 32 BIT logged in, WITH KNIFE IN INV AND CHOICE OF LOG AT THE TOP PORTION OF YOUR BANK. it will do bankpins =). choose your bank al kharid= 'akb' varrock west bank='vwb' etc.

    please if u have advice private message me so i can give u my MSN messenger or AIM.

  2. #2
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    replace DeclareDTM's with this
    SCAR Code:
    procedure DeclareDTMs;

    begin
      case lowercase(Whichlog) of
      'willow' : begin
                  Willow := DTMFromString('78DA6314646060E06140012EB6920CBF80342' +
                    '310FF0702464520839F010D302291405A0648701050C30E24D809' +
                    'A86106128204D470020911FC6A006C490652');
                 LogName:= Willow;
                 end;
      'yew' : begin
                Yew := DTMFromString('78DA6314666060E0664001091E3C0CBF80342' +
                '310FF0702463920838B010D302291405A0048B01050C30A247809' +
                'A8E10412A204D4C8020911FC6A0079BD0677');
                LogName:= Yew;
              end;
      'maple' : begin
                   Maple := DTMFromString('78DA6314606060E0614001E1D6DC0CBF80342' +
                   '310FF07024649204398010D302291409A8D0835CC40828F801A19' +
                   '20C144400D2F61350067340644');
                   LogName:= Maple;
                end;
      'oak' : begin
                Oak := DTMFromString('78DA63E4636060E062400105E1260CBF80342' +
                '310FF0702460920838D010D302291409A054830115003921722A0' +
                '06E41E11026A6480043F7E35009D2006A0');
                LogName:= Oak;
              end;
      end;
         
         Knife := DTMFromString('78DA63E46760601063400191B6DC0CBF80342' +
           '310FF07024651204390010D302291405A02487013502302243808' +
           'A8110212BC04D470020959FC6A007ABA0678');
    end;
    what your problem was: you had logname not getting declared at the right time, what wouldve worked would be
    SCAR Code:
    if whichlogs = 'blah' then
    begin
      dtm:= DTMfromstring('blah')
      logname := blah;
    end;
    for each..so it would only call the log if whichlogs is that name, instead of doing all logname := which would make it the last one(oak) each time.
    i also added the case statement, which makes it look more organized. and put lowercase(whichlog) so it wouldn't be case sensitive.
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  3. #3
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    ty so much, but wat exactly did u mean by case sensitive with the WhichLog? does it really matter wat case the variables or consts are in?

  4. #4
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by freakymonkey View Post
    ty so much, but wat exactly did u mean by case sensitive with the WhichLog? does it really matter wat case the variables or consts are in?
    generally, yes, but lowercase(string) returns the string in there, with all the letters lowercased. which, makes it not case-sensitive

    Edit: well it is still case-sensitive, but not for the user, you need to make sure the case statement is in lowercase also.
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  5. #5
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    so in the consts section they should put it in lowercase or uppercase? or will this new addition make it so it doesnt matter?

    BTW it worked like a charm =) thanks for the help

  6. #6
    Join Date
    Dec 2006
    Location
    SC
    Posts
    692
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In the example drizzt gave you, it converts WhichLog into lower case. This way, it doesn't matter what the user inputs. Either way, it will convert it to lower case and then check it.

    PS He uses lowercase(WhichLog) when starting the case to do this.

  7. #7
    Join Date
    Mar 2007
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Procedure FindWillow; But isnt this any log..

    Kinda Suspicious

    Also, for this procedure if it dosent find the log what happens to the script?

    The script is just going to keep searching


    SCAR Code:
    procedure FindWillow;

    begin
     if(not(FindDTM(LogName,x,y,23,57,478,303)))then
     begin
      repeat
       FindDTM(LogName,x,y,23,57,478,303);
      until FindDTM(LogName,x,y,23,57,478,303);
       Mouse(x,y,1,1,false);
       Wait(2000+random(200));
       ChooseOption('draw X');
       Wait(2000+random(100));
       TypeSend('27');
       Wait(2000+random(346));
       CloseBank;
       SetupFletching;
     end;
    end;


    Someone: 'Who the hell is TooManySitUps?'

    Boreas: 'Switch the first and last letter of my name, what do you get?'

    Someone: 'Um, SoreAb?'

    Boreas: 'And how do you get that?'

    Someone: 'From Too Many Sit Ups!! Haha, Boreas you are so clever!'

    Boreas: 'Ya he's like my evil twin that takes over when I'm being really sarcastic, or playing devil's advocate.'

  8. #8
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    ya i should fix that put an end/else then Exit; TerminateScript; or something thanks for pointin that out.

  9. #9
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    hey is there such a function that counts a certain amount of stacked or unstacked bitmaps OR DTMS in a certain area?

  10. #10
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well, the one in SRL is outdated and doesn't work, i have one for counting DTM's, and could be easily transferred to bitmaps, and could also help you with counting stacked
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  11. #11
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    thanks id really need help with that =) because right now im using like

    Wait(50000+random(300)); for the wait between start fletching and banking.... so i wanted to find if there was a way to count the stacked DTMs for the log in the bank and then if there was say only 4 willows left, just cut those 4 willows, bank them, then terminate the script. also i wanted to make a WAY more accurate progress report. right now after each fletching process is done i've just done logs:= logs+27. just a round # like that than done an IntToStr of the number that comes up in the progress report even though the script may have only cut about 3 or 4!

    Also i have MANY glitchy procedures i needa work out

  12. #12
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmm...do you have MSN? if so, add drizzt.pwns@hotmail.com and i'll help as much as i can
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  13. #13
    Join Date
    Jan 2008
    Location
    Stanford, CA
    Posts
    329
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    kk i added u mines vnair611@gmail.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Any Longbow Fletcher
    By Richard in forum RS3 Outdated / Broken Scripts
    Replies: 6
    Last Post: 04-05-2008, 12:44 PM
  2. LongBow Fletcher Problems 2 XD
    By FreakyMonkey in forum OSR Help
    Replies: 5
    Last Post: 03-25-2008, 09:16 AM
  3. Longbow Fletcher
    By Mugger in forum First Scripts
    Replies: 25
    Last Post: 03-04-2008, 09:04 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
  •