Code: Select all
program fightDexter;
var t : Integer;
    bandage,en:Cardinal;
    tweapon:word;
{$Include 'all.inc'}
procedure weaponckeck;
begin
if (not dead) and (connected) then begin
checksave;
if (getquantity(findtype(tweapon,backpack)) > 0) and (gettype(ObjAtLayer(RhandLayer)) <> gettype(finditem)) then begin
addtosystemjournal('Weapon Change'+inttostr(findcount));
UnEquip(RHandLayer);
wait(500);
Equip(RhandLayer,finditem);
end;
end;
end;
Begin
tweapon := $0F51;
en:=$001FAFD6;
SetARStatus(true);
clearjournal;
while not Dead do
  begin
    WaitConnection(1000);
    if Connected then
    begin
      Attack(en);
        for t := 0 to 60 do
          begin
            if Life<(GetMaxHP(Self)-40) then
              begin
                if TargetPresent then CancelTarget;
                checkSave;
			bandage:=findtype($0E21,backpack);
                UseObject(bandage);
                WaitTargetSelf;
                Wait(100);
              end;
            wait(100)
          end;
        weaponckeck;
        hungry(1,ground);
     clearjournal;
    end;
  end;
end
стелс пишет Compiler: [Error] (153:1): period ('.') expected


