Dspider0
06-11-2007, 02:26 AM
help. im new to scar, but i tried writing a simple script and im having trouble
program New;
{.include SRL/SRL.scar}
var
q:integer;
procedure declareq;
Begin
q = 0
end;
procedure talk;
begin
case (random(3)) of
0: TypeSend('flash1:selling 5k air runes, 15ea!!');
1: TypeSend('flash2: selling 5k air runes for 15gp each!!!');
2: TypeSend('flash3: selling 5k air runes, 75k');
end;
wait (500+random(500));
q = q+1
end;
procedure mainloop;
begin
declareq;
repeat
talk;
until q > 10;
end.
i says
Line 9: [Error] (17670:3): Assignment expected in script D:\Program Files\SCAR 2.03\Scripts\merchanter.scar
I want it to perform the typing procedure 10 times, i think i did some stuff right =/. I wrote it from scratch just now
i would appreciate help
program New;
{.include SRL/SRL.scar}
var
q:integer;
procedure declareq;
Begin
q = 0
end;
procedure talk;
begin
case (random(3)) of
0: TypeSend('flash1:selling 5k air runes, 15ea!!');
1: TypeSend('flash2: selling 5k air runes for 15gp each!!!');
2: TypeSend('flash3: selling 5k air runes, 75k');
end;
wait (500+random(500));
q = q+1
end;
procedure mainloop;
begin
declareq;
repeat
talk;
until q > 10;
end.
i says
Line 9: [Error] (17670:3): Assignment expected in script D:\Program Files\SCAR 2.03\Scripts\merchanter.scar
I want it to perform the typing procedure 10 times, i think i did some stuff right =/. I wrote it from scratch just now
i would appreciate help