SRL Archive - First Scripts

Omg this is getting annoiying some help me


Axe101

2007-09-08 19:18:22

program script;

const
wait1=(1000);

const
wait2=(2324);

const
spellb1=(738,185,true);

const
spellb2=(746,180,true);

const
spellb3=(742,189,true);

const
spell=(579,558,true);

const
spell2=(711,491,true);

const
spell3=(715,491,true);

Procedure Teleport;
begin
wait(wait1)
MouseClick(spellb1)
wait(wait1)
MouseClick(spellb2)
wait(wait1)
MouseClick(spellb3)
wait(wait2)
MouseClick(spell)
Wait(wait2)
MouseClick(spell2)
MouseClick(spell3)
Wait(wait1)
end;




begin
repeat
Teleport;
until(false)
end.



begin
end.

thats my first script but i keep getting this error:

Failed when compiling
Line 11: [Error] (11:13): Close round expected in script C:\Program Files\SCAR 3.06\Scripts\AutoTele Script.scar

what does it mean and wat do i do

if u need to get ahold of me in some other place besides this site u can reach me at this e-mail address:

[EMAIL="rwtf2011@yahoo.com"]rwtf2011@yahoo.com[/EMAIL]

:cartman: :cartman: :cartman: :cartman: :cartman: :cartman: :cartman: :cartman: :cartman: :cartman: :cartman:

rogeruk

2007-09-08 19:24:27

What are you trying to do with that script?

Close round expected means that it is expecting a ) in the script. Prob cause you havnt used strings as consts

Smartzkid

2007-09-08 19:28:01

const
wait1=1000;
wait2=2324;
{spellb1=738,185,true; //None of this will work. Either separate the first and second values, or code it right into the mouse clicks.
spellb2=746,180,true;
spellb3=742,189,true;
spell=579,558,true;
spell2=711,491,true;
spell3=715,491,true;}

To move the mouse
MMouse(x, y, x randomness, y randomness);

To click the mouse
MMouse(x, y, x randomness, y randomness, leftclick? {(true = left click, false = right click});

rogeruk

2007-09-08 19:31:34

From: Smartzkid
const
wait1=1000;
wait2=2324;
{spellb1=738,185,true; //None of this will work. Either separate the first and second values, or code it right into the mouse clicks.
spellb2=746,180,true;
spellb3=742,189,true;
spell=579,558,true;
spell2=711,491,true;
spell3=715,491,true;}

To move the mouse
MMouse(x, y, x randomness, y randomness);

To click the mouse
MMouse(x, y, x randomness, y randomness, leftclick? {(true = left click, false = right click});


Clicking..
Mouse(x,y,xrand,yrand,leftclick);

:P

woodjedi

2008-01-13 14:15:10

Maybe not so usefull script but still something :P