• тамит животное
• если затамил, то подзывает к себе и убивает
• и так бесконечно
Code: Select all
program animal_taming;
var time_begin : TDateTime;
animal_type : array [1..2] of Byte;
count, i : Integer;
Begin
animal_type[1] := $00DC // Llama
animal_type[2] := $00DC // Llama
FindDistance := 10
FindVertical := 20
ClearJournal
SetARStatus(true)
if not connected then connect
while not connected do wait(100)
SetWarMode(false)
repeat
while (dead = false) and (connected = true) do
begin
if (i > 0) and (i <= 2) then
begin
while FindTypeEx(animal_type[i], $FFFF, ground, false) <> 0 do
begin
time_begin := Now
while InJournalBetweenTimes('accept|already|далеко', time_begin, Now) = -1 do
begin
if TargetPresent then
begin
CancelTarget
wait(1000)
end
WaitTargetObject(FindItem)
UseSkill('Animal Taming')
WaitJournalLine(Now, 'accept|fail|already|battle|далеко|action', 30000)
if InJournalBetweenTimes('action|already', time_begin, Now) <> -1 then wait(1500)
if InJournalBetweenTimes('battle', time_begin, Now) <> -1 then
begin
SetWarMode(false)
wait(1000)
end
end
if InJournalBetweenTimes('accept', time_begin, Now) <> -1 then count := count + 1
Ignore(FindItem)
UOSay('all come')
attack(animal_type);
wait(10000)
end
if dead then
begin
AddToSystemJournal('Умерли')
SetARStatus(false)
Disconnect
Exit
end
until false
End.
17:21:46 [***]: Compiler: [Error] (Taming.sc at 19:1): Semicolon (';') expected
17:21:46 [***]: Compiling failed
17:21:46 [***]: Script Taming.sc stopped successfuly