Simple script, but u can edit It:
function checkAgro: boolean; var npc: TL2Npc; begin result := Engine.FindEnemy(npc, user, 1100)); end; begin engine.moveto(123,123,123); engine.useskill(123); engine.facecontrol(0,true); while checkAgro do delay(1111); engine.facecontrol(0,false); end.