Results 1 to 4 of 4

Thread: Tu runner error it eats the bread!

  1. #1
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Tu runner error it eats the bread!

    Okay this is the part that makes the bread, it works great but somehow when its done making the bread when the bread pops up because it is out of the range it directly eats it please i need help :s

    SCAR Code:
    MarkTime(WaitTime);
      Repeat
        MarkTime(MaxTime);
        If GameTab(13) or FindItem('Bread',X,Y,True) Then Break;
        Repeat
          If FindItem('dough',X,Y,True) Then Break;
          If FindItem('Bread',X,Y,True) Then Break;
          If FindItem('flour',X,Y,True) Then Mouse(X,Y,0,0,True);
          If FindItem('bucket',X,Y,True) Then Mouse(X,Y,0,0,True);
          Wait(100 + Random(500));
          If Not FindItem('dough',X,Y,True) Then Wait(500 + Random(500));
        Until (TimeFromMark(MaxTime) > 5000) Or FindItem('dough',X,Y,True);
        If Not FindItem('dough',X,Y,True) Then Logout;
        If Not LoggedIn Then Exit;
        If FindItem('dough',X,Y,True) Then Mouse(X, Y, 0, 0, True);
        If FindMsTpa(X,Y,1715398,10,10,'ange',True,True) Then Mouse(X,Y,0,0,True);
        Wait(4000+random(500));
      Until (TimeFromMark(WaitTime) > 30000) Or GameTab(13) Or FindItem('Bread',X,Y,True);

      If Not FindItem('dough',X,Y,True) And Not FindItem('Flour',X,Y,True) And Not FindItem('Bread',X,Y,True) Then
      Begin
        If FindMMYellowArrowTpa(X,Y) Then MouseFlag(X, Y, 2, 2);
        If Not TalkToGuide(16382458,'aster',True) Then
        Begin
          If FindMMYellowArrowTpa(X,Y) Then MouseFlag(X, Y, 2, 2);
          If Not TalkToGuide(16382458,'aster',True) Then Logout;
          If Not LoggedIn Then Exit;
        End;
        If FC2C Then C2C(60000) Else If FCC2C Then CC2C(60000);
        C2CSpecial := BitmapFromString(49, 2, 'beNo7vOjKwTkMDP+vHAY' +
           'xoAjIPrwIJAgTwcO+uG/BxX2z0cTxa0G2C4uyw4tuHJ2HZhoeM4G2' +
           'g50xG4gu7J0GcRJQ/PKBaSQ4CcnvyC6EsgHpI7yT');
        If FindBitmapToleranceIn(C2CSpecial,X,Y,MCX1,MCY1,MCX2,MCY2,25) then Mouse(X,Y,30,3,True);
        FreeBitMap(C2CSpecial);
        If FC2C Then C2C(60000) Else If FCC2C Then CC2C(60000);
       End;
       
      MarkTime(WaitTime);
      Repeat
        MarkTime(MaxTime);
        If GameTab(13) or FindItem('Bread',X,Y,True) Then Break;
        Repeat
          If FindItem('dough',X,Y,True) Then Break;
          If FindItem('Bread',X,Y,True) Then Break;
          If FindItem('flour',X,Y,True) Then Mouse(X,Y,0,0,True);
          If FindItem('bucket',X,Y,True) Then Mouse(X,Y,0,0,True);
          Wait(100 + Random(500));
          If Not FindItem('dough',X,Y,True) Then Wait(500 + Random(500));
        Until (TimeFromMark(MaxTime) > 5000) Or FindItem('dough',X,Y,True);
        If Not FindItem('dough',X,Y,True) Then Logout;
        If Not LoggedIn Then Exit;
        If FindItem('dough',X,Y,True) Then Mouse(X, Y, 0, 0, True);
        If FindMsTpa(X,Y,1715398,10,10,'ange',True,True) Then Mouse(X,Y,0,0,True);
        Wait(4000+random(500));
      Until (TimeFromMark(WaitTime) > 30000) Or GameTab(13) Or FindItem('Bread',X,Y,True);
    ~Hermen

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

    Default

    I think replace 'Break' with exit Becuase I think that Brek means that it will Break out of that loop, Instead maybe use Exit ?

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    I think replace 'Break' with exit Becuase I think that Brek means that it will Break out of that loop, Instead maybe use Exit ?
    Thanks for help but no it breaks and then it will do if finditem dough shit then mouse
    and then it finds the range + clicks that is cooking...
    ~Hermen

  4. #4
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Use different vars for different stuff (x,y, to x1,y1, etc). You probably have a var colliding when it does something else So it clicks the bread.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Black Fungus Found in Chernobyl Eats Harmful Radiation
    By Mr.Klean in forum Discussions & Debates
    Replies: 4
    Last Post: 03-11-2008, 09:08 PM
  2. law runner
    By Shuttleu in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 03-11-2008, 07:23 AM
  3. Planning to make auto fighter that only eats!
    By ShowerThoughts in forum First Scripts
    Replies: 1
    Last Post: 09-14-2007, 05:20 PM
  4. NEED Air runner!!!
    By ryan123 in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 04-15-2007, 04:58 PM
  5. tut runner help
    By Dadeer in forum OSR Help
    Replies: 5
    Last Post: 12-23-2006, 11:56 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
  •