Jump to content

Recommended Posts

Posted

just say mee// how name Chat on L2  where enter captcha? 


Action:=Engine.WaitAction([laDlg], P1, P2);    this is not hi/ -  other chats work/ but dont work captcha/   (l2tales) 

 

need small help)

Posted


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.

  • Like 1
Posted (edited)
  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.

 

Cant add scripts in crack version? 1.71?

PD: Ty for code :)

Edited by Anitah
Posted

when i hit "play" this line

  function SetForegroundWindow(hwnd: integer) : Boolean; stdcall;

turn into red,so smth is wrong? (noob with delphi)

Posted

when i hit "play" this line

  function SetForegroundWindow(hwnd: integer) : Boolean; stdcall;

turn into red,so smth is wrong? (noob with delphi)

 

How you add this script in the program?

Posted

when i hit "play" this line

  function SetForegroundWindow(hwnd: integer) : Boolean; stdcall;

turn into red,so smth is wrong? (noob with delphi)

copy paste all script, script working, tested

Posted

how do u stop the music???

the script works perfectly but when i pess the captcha the sound still exists...how can i stop that?

.control 

Posted
  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.

hello there can this script also run with l2tower?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock