Jump to content

Recommended Posts

  • 2 weeks later...
Posted

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

Posted
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

 

  • 4 weeks later...
Posted

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?

Posted (edited)
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
  • 2 weeks later...
Posted
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

Posted
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

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

Posted
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 :(

Posted
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

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