Results 1 to 7 of 7

Thread: Function's help pweeze?

  1. #1
    Join Date
    Oct 2007
    Location
    if(FindMyHouse(x,y,'ous',MyPlace,15))then
    Posts
    97
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Function's help pweeze?

    OK, so with my script, I have it go to the bank, get out some food, walk back and it's MEANT to start the procedure over again...here's the procedure.

    SCAR Code:
    procedure PixPoxer;
    begin
     repeat
      if not(FindObj(x,y,'uard',GuardPants,15)) then
       begin
        if not(FindObj(x,y,'uard',GuardSleeve,15)) then
        LogOut;
        Exit;
    end else;
          begin
            Writeln('Guard Found');
            Mouse(x,y,2,2,False);
             if (ClickOption('ickpocket',1)) then
             begin
               PixPox:=PixPox+1;
               Gained:=Gained+30;
               wait(650+random(650));
               Writeln('Guard just got PixPoxed');
               wait(100+random(100));
                if (CheckForFood=False) then
                 begin
                   WalkToBank;
                   GetFood;
                   WalkBack;
                 end else;
                  begin
                    GetHpAndGetFat;
                    FindFastRandoms;
                    FindRandoms;
                    AntiBan;
                end;
             end;
           end;
     until (PixPox = ToPixPox);
    end;

    I'm thinking the problem is where it goes CheckForFood=False, it'll do whatever fine after it, but then it just ends...how would I do this so it repeats the procedure PixPoxer?


    http://i224.photobucket.com/albums/d...iton/buxto.jpg

    WORKING Free RS Membership! (Click on the Bux.to sig!)


  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Add a begin to ur second FindObj..

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Oct 2007
    Location
    if(FindMyHouse(x,y,'ous',MyPlace,15))then
    Posts
    97
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I doubt that'd fix the problem for what I'm looking for?

    It complies and works fine...up until it needs food...It'll get food, go back and then just stop.

    Thanks anyway. =]


    http://i224.photobucket.com/albums/d...iton/buxto.jpg

    WORKING Free RS Membership! (Click on the Bux.to sig!)


  4. #4
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Submersal View Post
    I doubt that'd fix the problem for what I'm looking for?

    It complies and works fine...up until it needs food...It'll get food, go back and then just stop.

    Thanks anyway. =]
    id trust jukka...

    the begin missing does mess up things like this, i have fixed this many times in this manner by simply cleaning up the code:

    Your code standardized:

    SCAR Code:
    procedure PixPoxer;
    begin
      repeat
      if not(FindObj(x,y,'uard',GuardPants,15)) then
       begin
         if not(FindObj(x,y,'uard',GuardSleeve,15)) then
         begin
           LogOut;
           Exit;
         end else
       end else;
       begin
         Writeln('Guard Found');
         Mouse(x,y,2,2,False);
         if (ClickOption('ickpocket',1)) then
         begin
           PixPox:=PixPox+1;
           Gained:=Gained+30;
           wait(650+random(650));
           Writeln('Guard just got PixPoxed');
           wait(100+random(100));
           if (CheckForFood=False) then
           begin
             WalkToBank;
             GetFood;
             WalkBack;
           end else
           begin
             GetHpAndGetFat;
             FindFastRandoms; // FindNormalRandoms has this covered now
             FindRandoms;
             AntiBan;
           end;
         end;
       end;
     until (PixPox = ToPixPox);
    end;

    also it will help if you could tell us exactly what goes correctly up until it messes up
    METAL HEAD FOR LIFE!!!

  5. #5
    Join Date
    Dec 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    did you loop the main script if so then maby you should look for flaws in the loop (maby you put until in the wrong place?)
    thats what i think is wrong, but i could be mistaken

  6. #6
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Jukkas right..

    notice..

    SCAR Code:
    if not(FindObj(x,y,'uard',GuardSleeve,15)) then
        LogOut;
        Exit;

    after a
    SCAR Code:
    then
    scar will look at only the next command for the if... so if u were to use a
    SCAR Code:
    begin
    it would start "a loop" for the
    SCAR Code:
    if.. then
    but other than that...
    SCAR Code:
    if not(FindObj(x,y,'uard',GuardSleeve,15)) then
        LogOut;
        Exit;
    that is basicly..
    SCAR Code:
    if not(FindObj(x,y,'uard',GuardSleeve,15)) then
        LogOut;
    and the
    SCAR Code:
    exit;
    would Be PART of the script so nomatter wht, it exits.. try

    SCAR Code:
    if not(FindObj(x,y,'uard',GuardSleeve,15)) then
    Begin
      LogOut;// maybe NextPlayer(false);?..
      Exit;
    end;

  7. #7
    Join Date
    Oct 2007
    Location
    if(FindMyHouse(x,y,'ous',MyPlace,15))then
    Posts
    97
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahha! Thank you very much for explaining that!

    And a BIG thanks to JuKKa!


    http://i224.photobucket.com/albums/d...iton/buxto.jpg

    WORKING Free RS Membership! (Click on the Bux.to sig!)


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
  •