Code: Select all
Program Dialog;
var
stime : TDateTime;
a,b,c : integer;
{$Include 'all.inc'}
Begin
SetARStatus(true);
hungry(1,backpack);
clearjournal;
stime := Now;
Addtosystemjournal('000');
repeat
wait(5000);
a := InJournalBetweenTimes('здарова|ку|',stime, Now);
b := InJournalBetweenTimes('красавчек!|оло', stime, Now);
c := InJournalBetweenTimes('а ты че!', stime, Now);
Addtosystemjournal('11111');
wait(200);
until (a >= 0) or (b >= 0) or (c >= 0) or Dead or (Now > stime + (2.0/1440));
UOSay('привет');
wait(1000);
End.