View Full Version : stopping script
minilogger11
10-05-2012, 09:56 PM
hi how can I stop my script if it can't find the bitmap after 60 seconds?
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;
minilogger11
10-05-2012, 10:50 PM
Thank you
Footy
10-05-2012, 11:16 PM
That works, but this is shorter.
WaitfindBitmap(startbutton, 60000)
The parameters might not be correct, SIMBA will give you the correct parameters)
That works, but this is shorter.
WaitfindBitmap(startbutton, 60000)
The parameters might not be correct, SIMBA will give you the correct parameters)
Where did you find that function? :confused:
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.
Footy
10-05-2012, 11:51 PM
... 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?
... 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 :rolleyes:
Footy
10-05-2012, 11:58 PM
I must be going crazy then... Ignore everything I said op. Brak, give me a cool cup! :p
minilogger11
10-06-2012, 02:24 AM
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
minilogger11
10-06-2012, 02:35 AM
Wow fuck simba it said something about stopping debugging i pressed cancel and it exited wtf fuck this bullshit
CAPSLOCK
minilogger11
10-06-2012, 02:38 AM
Man i don't usually code and this is the longest script i have ever coded fuck my life
CAPSLOCK
Footy
10-06-2012, 02:53 AM
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.
minilogger11
10-06-2012, 03:20 AM
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.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.