weaselforce
2006-05-21 23:20:53
How does one create a failsafe with "IsKeyDown". I dont know how to setup a while loop to carry through a whole procedure. If anyone can shed some light, provide some alternatives, i'd be very appreciative.
2006-05-21 23:20:53
2006-05-21 23:30:44
program New;
procedure blah;
begin
while(not(IsKeyDown('a')))do
begin
Wait(10);
//stuff1;
//stuff2;
//stuff3;
end;
WriteLn('You pressed the failsafe, ending script');
TerminateScript;
end;
begin
blah;
end.
2006-05-21 23:37:37
begin
While(not(IsKeyDown('f')))do
begin
ToFletch := Amount
Fletched := 0
SetupSRL;
RandomDisguise;
MouseSpeed := 12
BenMouse := True
ClearReport;
ActivateClient;
CloseWindow;
ChatsOff;
RandomEvents;
Experience;
ExperienceReport;
LoadCrap;
Repeat
BankingWithdraw;
Fletch;
BankingDeposit;
RunsForProgress := (RunsForProgress + 1)
if(RunsForProgress >= 10) then
begin
Progress;
RunsForProgress := 0
HoverSkill('fletching');
RandomRClick
end
Until(Fletched >= Amount)
end;
end.
2006-05-21 23:44:08
repeat
stuff;
until(IsKeyDown('a')) begin
ToFletch := Amount;
Fletched := 0;
SetupSRL;
RandomDisguise;
MouseSpeed := 12;
BenMouse := True;
ClearReport;
ActivateClient;
CloseWindow;
ChatsOff;
RandomEvents;
Experience;
ExperienceReport;
LoadCrap;
repeat
BankingWithdraw;
Fletch;
BankingDeposit;
RunsForProgress := RunsForProgress + 1;
if(RunsForProgress >= 10)then
begin
Progress;
RunsForProgress := 0;
HoverSkill('fletching');
RandomRClick;
end;
until(Fletched >= Amount)or(IsKeyDown('f'))
end.
2006-05-21 23:47:30
2006-05-22 00:00:36
while (blah) doto in between LoadCrap; and the repeat and that should solve it.. also remember to end all ends with a semi-colon (end;)
begin
2006-05-22 00:01:24