const
range=600;
var
skill: TL2Skill;
i: Integer;
Buffs: TBuffList;
targbc, targ:TL2Live;
BuffList: array of integer;
begin
bufflist:= [522, 627];
begin
while Engine.Status = lsOnline do
begin
if ((Engine.GetSkillList.byid(1409, skill)) and (Skill.EndTime < 950))then
begin
for i:=0 to Party.Chars.Count -1 do
begin
targ := Party.Chars.Items(i);
begin
for i:=0 to high(Bufflist) do
begin
If (targ.Buffs.ById(BuffList, buffs)) and
((targ.name='') or (targ.name=''))
then
begin
Engine.SetTarget(targ);
delay(10);
Engine.Usekey($32);
delay(100);
end;
end;
end;
end;
end;
end;
end;
end.
range=600;
var
skill: TL2Skill;
i: Integer;
Buffs: TBuffList;
targbc, targ:TL2Live;
BuffList: array of integer;
begin
bufflist:= [522, 627];
begin
while Engine.Status = lsOnline do
begin
if ((Engine.GetSkillList.byid(1409, skill)) and (Skill.EndTime < 950))then
begin
for i:=0 to Party.Chars.Count -1 do
begin
targ := Party.Chars.Items(i);
begin
for i:=0 to high(Bufflist) do
begin
If (targ.Buffs.ById(BuffList, buffs)) and
((targ.name='') or (targ.name=''))
then
begin
Engine.SetTarget(targ);
delay(10);
Engine.Usekey($32);
delay(100);
end;
end;
end;
end;
end;
end;
end;
end.
Ребят, трабла в том, что скрипт дает клинс онли 1 члену пати. КАк это исправить?