Проблема не в Getskillvalue, а в UOSay, какая то беда с клилоками.
Проверь какой именно из них вызывает ошибку.
Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
Выход из цикла
-
- Neophyte
- Posts: 22
- Joined: 04.09.2008 5:38
Re: Выход из цикла
Here is an example to "GetSkillValue"
Code: Select all
program AnatomySkill;
var
skill : Double;
procedure AnatomyTraining;
Begin
if GetSkillValue('Anatomy') < 100.0 then
begin
FindDistance := 3;
skill := GetSkillValue('Anatomy');
AddToSystemJournal('Anatomy: '+FloatToStr(skill));
repeat
ClearJournal();
If TargetPresent then CancelTarget;
WaitTargetSelf;
UseSkill('Anatomy');
WaitJournalLine(Now,'anything|about this|creature|forca|agilidade|e ter|parece|parece ter|força|humana',100000);
until GetSkillValue('Anatomy') > 99.9
end;
AddToSystemJournal('Grandmaster Anatomy = 100.0')
end;
Begin
SetArStatus(true);
while connected do
begin
AnatomyTraining;
end;
end.