
Помогите кто нить плизз
Code: Select all
Program Healing;
{$Include 'all.inc'}
const
Washbasin=$404A04B8;
bloodbandages=$0E20;
Curse=$1541;
CharHP = 195;
var
Str1,str2,str3,str4,str5:String;
bandages:cardinal;
BEGIN
bandages:=FindType($0E21,backpack);
Str1:='You bandage';
Str2:='You put ';
Str3:='You sucessfully ';
Str4:='Do you ';
Str5:='You must wait to perform another action';
WaitConnection(5000);
If GetType(ObjAtLayer(ShirtLayer))=Curse then begin Unequip(ShirtLayer); Wait(1000); end;
While not Dead do
begin
If Life>=CharHP then
begin
Equipt(ShirtLayer,Curse);
Wait(3000);
While Life>CharHP do Wait(3000);
Unequip(ShirtLayer);
end;
While HP < CharHP do
Begin
UseObject(bandages);
WaitTargetSelf;
While (InJournal(str1)<0) and (InJournal(str2)<0) and (InJournal(str3)<0) and (InJournal(str4)<0) and (InJournal(str5)<0) do wait(500);
Wait(2500)
end;
Wait(100)
FindType(bloodbandages,backpack);
if FindCount >= 1 then
begin
wait(100);
AddToSystemJournal('Начинаю мыть бинты');
UseObject(finditem);
WaitForTarget(5000);
if TargetPresent then TargetToObject(Washbasin);
wait(100);
AddToSystemJournal('Вымыл бинты');
end
else
AddToSystemJournal('Нечего мыть');
end;
END.