Hello guys. How do I do this script work L2Gamers.cl?
function SetForegroundWindow(hwnd: integer) : Boolean; stdcall;
external 'user32.dll';
function captcha:boolean; begin
if engine.dlgtext.contains('Refresh') or
engine.dlgtext.contains('Captcha') or
engine.dlgtext.contains('60 seconds') or
engine.dlgtext.contains('Bot') then begin
SetForegroundWindow(Engine.GameWindow);
PlaySound(exepath+'\sounds\'+'PlayerAlarm'+'.wav');
delay(500);
StopSound;
end;
end;
begin
while true do begin
delay(300);
captcha();
end;
end.