Ilikepie1995
06-15-2007, 03:13 PM
I need help making my script running for a long time well so it would do like at least 5-10 loads and so that all the randoms would work too.
program PieShafter;
{.include SRL/SRL.Scar}
{.include SRL/SRL/skill/WoodCutting.scar}
//Stand near a place with no oak's but only trees.
//Axe first inv.Spot.
//Knife second inv.Spot.
//And already have some shafts at forth inv.Spot!
//Have nothing at the third inv.spot!
const
AntiR = True; //Set to true if u want antirandoms.
Procedure LetsDebug;
begin
ClearDebug;
WriteLn('Thank you for using PieShafter.');
WriteLn('This is version 0.1.');
WriteLn('Running Time: ' + (TimeRunning) + '')
end;
Procedure CutTreeAndShaft;
begin
if FindColor(x,y,2252880,0,0,500,500)then
Mouse(x,y,3,3,false);
Wait(2000);
ChooseOption(x,y,'ree');
Wait(5000);
FindColor(x,y,3034726,660,227,664,230);
Mouse(x,y,4,4,true);
Wait(1000);
Mouse(627,224,3,3,true);
Wait(2000);
Mouse(72,409,4,4,true);
Wait(3000);
end;
Procedure QuickRands;
begin
if(not(AntiR))then
begin
exit;
end;
if(AntiR)then
begin
CloseWindow;
Wait(10);
FindTalk;
Wait(10);
FindDead;
Wait(10);
FindMime;
Wait(10);
FindMaze;
Wait(10);
FindQuiz;
Wait(10);
FindScapeRune;
Wait(10);
ClickToContinue;
Wait(10);
FindTalk;
Wait(10+Random(50));
end;
end;
begin
SetupSRL;
CutTreeAndShaft;
LetsDebug;
end.
Please help me with it.
program PieShafter;
{.include SRL/SRL.Scar}
{.include SRL/SRL/skill/WoodCutting.scar}
//Stand near a place with no oak's but only trees.
//Axe first inv.Spot.
//Knife second inv.Spot.
//And already have some shafts at forth inv.Spot!
//Have nothing at the third inv.spot!
const
AntiR = True; //Set to true if u want antirandoms.
Procedure LetsDebug;
begin
ClearDebug;
WriteLn('Thank you for using PieShafter.');
WriteLn('This is version 0.1.');
WriteLn('Running Time: ' + (TimeRunning) + '')
end;
Procedure CutTreeAndShaft;
begin
if FindColor(x,y,2252880,0,0,500,500)then
Mouse(x,y,3,3,false);
Wait(2000);
ChooseOption(x,y,'ree');
Wait(5000);
FindColor(x,y,3034726,660,227,664,230);
Mouse(x,y,4,4,true);
Wait(1000);
Mouse(627,224,3,3,true);
Wait(2000);
Mouse(72,409,4,4,true);
Wait(3000);
end;
Procedure QuickRands;
begin
if(not(AntiR))then
begin
exit;
end;
if(AntiR)then
begin
CloseWindow;
Wait(10);
FindTalk;
Wait(10);
FindDead;
Wait(10);
FindMime;
Wait(10);
FindMaze;
Wait(10);
FindQuiz;
Wait(10);
FindScapeRune;
Wait(10);
ClickToContinue;
Wait(10);
FindTalk;
Wait(10+Random(50));
end;
end;
begin
SetupSRL;
CutTreeAndShaft;
LetsDebug;
end.
Please help me with it.