rawsilk
01-28-2008, 06:53 PM
First of all I have been using SCAR for some time now and I have never come accrss this problem. I got updated to SRL 410 which I take it mean SRL 4 rev10. I then went to run a script and I got an error. I figured that to script had been outdated so I made another one. It was a basic auto fighter.
program MobKill;
const MobKillWait = 10; //Time to kill one mob in seconds
const Randomness = 20; //Between 5-30
const MobColor1 = 0; //colors
const MobColor2 = 0; //
const MobColor3 = 0; //
var
x,y: Integer;
procedure AttackMob;
begin
if(FindColorSpiralTolerance(x,y,MobColor1,4,4,515, 337,5))or
(FindColorSpiralTolerance(x,y,MobColor2,4,4,515,33 7,5))or
(FindColorSpiralTolerance(x,y,MobColor3,4,4,515,33 7,5))then
begin
MMouse(x,y,2,2);
if(IsUpText('ttack')then
begin
wait(Randomness);
Mouse(x,y,2,2,true);
end;
end else
Writeln('lost');
end;
begin
repeat
AttackMob;
wait((MobKillWait*1000)+random(100));
until(false);
end.
As you can see it was aeally simple script.
Heres the first problem I got:
[Error] (50:1): Unknown identifier 'MMouse' in script
Failed when compiling
This basically means MMouse is not understood as a procedure. MMouse is an include for the purpose of not having to write it in every script.
I checked my Includes folder and all the stuff was there but it still wouldn't work.
I kept the script and installed completely new SCAR 3.13 and auto updated to SRL4 rev10 or SRL410.
I got the same error.
If I remove MMouse, IsUpText will say the same thing. Basically no icludes work.
Any suggestions?
program MobKill;
const MobKillWait = 10; //Time to kill one mob in seconds
const Randomness = 20; //Between 5-30
const MobColor1 = 0; //colors
const MobColor2 = 0; //
const MobColor3 = 0; //
var
x,y: Integer;
procedure AttackMob;
begin
if(FindColorSpiralTolerance(x,y,MobColor1,4,4,515, 337,5))or
(FindColorSpiralTolerance(x,y,MobColor2,4,4,515,33 7,5))or
(FindColorSpiralTolerance(x,y,MobColor3,4,4,515,33 7,5))then
begin
MMouse(x,y,2,2);
if(IsUpText('ttack')then
begin
wait(Randomness);
Mouse(x,y,2,2,true);
end;
end else
Writeln('lost');
end;
begin
repeat
AttackMob;
wait((MobKillWait*1000)+random(100));
until(false);
end.
As you can see it was aeally simple script.
Heres the first problem I got:
[Error] (50:1): Unknown identifier 'MMouse' in script
Failed when compiling
This basically means MMouse is not understood as a procedure. MMouse is an include for the purpose of not having to write it in every script.
I checked my Includes folder and all the stuff was there but it still wouldn't work.
I kept the script and installed completely new SCAR 3.13 and auto updated to SRL4 rev10 or SRL410.
I got the same error.
If I remove MMouse, IsUpText will say the same thing. Basically no icludes work.
Any suggestions?