Jump to content

Recommended Posts

  • 3 weeks later...
Posted

hi ppl. how do I run it for the party. I can not run

 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.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 :=6313;
  ItemID_2 :=11101;  
    
  while delay(555) do
  begin
    if not isHaveBuff([1397]) 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.

 

Posted (edited)

LF a script to get reward from npc.  i have 100k items and 1x Need 400 items. 

 

https://l2db.info/high-five/quests/290-Threat-Removal its the quest

 

 

Pinaps  

Quest

Threat Removal (In Progress)

Take the Reward 

 

repeat

 

greets 

 

Edited by Emi
Posted (edited)
On 11/13/2018 at 11:11 PM, Emi said:

LF a script to get reward from npc.  i have 100k items and 1x Need 400 items. 

 

https://l2db.info/high-five/quests/290-Threat-Removal its the quest

 

 

Pinaps  

Quest

Threat Removal (In Progress)

Take the Reward 

 

repeat

 

greets 

 

 

You need somthing like this:

 

begin

  while true do begin

       engine.settarget('name of npc');

       delay(200);

       engine.dlgopen;

       engine.dlgsel('Something_1');

       delay(200);

      engine.dlgsel('something_2');

      delay(1000);

  end;

end.

Edited by Software
Posted (edited)

i want to make script for selling some item to shop on alt+B but this not work some one can help me

------------------------------------------------------------------------------------------------------------------------------------------------- 

 var
item: TL2Item;

begin
while true do begin
delay(500);

if inventory.user.byid(1373, item) then begin
if (user.target.dead) or (user.target = nil) then begin
engine.facecontrol(0,false);
while user.incombat do delay(1000);
engine.bypasstoserver('_bbshome');   //use alt and b change for your server
delay(1000);
engine.bypasstoserver('_bbsloc_CommunitySell');
delay(1000);
Engine.DlgOpen;
Engine.Dlgsel(2);  //(which npc window option to choose)
Delay(500);
Engine.NPCExchange(1373, 2);    // Magic Gem
delay(1000);
end;
end;
end;
end.

---------------------------------------------------------------------------------------------------------------------------------------------------------

Thank you

Edited by Black9981
Posted (edited)

i want to make script for selling some item to shop on alt+B but this not work some one can help me

------------------------------------------------------------------------------------------------------------------------------------------------- 

 var
item: TL2Item;

begin
while true do begin
delay(500);

if inventory.user.byid(1373, item) then begin
if (user.target.dead) or (user.target = nil) then begin
engine.facecontrol(0,false);
while user.incombat do delay(1000);
engine.bypasstoserver('_bbshome');   //use alt and b change for your server
delay(1000);
engine.bypasstoserver('_bbsloc_CommunitySell');
delay(1000);
Engine.DlgOpen;
Engine.Dlgsel(2);  //(which npc window option to choose)
Delay(500);
Engine.NPCExchange(1373, 2);    // Magic Gem
delay(1000);
end;
end;
end;
end.

---------------------------------------------------------------------------------------------------------------------------------------------------------

Thank you

Shot00001.gif

Edited by Black9981
Posted
9 hours ago, Black9981 said:

i want to make script for selling some item to shop on alt+B but this not work some one can help me

------------------------------------------------------------------------------------------------------------------------------------------------- 

 var
item: TL2Item;

begin
while true do begin
delay(500);

if inventory.user.byid(1373, item) then begin
if (user.target.dead) or (user.target = nil) then begin
engine.facecontrol(0,false);
while user.incombat do delay(1000);
engine.bypasstoserver('_bbshome');   //use alt and b change for your server
delay(1000);
engine.bypasstoserver('_bbsloc_CommunitySell');
delay(1000);
Engine.DlgOpen;
Engine.Dlgsel(2);  //(which npc window option to choose)
Delay(500);
Engine.NPCExchange(1373, 2);    // Magic Gem
delay(1000);
end;
end;
end;
end.

---------------------------------------------------------------------------------------------------------------------------------------------------------

Thank you

Shot00001.gif

https://adrenalinebot.com/en/api/adrenaline/Classes/TL2Control#NpcTrade

Posted (edited)

Hello everyone,

 

I would like to ask for a way to know when my pet/summon and pt members are attacked by mobs.

 

I have trying to figure this out for days but still not get it. I tried to use engine.findenemy() but its didnt work with my pet/summon:

 

uses SysUtils;
var npc: TL2Npc;
var pet: TL2Pet;
Begin
	while engine.status = lsOnline do
	begin
			REPEAT
				Engine.UseSkill('Servitor Recharge');
				if engine.findenemy(npc,pet,300) then Break;
			UNTIL User.MP > 95; 
	end;
end.

 

Please help me solve this, and I am looking for a way to make it work with pt members too.

Thank you so much!

Edited by zenko_218
Posted
25 minutes ago, zenko_218 said:

Hello everyone,

 

I would like to ask for a way to know when my pet/summon and pt members are attacked by mobs.

 

I have trying to figure this out for days but still not get it. I tried to use engine.findenemy() but its didnt work with my pet/summon:

 


uses SysUtils;
var npc: TL2Npc;
var pet: TL2Pet;
Begin
	while engine.status = lsOnline do
	begin
			REPEAT
				Engine.UseSkill('Servitor Recharge');
				if engine.findenemy(npc,pet,300) then Break;
			UNTIL User.MP > 95; 
	end;
end.

 

Please help me solve this, and I am looking for a way to make it work with pt members too.

Thank you so much!

var
  i : integer;
  mob : tl2npc;
begin
  for i:= 0 to npclist.count -1 do
  begin
    mob := npclist(i);
    if (mob.atkoid = user.oid) and (not mob.dead) then
    begin
      print(mob.name);
    end;
  end;
end.

seems you can check by "atkOID"

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



  • Posts

    • This has been happening for years now. That’s exactly why you don’t see many new people joining this forum anymore  most of the community has already moved elsewhere. MaxCheaters has been dying for years, and at this point it feels almost completely dead.  
    • First of all i don't use this account to do anything other than just reported that someone scammed me few bucks 3 days ago.  Second, who says i did scam, my name is ahead many topics because i had the most clients in the forum. Afcourse i had bad deals since 2017.    Also do i even know you? PM me if you have some issue do not write in public as if you are some savior or want maxcheaters owneship. 
    • 🔥 Lin2Web CMS Version 2.0 : New Engine! 🔥                 A fully rebuilt, fast and modern CMS for Lineage 2 servers. ✅ Player panel: game accounts, warehouse, send items to game, HWID/IP protection, unstuck ✅ Donate: 20+ payment systems (PayPal, Stripe, CoinPayments, CryptoCloud, FreeKassa and more) ✅ Services: name/gender change, karma clear, premium, item & skin transfer, starter packs ✅ Bonuses: promo codes, referrals, vote rewards, season, clan leader and streamer rewards ✅ Statistics: PvP/PK, clans, heroes, olympiad, castles, raid & epic bosses ✅ Live map with online players ✅ Events calendar, news, guides, FAQ ✅ Support ticket system ✅ UTM tracking for ads ✅ Full admin panel ✅ Multi-language, multi-server, custom themes   Site cms: Lin2Web.com   🖥 Supported Servers: L2J: Lucera2, L2J-Scripts, aCis, L2J-Eternity, L2JMobius, L2JFrozen, L2JSunrise, L2JHellas, PWSoft, Fandc, L2J Orion, and others PTS: Vanganth, Depmax64 (AdvExt), MyExt64   Telegram Discord
    • 🔥 Fresh batch ready! Buy 2, Get 1 Free deal is live on our shop. Instant delivery 24/7.
    • Dont try trash topic malaka 🙂
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..