hi i saw this in alot of scripts. what this procedure is supposed to do? i saw it in chrams cutter he uses:
if(not(LogeedIn))then Break;
what it does?
hi i saw this in alot of scripts. what this procedure is supposed to do? i saw it in chrams cutter he uses:
if(not(LogeedIn))then Break;
what it does?
Break; breaks from a loop.SCAR Code:procedure Foo;
begin
for x:= 1 to 1000 do
begin
if x > 100 then Break;
end;
writeln('this message is displayed');
end;
procedure Bar;
begin
for x:= 1 to 1000 do
begin
if x > 100 then Exit;
end;
writeln('this message is NOT displayed');
end;
Exit; exits a procedure or function.
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
wat u mean by break from a loop?
It will quit the loop and go on with the procedure
Interested in C# and Electrical Engineering? This might interest you.
Like this
it will click at that coord for ever or until the script is stopped.SCAR Code:Repeat
Mouse(325,545,5,5,True);
Until(False)
End;
But if you log out it will keep clicking even though you not being logged in.
now :
SCAR Code:Repeat
Mouse(325,545,5,5,True);
If(Not(LoggedIn)) Then Break;
Until(False)
End;
If you get logged out then it will stop clicking.
Hope that helps.
breaking from a loop means that the loop stops and the script continues with whatever comes after that. The first example stops the 'for' loop if x is over 100 and does the writeln.
Exit actually exits the entire procedure, so the second example will exit the entire procedure if x is over 100, so the writeln will never be displayed.



if i do
if (not(LoggedIn))then Break;
at the begining of my walking and chpoing procedures it will skip it ? because i did Exit; and it doesnt work.
so if i do that break thing at the begining of my walking choping banking procedures and at the end of the loop i do
if(not(LoggedIn))then NextPlayer(False);
will it works?
before i did
if(not(LoggedIn))then NextPlayer(False);
at the begining of my procedure but the nextplayer when it logged did not restart the main loop it did log in to the next player but it started at the procedure where the past player was doing. like player 1 was choping then balloon random then logged out then next player loged in and was searching for yew. it did not restart the loop at the begining....so thats the prob when it logs out in my script
There are currently 1 users browsing this thread. (0 members and 1 guests)