How can i set scar to repeat the command 50 times?
How can i set scar to repeat the command 50 times?
what command?
something like this will work
SCAR Code:procedure repeatStuff();
var
i : integer;
begin
i := 0;
repeat
begin
command(stuff);
i := i + 1;
end
until i >= 50
end
Find a tutorial about loops
SCAR Code:repeat
Inc(N);
DoStuff;
until(N = 50)
I suggest this:
for N := 1 to 50 do
DoStuff;
How do I enter code in forums?
You have to do [ code]stuff here[ /code] without any spaces in the brackets.
~Camo
Edit: Ninja'd by JAD :/
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
this won't stop clicking..Code:program fishy; var i,x,y: Integer; const FishColor1 =11765872; FishColor2 =11765872; FishColor3 =11765872; begin i:= 0; repeat if (FindColorSpiral(x,y,FishColor1,205,219,305,277)) or (FindColorSpiral(x,y,FishColor2,248,229,275,249)) or (FindColorSpiral(x,y,FishColor3,248,229,275,249)) then begin MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20); Wait(123+random(10)); ClickMouse(x,y,true); wait(2000); {how many second you want to wait between each click} end; until i = 1; end. procedure move; MoveMouseSmooth(457,43) end.

Something like this?
SCAR Code:program fishy;
{.include SRL/SRL.scar}
var
i,x,y: Integer;
const
FishColor1 =11765872;
FishColor2 =11765872;
FishColor3 =11765872;
procedure MoveTheMouse;
begin
i:= 0;
repeat
if (FindColorSpiral(x,y,FishColor1,205,219,305,277)) or (FindColorSpiral(x,y,FishColor2,248,229,275,249)) or (FindColorSpiral(x,y,FishColor3,248,229,275,249)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(123+random(10));
ClickMouse(x,y,true);
wait(2000); {how many second you want to wait between each click}
Inc(i);
end;
until i = 1;
MoveMouseSmooth(457,43);
end;
begin
MoveTheMouse;
end.
~Camo
Edit: Ninja'd again :/
Last edited by Kyle Undefined; 10-19-2009 at 05:27 PM. Reason: Forgot a semicolon :/
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
Okay that works when i change the semicolon to dot after end
how to change that cuz id like to go on with my scriptCode:until i = 2; end;
Line 27: [Error] (27:4): period ('.') expected in script
Also do I need to include the srl stuff? It threw another script here and do I need SRL for
rsc? Also gave me another error in that script
Last edited by cdr; 10-19-2009 at 05:15 PM.
Are you using Dervish's? Try mine, it should work.
~Camo
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
Nope. Math.scar starts and this1 says
Line 47: [Error] (321:11): Unknown identifier 'CreateTPAFromBMP' in script
Hmm, it compiled just fine for me. Try changing:
SCAR Code:MoveMouseSmooth(457,43)
to
SCAR Code:MoveMouseSmooth(457,43);
~Camo
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
It worked for you using {srl ... }?????
Yeah, I just ran it and it ran fine. It didn't click anything since it couldn't find the colors.
~Camo
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
okay mine started working without the srl thing too so im moving on..
Only moves to the first coordinates, then waits and executes the script.Code:MoveMouseSmooth(457,43); wait(10000) MoveMouseSmooth(495,142) ClickMouse(x,y,true);
SCAR Code:MoveMouseSmooth(457,43);
wait(10000);
MoveMouseSmooth(495,142);
ClickMouse(x,y,true);
~Camo
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
Unfortunately that doesn't work :/ Is it about the SRL. Is it really that much needed even in rsc?

Lol, nothing against you Dervish, the fix you posted wasn't right :/ I still <3 you :P
@cdr. Are you using the {.include SRL/SRL.scar}?
~Camo
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
Well i tryed using it now i updated SRL and still get another script tab saying global.script or math.script or whatever.. so I gave up :/
Line 13: [Error] (40:1): Identifier expected in script C:\Program Files (x86)\SCAR 3.21\includes\SRL\SRL\Core\Globals.scar
Last edited by cdr; 10-19-2009 at 06:14 PM.
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
And dont forget to move those plugins!![]()
Originally Posted by irc
There are currently 1 users browsing this thread. (0 members and 1 guests)