Results 1 to 4 of 4

Thread: Cant Find Whats wrong with procedure.

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

    Default Cant Find Whats wrong with procedure.

    Here it is, It supposed to look for the logs in inventory and if the logs Arnt there then its supposed to withdraw some. But it never finds the logs, gos and banks and withdraws more, even though theres already some in the inventory.


    SCAR Code:
    Procedure Fletching;
    begin
        Gametab(4);
        If (not(FindDTM(Invlog,x,y,0,0,516,338)))then
        begin
          Writeln(' @@ Didnt Withdraw Any Logs Repeating @@');
          Banking;
          end;
        if FindDTM(Wrathlog,x,y,552,207,737,465)then
        begin
          Mouse(x,y,1,1,true);
          Writeln('@@ Found Wrath Log @@')
        IF FindDTM(Knife,x,y,540,191,737,465) THEN
          Writeln('@@ Found Knife @@');
          Mouse(x,y,1,1,true)
          Wait(2020 +random(234));
          Mouse(267,418,1,1,false)
          wait(1242 +random(987))
          mouse(244,477,0,0,true)
          Wait(1895 +random(534))
          typesend('27')
          Writeln('@@ Fletching Logs @@')
          Wait(52313 +random(2174));
          FreeDTM(knife)
          FreeDTM(Wrathlog)
          FreeDTM(invlog)
      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.'

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

    Default

    well, you free the dtm's each time you do it, so unless you call them back(i don't know i can't see the script) before you do it, the dtms aren't anything, so, what i would do is take a procedure that calls all the DTM's and call it on each procedure that uses those DTM's, and free at the end.

    if it's not that, idk
    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
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    (not(FindDTM(Invlog,x,y,0,0,516,338)))

    "0,0,516,338" -Your looking in the wrong spot. Thats the main screen and doesn't even include your inventory.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  4. #4
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Just to add onto Narcle's - use MIX1, MIY1, MIX2, MIY2 for searching your inventory - built in SRL values for the inventory. Also, you should probably check the locations of your other 2 dtm's and update them accordingly just to make sure they search the right area.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Whats wrong in this procedure?
    By Dracody in forum OSR Help
    Replies: 4
    Last Post: 06-12-2008, 06:29 AM
  2. whats wrong..
    By Maxine in forum OSR Help
    Replies: 6
    Last Post: 05-09-2007, 02:15 PM
  3. Replies: 8
    Last Post: 03-23-2007, 04:20 PM
  4. Replies: 2
    Last Post: 10-20-2006, 10:02 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
  •