Jump to content

L2 Adrenaline Scripts.


Recommended Posts

  • 2 weeks later...
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

 

Link to comment
Share on other sites

  • 4 weeks later...

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?

Link to comment
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
Link to comment
Share on other sites

  • 2 weeks later...
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

Link to comment
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

Link to comment
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?
 

Link to comment
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 :(

Link to comment
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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



  • Posts

    • Someone ask me for this, it should work on any client that has Kamael race, preview:     Installation - there are two ways to install depending on how you want to use it:   Method 1: If you want to completely replace the original, do:   Copy all lines from your armorgrp to Notepad++, press Ctrl+H, check the "match whole word" option and replace:   kamael.Mkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_MKamael_m001_w_ad00   Then replace:   MKamael.Mkamael_m000_t00_w   by:   AvengersKamaelWings.MKamael_m001_t00_w   Now repeat the same process with the female, replace:   kamael.Fkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_FKamael_m001_w_ad00   Then replace:   FKamael.Fkamael_m000_t00_w   by:   AvengersKamaelWings.FKamael_m001_t00_w   You're done, paste everything back into File Edit and save!   Method 2: If you only want to replace in specific sets, execute the above process only on the armorgrp of those sets.   Repack by: AvengersTeamBr Password: LadrãoDeFrango      
    • 用于解密、加密和编辑 .u 文件的工具。
    • It's always awesome when you find someone who not only delivers great quality but also does it way ahead of schedule. Makes you feel like you hit the jackpot, right? I'm new around here, just stumbled upon this forum, and seeing posts like yours really gives me hope that there are some real pros hanging out in this community.
    • Dear friends! We have good news to announce that the server that will open in June 1 will be the Main server and every 4 months we will make another season server and integrate ( merge ) it into the main that will always be open..  
  • Topics

×
×
  • Create New...