Jump to content

Recommended Posts

Good Night Guys!
Im just needing an script to make a sound alert when the captha windows appear. 
Its for Classic 2.0 Server
I try lot of ways to do it but cannot reach it.


Thx in advance!!

Captcha l2 Classic.jpg

Share this post


Link to post
Share on other sites
On 8/22/2018 at 12:55 AM, Leanse said:

Good Night Guys!
Im just needing an script to make a sound alert when the captha windows appear. 
Its for Classic 2.0 Server
I try lot of ways to do it but cannot reach it.


Thx in advance!!

Captcha l2 Classic.jpg

I also need that same script

 

Share this post


Link to post
Share on other sites

Hi guys looking for a script that i can use to move to a few different locations grab a bunch of mobs then pull all the mobs to a corner to AOE and then repeat  the process. Is there something out there i can do to accomplish this?

Share this post


Link to post
Share on other sites
3 hours ago, CertifiedNewbie said:

Hi guys looking for a script that i can use to move to a few different locations grab a bunch of mobs then pull all the mobs to a corner to AOE and then repeat  the process. Is there something out there i can do to accomplish this?


 

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.

Edited by AnitahIsBack

Share this post


Link to post
Share on other sites
On 7/15/2015 at 2:16 AM, adr.bot said:
have fun xd

var meele, range, lowHP, highHP:cardinal;
    item:tl2item;
begin
lowHP   := 40;     //change HP count in %
meele   := 6592;   //weapon ID
highHP  := 80;     //change HP count in %
range   := 7577;   //weapon ID

  while true do begin
  delay(500);
  if (user.hp<lowHP) and inventory.user.byid(meele, item) and not(item.equipped) then begin
  engine.useitem(meele);
  end;
  if (user.hp>highHP) and inventory.user.byid(range, item) and not(item.equipped) then begin
  engine.useitem(range);
  end;
  end;
end.

EDIT: rly nice, take script and run, even "thanks" dont say xd

hi how can i do it according to buff. for example, when the dance ends, it will be dual. You will use the sword weapon while you have a dance buff

Share this post


Link to post
Share on other sites
1 hour ago, gemisiz1 said:

hi how can i do it according to buff. for example, when the dance ends, it will be dual. You will use the sword weapon while you have a dance buff

function isHaveBuff(BuffArray : array of cardinal) : boolean;
var
  i:integer;
  buff : tl2buff;
begin
  result := true;
  for i := 0 to high(BuffArray) do
  begin
    if not user.buffs.byid(BuffArray[i], buff) then
    begin
      result := false;
      exit;
    end;
  end;
end;

function getItem(id : cardinal) : tl2item;
var
  item : tl2item;
begin
  inventory.user.byid(id, item);
  result := item;
end;

var
  item : tl2item;
  ItemID_1, ItemID_2 : cardinal;
begin
  ItemID_1 := 7577;
  ItemID_2 := 6608;
  while delay(555) do
  begin
    if not isHaveBuff([1040, 1068]) then
    begin
      if (getItem(ItemID_1) <> nil) and (not getItem(ItemID_1).equipped) then
      begin
        engine.useItem(ItemID_1);
      end;
    end else
    begin
      if (getItem(ItemID_2) <> nil) and (not getItem(ItemID_2).equipped) then
      begin
        engine.useItem(ItemID_2);
      end;
    end;
  end;
end.

should do job

Share this post


Link to post
Share on other sites
12 hours ago, adr.bot said:

function isHaveBuff(BuffArray : array of cardinal) : boolean;
var
  i:integer;
  buff : tl2buff;
begin
  result := true;
  for i := 0 to high(BuffArray) do
  begin
    if not user.buffs.byid(BuffArray[i], buff) then
    begin
      result := false;
      exit;
    end;
  end;
end;

function getItem(id : cardinal) : tl2item;
var
  item : tl2item;
begin
  inventory.user.byid(id, item);
  result := item;
end;

var
  item : tl2item;
  ItemID_1, ItemID_2 : cardinal;
begin
  ItemID_1 := 7577;
  ItemID_2 := 6608;
  while delay(555) do
  begin
    if not isHaveBuff([1040, 1068]) then
    begin
      if (getItem(ItemID_1) <> nil) and (not getItem(ItemID_1).equipped) then
      begin
        engine.useItem(ItemID_1);
      end;
    end else
    begin
      if (getItem(ItemID_2) <> nil) and (not getItem(ItemID_2).equipped) then
      begin
        engine.useItem(ItemID_2);
      end;
    end;
  end;
end.

should do job

thanks works very well. Can we do it according to the party buff?
 

Share this post


Link to post
Share on other sites
4 minutes ago, adr.bot said:

party.chars.items(Index).byid(id, tl2buff)

 

function isHaveBuff(BuffArray : array of cardinal) : boolean;
var
  i:integer;
  buff : tl2buff;
begin
  result := true;
  for i := 0 to high(BuffArray) do
  begin
    if not party.chars.items(Index).byid(id, tl2buff) then
    begin
      result := false;
      exit;
    end;
  end;
end;

 

 

not working :(

Share this post


Link to post
Share on other sites
2 minutes ago, gemisiz1 said:

function isHaveBuff(BuffArray : array of cardinal) : boolean;
var
  i:integer;
  buff : tl2buff;
begin
  result := true;
  for i := 0 to high(BuffArray) do
  begin
    if not party.chars.items(Index).byid(id, tl2buff) then
    begin
      result := false;
      exit;
    end;
  end;
end;

 

 

not working :(

u need use for loop to party chars too

Share this post


Link to post
Share on other sites

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

  • Recently Browsing   0 members

    No registered users viewing this page.



×