ub3r |<1||3r*1337*
2006-04-17 16:05:14
why do i get this error?
2006-04-17 16:05:14
2006-04-17 16:10:10
2006-04-17 16:13:40
2006-04-17 16:28:42
2006-04-17 16:52:26
2006-04-17 17:04:02
2006-04-17 17:41:25
2006-04-17 22:05:04
program SilkBuyer;
///////////////////////////////////////////////////////////////////////////
///This will buy silk and bank them, improvements can be PMed to me on //
///villavu.com/forums made by: ub3r l<1ll3r //
///////////////////////////////////////////////////////////////////////////
{Instructions
1. Start at the most Northern Open Bank
2. Money in first slot
3. V-bright
4. Put your pin in Line 127 if you have one
{.include SRL\SRL.Scar}
{Version info:
V1:very unstable[unreleased]
V1.9:a lot more stable with double clicking[unreleased]
V1.95: tested and being released
V2: more stable and with symbol to symbol
V3: fixed up a lot of walking, much more faster
V4:will now log off after 20 loads and has anti-randoms and will do this 6 times until the script will end (100 loads)
V5: now with a progress report
V6: Now standardized (i think)
V7: properly standardized and has Mouse flag detection
V8: now with auto color}
var
H, Poop, mcount,TSy,TSx,EEy,EEx,RRx,RRy,FFx,FFy,AAx,AAy,BBx,BBy,CCx,CCy,DDx,DDy,GGx,GGy: Integer;
rock,tree1,tree2,silk,tree3,tree4,rock,something,NNx,NNy,bumbum:integer;
/////////////////SETUP////////////////////////////
Const
User = 'killerkoo4';
Pass = '';
Pin1 ='5946';//put a pin if you have one else dont touch
//////////////////////////////////////////////////
procedure MoveSilkcolorget;
begin
Writeln('Facing North and going to the silk buyer!');
Face('N');
if(FindColorTolerance(x, y, 1920640, 643, 51, 677, 70, 50))then
begin
rock:=Getcolor(x,y)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(TSx, TSy, 1260363, 653, 30, 697, 54, 50))then
Begin
tree1:=Getcolor(TSx,TSy)
Mouse(x, y, 1, 1, true)
end else
Begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(EEx, EEy, 1260363, 683, 20, 706, 41, 50))then
begin
tree2:=Getcolor(EEx,EEy)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
if(FindColorTolerance(RRx, RRy, 6162831, 655, 41, 690, 74, 50))then
Begin
silk:=Getcolor(RRx,RRy)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
Wait(3000);
end;
procedure Buy;
begin
Poop:=0
repeat
repeat
if(FindColorTolerance(FFx, FFy, 12425379, 4, 4, 514, 336, 8))then
begin
Mouse(x, y, 0, 0, true);
Mouse(x, y, 0, 0, true);
wait(1000)
end;
until(findcolortolerance(x,y,16711680,187,427,407,451,6))
if (findcolortolerance(x,y,16711680,187,427,407,451,6)) then
begin
Wait(3000);
MMouse(224, 444, 1, 0);
Wait(800);
Mouse(224, 444, 1, 0, true);
Mouse(224, 444, 1, 0, true);
Wait(1000);
MMouse(270, 395, 1, 0);
Wait(800);
Mouse(270, 395, 1, 0, true);
Mouse(270, 395, 1, 0, true);
Wait(1000);
MMouse(203, 448, 1, 0);
Wait(800);
Mouse(203, 448, 1, 0, true);
Mouse(203, 448, 1, 0, true);
Wait(1000);
MMouse(280, 446, 1, 0);
Mouse(280, 446, 1, 0, true);
Mouse(280, 446, 1, 0, true);
Wait(2000);
MMouse(238, 432, 1, 0);
Mouse(238, 432, 1, 0, true);
Mouse(238, 432, 1, 0, true);
Wait(1000);
MMouse(217, 445, 1, 0);
Mouse(217, 445, 1, 0, true);
Wait(1000);
MMouse(290, 447, 1, 0);
Mouse(290, 447, 1, 0, true);
Mouse(290, 447, 1, 0, true);
Poop:= Poop + 1
Writeln('We have '+IntToStr(Poop)+' silk(s) for this load!');
TalkToRand;
Wait(2000);
end else
begin
wait(2000)
buy;
end;
until(FindColorTolerance(x, y, 8625060, 703, 434, 724, 454, 8))
end;
procedure GoBackgetcolor;
begin
Face('N');
Wait(1000);
if(FindColorTolerance(AAx, AAy, 598088, 596, 90, 656, 129, 50))then
begin
tree3:=Getcolor(AAx,AAy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(BBx, BBy, 2818305, 610, 80, 654, 133, 50))then
begin
tree4:=Getcolor(BBx,BBy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(CCx, CCy, 598088, 594, 90, 636, 129, 50))then
begin
something:=Getcolor(CCx,CCy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(DDx, DDy, 994407, 594, 84, 649, 106,50))then
begin
rock:=Getcolor(DDx,DDy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(GGx, GGy, BankColor, 587, 59, 641, 99, 8))then
begin
bumbum:=Getcolor(GGx,GGy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(NNx, NNy, 660059, 46, 111, 97, 164, 50))then
InPin(Pin1);
Deposit2(5, 27);
Wait(5000);
end;
procedure GoBack;
begin
Face('N');
Wait(1000);
if(FindColorTolerance(AAx, AAy, tree3, 596, 90, 656, 129, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(BBx, BBy, tree4, 610, 80, 654, 133, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(CCx, CCy, something, 594, 90, 636, 129, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(DDx, DDy, rock, 594, 84, 649, 106, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(GGx, GGy, bumbum, 587, 59, 641, 99, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(x, y, 660059, 46, 111, 97, 164, 7))then
InPin(Pin1);
Deposit2(5, 27);
Wait(5000);
end;
procedure MoveSilk;
begin
Writeln('Facing North and going to the silk buyer!');
Face('N');
if(FindColorTolerance(x, y, 1920640, 643, 51, 677, 70, 50))then
Mouse(x, y, 1, 1, true) else
begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(TSx, TSy, 1260363, 653, 30, 697, 54, 50))then
Mouse(x, y, 1, 1, true)else
Begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(EEx, EEy, 1260363, 683, 20, 706, 41, 50))then
Mouse(x, y, 1, 1, true)else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
if(FindColorTolerance(RRx, RRy, 6162831, 655, 41, 690, 74, 50))then
Mouse(x, y, 1, 1, true)else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
Wait(3000);
end;
procedure LogIn;
begin
Mouse(450, 286, 10, 10, true);
SendKeys(User);
SendKeys(Chr(13));
SendKeys(Pass);
Mouse(298, 323, 10, 10, true);
repeat
wait(90)
until(findcolortolerance(x,y,584,397,295,619,374,5))
Mouse(495, 341, 10, 10, true);
end;
begin
SetupSRL;
if(findcolortolerance(x,y,5918541,397,288,429,303,6))then
Login;
movesilkcolorget;
buy;
goback;
repeat
repeat
movesilk;
buy;
gobackgetcolor;
mcount:=mcount+1
until(mcount>=10)
wait(200000)(random(900)
H:=H+1
until(H>=5
end.sorry bout taking a while
2006-04-17 22:08:55
2006-04-17 22:11:23
program SilkBuyer;
///////////////////////////////////////////////////////////////////////////
///This will buy silk and bank them, improvements can be PMed to me on //
///villavu.com/forums made by: ub3r l<1ll3r //
///////////////////////////////////////////////////////////////////////////
{Instructions
1. Start at the most Northern Open Bank
2. Money in first slot
3. V-bright
4. Put your pin in Line 127 if you have one
{.include SRL\SRL.Scar}
{Version info:
V1:very unstable[unreleased]
V1.9:a lot more stable with double clicking[unreleased]
V1.95: tested and being released
V2: more stable and with symbol to symbol
V3: fixed up a lot of walking, much more faster
V4:will now log off after 20 loads and has anti-randoms and will do this 6 times until the script will end (100 loads)
V5: now with a progress report
V6: Now standardized (i think)
V7: properly standardized and has Mouse flag detection
V8: now with auto color}
var
H, Poop, mcount,TSy,TSx,EEy,EEx,RRx,RRy,FFx,FFy,AAx,AAy,BBx,BBy,CCx,CCy,DDx,DDy,GGx,GGy: Integer;
rock,tree1,tree2,silk,tree3,tree4,rock,something,NNx,NNy,bumbum:integer;
/////////////////SETUP////////////////////////////
Const
User = 'killerkoo4';
Pass = '';
Pin1 ='5946';//put a pin if you have one else dont touch
//////////////////////////////////////////////////
procedure MoveSilkcolorget;
begin
Writeln('Facing North and going to the silk buyer!');
Face('N');
if(FindColorTolerance(x, y, 1920640, 643, 51, 677, 70, 50))then
begin
rock:=Getcolor(x,y)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(TSx, TSy, 1260363, 653, 30, 697, 54, 50))then
Begin
tree1:=Getcolor(TSx,TSy)
Mouse(x, y, 1, 1, true)
end else
Begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(EEx, EEy, 1260363, 683, 20, 706, 41, 50))then
begin
tree2:=Getcolor(EEx,EEy)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
if(FindColorTolerance(RRx, RRy, 6162831, 655, 41, 690, 74, 50))then
Begin
silk:=Getcolor(RRx,RRy)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
Wait(3000);
end;
procedure Buye;
begin
Poop:=0
repeat
repeat
if(FindColorTolerance(FFx, FFy, 12425379, 4, 4, 514, 336, 8))then
begin
Mouse(x, y, 0, 0, true);
Mouse(x, y, 0, 0, true);
wait(1000)
end;
until(findcolortolerance(x,y,16711680,187,427,407,451,6))
if (findcolortolerance(x,y,16711680,187,427,407,451,6)) then
begin
Wait(3000);
MMouse(224, 444, 1, 0);
Wait(800);
Mouse(224, 444, 1, 0, true);
Mouse(224, 444, 1, 0, true);
Wait(1000);
MMouse(270, 395, 1, 0);
Wait(800);
Mouse(270, 395, 1, 0, true);
Mouse(270, 395, 1, 0, true);
Wait(1000);
MMouse(203, 448, 1, 0);
Wait(800);
Mouse(203, 448, 1, 0, true);
Mouse(203, 448, 1, 0, true);
Wait(1000);
MMouse(280, 446, 1, 0);
Mouse(280, 446, 1, 0, true);
Mouse(280, 446, 1, 0, true);
Wait(2000);
MMouse(238, 432, 1, 0);
Mouse(238, 432, 1, 0, true);
Mouse(238, 432, 1, 0, true);
Wait(1000);
MMouse(217, 445, 1, 0);
Mouse(217, 445, 1, 0, true);
Wait(1000);
MMouse(290, 447, 1, 0);
Mouse(290, 447, 1, 0, true);
Mouse(290, 447, 1, 0, true);
Poop:= Poop + 1
Writeln('We have '+IntToStr(Poop)+' silk(s) for this load!');
TalkToRand;
Wait(2000);
end else
begin
wait(2000)
buye;
end;
until(FindColorTolerance(x, y, 8625060, 703, 434, 724, 454, 8))
end;
procedure GoBackgetcolor;
begin
Face('N');
Wait(1000);
if(FindColorTolerance(AAx, AAy, 598088, 596, 90, 656, 129, 50))then
begin
tree3:=Getcolor(AAx,AAy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(BBx, BBy, 2818305, 610, 80, 654, 133, 50))then
begin
tree4:=Getcolor(BBx,BBy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(CCx, CCy, 598088, 594, 90, 636, 129, 50))then
begin
something:=Getcolor(CCx,CCy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(DDx, DDy, 994407, 594, 84, 649, 106,50))then
begin
rock:=Getcolor(DDx,DDy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(GGx, GGy, BankColor, 587, 59, 641, 99, 8))then
begin
bumbum:=Getcolor(GGx,GGy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(NNx, NNy, 660059, 46, 111, 97, 164, 50))then
InPin(Pin1);
Deposit2(5, 27);
Wait(5000);
end;
procedure GoBack;
begin
Face('N');
Wait(1000);
if(FindColorTolerance(AAx, AAy, tree3, 596, 90, 656, 129, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(BBx, BBy, tree4, 610, 80, 654, 133, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(CCx, CCy, something, 594, 90, 636, 129, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(DDx, DDy, rock, 594, 84, 649, 106, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(GGx, GGy, bumbum, 587, 59, 641, 99, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(x, y, 660059, 46, 111, 97, 164, 7))then
InPin(Pin1);
Deposit2(5, 27);
Wait(5000);
end;
procedure MoveSilk;
begin
Writeln('Facing North and going to the silk buyer!');
Face('N');
if(FindColorTolerance(x, y, 1920640, 643, 51, 677, 70, 50))then
Mouse(x, y, 1, 1, true) else
begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(TSx, TSy, 1260363, 653, 30, 697, 54, 50))then
Mouse(x, y, 1, 1, true)else
Begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(EEx, EEy, 1260363, 683, 20, 706, 41, 50))then
Mouse(x, y, 1, 1, true)else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
if(FindColorTolerance(RRx, RRy, 6162831, 655, 41, 690, 74, 50))then
Mouse(x, y, 1, 1, true)else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
Wait(3000);
end;
procedure LogIn;
begin
Mouse(450, 286, 10, 10, true);
SendKeys(User);
SendKeys(Chr(13));
SendKeys(Pass);
Mouse(298, 323, 10, 10, true);
repeat
wait(90)
until(findcolortolerance(x,y,584,397,295,619,374,5))
Mouse(495, 341, 10, 10, true);
end;
begin
SetupSRL;
if(findcolortolerance(x,y,5918541,397,288,429,303,6))then
Login;
movesilkcolorget;
buye;
goback;
repeat
repeat
movesilk;
buye;
gobackgetcolor;
mcount:=mcount+1
until(mcount>=10)
[B] wait(200000 + random(900));[/B]
H:=H+1
until(H>=5);
end.
2006-04-17 22:12:16
2006-04-17 22:12:52
2006-04-17 22:18:50
2006-04-17 22:19:41
From: XxKanexX
I found the error. Also, sorry but i renamed your "Buy" procedure, "Buye".. Because with my SRL theres already a buy procedure.
It was line 266. You had: Wait(20000)(random(900)); It's meant to be: Wait(20000 + random(900));
Heres your code. Compiles fine :)
program SilkBuyer;
///////////////////////////////////////////////////////////////////////////
///This will buy silk and bank them, improvements can be PMed to me on //
///villavu.com/forums made by: ub3r l<1ll3r //
///////////////////////////////////////////////////////////////////////////
{Instructions
1. Start at the most Northern Open Bank
2. Money in first slot
3. V-bright
4. Put your pin in Line 127 if you have one
{.include SRL\SRL.Scar}
{Version info:
V1:very unstable[unreleased]
V1.9:a lot more stable with double clicking[unreleased]
V1.95: tested and being released
V2: more stable and with symbol to symbol
V3: fixed up a lot of walking, much more faster
V4:will now log off after 20 loads and has anti-randoms and will do this 6 times until the script will end (100 loads)
V5: now with a progress report
V6: Now standardized (i think)
V7: properly standardized and has Mouse flag detection
V8: now with auto color}
var
H, Poop, mcount,TSy,TSx,EEy,EEx,RRx,RRy,FFx,FFy,AAx,AAy,BBx,BBy,CCx,CCy,DDx,DDy,GGx,GGy: Integer;
rock,tree1,tree2,silk,tree3,tree4,rock,something,NNx,NNy,bumbum:integer;
/////////////////SETUP////////////////////////////
Const
User = 'killerkoo4';
Pass = '';
Pin1 ='5946';//put a pin if you have one else dont touch
//////////////////////////////////////////////////
procedure MoveSilkcolorget;
begin
Writeln('Facing North and going to the silk buyer!');
Face('N');
if(FindColorTolerance(x, y, 1920640, 643, 51, 677, 70, 50))then
begin
rock:=Getcolor(x,y)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(TSx, TSy, 1260363, 653, 30, 697, 54, 50))then
Begin
tree1:=Getcolor(TSx,TSy)
Mouse(x, y, 1, 1, true)
end else
Begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(EEx, EEy, 1260363, 683, 20, 706, 41, 50))then
begin
tree2:=Getcolor(EEx,EEy)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
if(FindColorTolerance(RRx, RRy, 6162831, 655, 41, 690, 74, 50))then
Begin
silk:=Getcolor(RRx,RRy)
Mouse(x, y, 1, 1, true)
end else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
Wait(3000);
end;
procedure Buye;
begin
Poop:=0
repeat
repeat
if(FindColorTolerance(FFx, FFy, 12425379, 4, 4, 514, 336, 8))then
begin
Mouse(x, y, 0, 0, true);
Mouse(x, y, 0, 0, true);
wait(1000)
end;
until(findcolortolerance(x,y,16711680,187,427,407,451,6))
if (findcolortolerance(x,y,16711680,187,427,407,451,6)) then
begin
Wait(3000);
MMouse(224, 444, 1, 0);
Wait(800);
Mouse(224, 444, 1, 0, true);
Mouse(224, 444, 1, 0, true);
Wait(1000);
MMouse(270, 395, 1, 0);
Wait(800);
Mouse(270, 395, 1, 0, true);
Mouse(270, 395, 1, 0, true);
Wait(1000);
MMouse(203, 448, 1, 0);
Wait(800);
Mouse(203, 448, 1, 0, true);
Mouse(203, 448, 1, 0, true);
Wait(1000);
MMouse(280, 446, 1, 0);
Mouse(280, 446, 1, 0, true);
Mouse(280, 446, 1, 0, true);
Wait(2000);
MMouse(238, 432, 1, 0);
Mouse(238, 432, 1, 0, true);
Mouse(238, 432, 1, 0, true);
Wait(1000);
MMouse(217, 445, 1, 0);
Mouse(217, 445, 1, 0, true);
Wait(1000);
MMouse(290, 447, 1, 0);
Mouse(290, 447, 1, 0, true);
Mouse(290, 447, 1, 0, true);
Poop:= Poop + 1
Writeln('We have '+IntToStr(Poop)+' silk(s) for this load!');
TalkToRand;
Wait(2000);
end else
begin
wait(2000)
buye;
end;
until(FindColorTolerance(x, y, 8625060, 703, 434, 724, 454, 8))
end;
procedure GoBackgetcolor;
begin
Face('N');
Wait(1000);
if(FindColorTolerance(AAx, AAy, 598088, 596, 90, 656, 129, 50))then
begin
tree3:=Getcolor(AAx,AAy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(BBx, BBy, 2818305, 610, 80, 654, 133, 50))then
begin
tree4:=Getcolor(BBx,BBy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(CCx, CCy, 598088, 594, 90, 636, 129, 50))then
begin
something:=Getcolor(CCx,CCy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(DDx, DDy, 994407, 594, 84, 649, 106,50))then
begin
rock:=Getcolor(DDx,DDy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(GGx, GGy, BankColor, 587, 59, 641, 99, 8))then
begin
bumbum:=Getcolor(GGx,GGy)
Mouse(x, y, 1, 1, true);
Flag;
end;
if(FindColorTolerance(NNx, NNy, 660059, 46, 111, 97, 164, 50))then
InPin(Pin1);
Deposit2(5, 27);
Wait(5000);
end;
procedure GoBack;
begin
Face('N');
Wait(1000);
if(FindColorTolerance(AAx, AAy, tree3, 596, 90, 656, 129, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(BBx, BBy, tree4, 610, 80, 654, 133, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(CCx, CCy, something, 594, 90, 636, 129, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(DDx, DDy, rock, 594, 84, 649, 106, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(GGx, GGy, bumbum, 587, 59, 641, 99, 8))then
Mouse(x, y, 1, 1, true);
Flag;
if(FindColorTolerance(x, y, 660059, 46, 111, 97, 164, 7))then
InPin(Pin1);
Deposit2(5, 27);
Wait(5000);
end;
procedure MoveSilk;
begin
Writeln('Facing North and going to the silk buyer!');
Face('N');
if(FindColorTolerance(x, y, 1920640, 643, 51, 677, 70, 50))then
Mouse(x, y, 1, 1, true) else
begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(TSx, TSy, 1260363, 653, 30, 697, 54, 50))then
Mouse(x, y, 1, 1, true)else
Begin
Writeln('Color(s) not found! restart script!');
Terminatescript;
end;
Flag;
if(FindColorTolerance(EEx, EEy, 1260363, 683, 20, 706, 41, 50))then
Mouse(x, y, 1, 1, true)else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
if(FindColorTolerance(RRx, RRy, 6162831, 655, 41, 690, 74, 50))then
Mouse(x, y, 1, 1, true)else
begin
Writeln('Color(s) not found! restart script!');
terminatescript;
end;
Flag;
Wait(3000);
end;
procedure LogIn;
begin
Mouse(450, 286, 10, 10, true);
SendKeys(User);
SendKeys(Chr(13));
SendKeys(Pass);
Mouse(298, 323, 10, 10, true);
repeat
wait(90)
until(findcolortolerance(x,y,584,397,295,619,374,5))
Mouse(495, 341, 10, 10, true);
end;
begin
SetupSRL;
if(findcolortolerance(x,y,5918541,397,288,429,303,6))then
Login;
movesilkcolorget;
buye;
goback;
repeat
repeat
movesilk;
buye;
gobackgetcolor;
mcount:=mcount+1
until(mcount>=10)
[B] wait(200000 + random(900));[/B]
H:=H+1
until(H>=5);
end.
2006-04-17 22:20:58
Successfully compiled
Line 26: [Hint] (11468:72): Variable 'ROCK' never used in script
Facing North and going to the silk buyer!
Color(s) not found! restart script!
Successfully executed
;D Good job on the script.
2006-04-17 22:31:41
2006-04-17 22:33:13