Results 1 to 13 of 13

Thread: stopping script

  1. #1
    Join Date
    Nov 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default stopping script

    hi how can I stop my script if it can't find the bitmap after 60 seconds?
    Code:
    Writeln('SCANNING FOR START BUTTON');
       z := FindBitmap(startButton, startX, startY);
       while (z = false) do
       begin
          wait(1000);
          Writeln('SCANNING FOR START BUTTON');
          z := FindBitmap(startButton, startX, startY);
          i:=i+1;
          if (i=60) then
          begin
          Writeln('START BUTTON NOT FOUND');
    //stop script????
          end;
       end;

  2. #2
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Simba Code:
    TerminateScript;

    Script source code available here: Github

  3. #3
    Join Date
    Nov 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you

  4. #4
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That works, but this is shorter.

    Simba Code:
    WaitfindBitmap(startbutton, 60000)

    The parameters might not be correct, SIMBA will give you the correct parameters)
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  5. #5
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Footy View Post
    That works, but this is shorter.

    Simba Code:
    WaitfindBitmap(startbutton, 60000)

    The parameters might not be correct, SIMBA will give you the correct parameters)
    Where did you find that function?
    Could possibly create a function that returns FindBitmap boolean with the parameters set within the function. Then use WaitFunc(@My_FindBitmap_WithoutParameter_Function, ...), or even better, add FindNormalRandoms, antiban etc to that function too.

  6. #6
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ... I could have swore I've seen a WaitfindBitmap function along with waitfinddtm. Im not on my computer, so I can't check ATM. Also, can someone tell me why everyone's scripting cup cat is wearing a jackalantern?
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  7. #7
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Footy View Post
    ... I could have swore I've seen a WaitfindBitmap function along with waitfinddtm. Im not on my computer, so I can't check ATM. Also, can someone tell me why everyone's scripting cup cat is wearing a jackalantern?
    Probably a custom made function from a script that you used rather than an SRL function. There is only WaitFindDTM in the include.
    As for the cup, BraK is letting his creativity run wild

  8. #8
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I must be going crazy then... Ignore everything I said op. Brak, give me a cool cup!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  9. #9
    Join Date
    Nov 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    O m g s h i t g f 4 h o u r s o f m y l i f e i w a s a l m o s t d o n e w i t h t h e s c r i p t a n d l o s t h a l f m y w o r k

    CAPSLOCK
    Last edited by minilogger11; 10-06-2012 at 02:27 AM.

  10. #10
    Join Date
    Nov 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow fuck simba it said something about stopping debugging i pressed cancel and it exited wtf fuck this bullshit

    CAPSLOCK

  11. #11
    Join Date
    Nov 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Man i don't usually code and this is the longest script i have ever coded fuck my life

    CAPSLOCK

  12. #12
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    A) Swearing is not tolerated here. Please stop, or you may recieve an infraction.
    B) Triple posting is also not allowed. Edit your post if you have something else to say.
    C) How much of your script did you lose? Sorry about your loss. Remember the number one rule when working with computers. Save, and save often.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  13. #13
    Join Date
    Nov 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry I'm just mad. I lost everything I did since I came back to school which was everything except the function/procedure layout I planned yesterday. I found an event ( lasts to the 8th) glitch on this game then I found simba on my computer installed a year ago and remembered it was easy for coding bots. I planned to have it done today but I guess I won't be botting tonight. . . It'll be more efficient now to do this glitch manually and I already know several people that are ahead of me in exploiting this glitch. I haven't been on these forums ever since I was leeching bots for rs years ago :/


    and also this is my first time coding something I could actually USE and got it worked so you must know how I feel

    This is disappointing for me. I won't be coding for a while.
    Last edited by minilogger11; 10-06-2012 at 03:25 AM.

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
  •