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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...