Script to use Anchor skill for champions only
const
ANCHOR_ID = 1170;
function canCast(skillId:integer):boolean;
var
Skill: TL2Skill;
begin
Result:=(SkillList.ByID(skillId, Skill)) and (Skill.EndTime = 0);
end;
procedure paralyzeChampions;
begin
while true do begin
delay(1000);
if (Engine.Status = lsOnline) then begin
if (user.target.Team <> 0) and canCast(ANCHOR_ID) then begin
Engine.UseSkill(ANCHOR_ID);
end;
end;
end;
end;
begin
Script.NewThread(@paralyzeChampions);
delay(-1);
end.
Author: Velmsun
