
после изготовления стрелы он плотноо замерает сек на 5. вопрос: че я сделал криво??? Помогите.
Code: Select all
Program arrow;
{$Include 'checksave.inc'} //CheckSave
{$Include 'hungry.inc'} //Hungry(1,backpack);
{$Include 'iscurmessage.inc'} //Hungry(1,backpack);
{$Include 'stack.inc'} //Hungry(1,backpack);
var Arrow_type,Shaft_type,Pero_type:Word;
var t:Integer;
b : TDateTime;
var i,j:Integer;
Begin
Arrow_type:=$0F3F;
Shaft_type:=$1BD4;
Pero_type:=$1BD1;
SetARStatus(true);
FindDistance := 1;
i:=0;
clearjournal;
if connected then hungry(1,ground);
AutoMenu('What','Arrow');
While not dead do
begin
if (NOT connected) then
begin
SetARStatus(true);
connect;
end
if (GetQuantity(FindType(Arrow_type,backpack)) > 0) then stack(Arrow_type,$FFFF);
for t:=1 to 50 do
begin
if ((GetQuantity(FindType(Pero_type,ground)) > 0)) and ((GetQuantity(FindType(Shaft_type,ground)) > 0)) then
begin
checksave;
j:=GetQuantity(FindType(Shaft_type,backpack));
if j=0 then
begin
MoveItem(FindType(Shaft_type,ground),1,backpack,0,0,0) ;
while j = GetQuantity(FindType(Shaft_type,backpack)) do
begin
wait(50)
end;
end
WaitTargetGround(Pero_type);
b:=Now;
UseObject(FindType(Shaft_type,backpack));
WaitJournalLine(b,'You',4000);
end
else
begin
SetARStatus(false);
Disconnect;
end;
end;
t:=1;
if connected then Hungry(1,ground);
end;
End.