Warrior777А как насчёт этого?
function am()
local old = 0
while 1 do
local count = 0
for i=36,43 do
count = count + (HasArtefact("Muscip", i) or 0)
end;
if count ~= old then
if old < 8 then
SetObjectiveState("obj", OBJECTIVE_ACTIVE);
startThread(obj);
end;
old = count
end;
sleep(5);
end;
end;
Цикл на цикле и циклом погоняет.