Jump to content

L2 Adrenaline Scripts.


Recommended Posts

Hey. I am playing on http://l2adrenalin.com/ , it's a multicraft and I made my tts script, changed it cause all npcs are nearby. but my l2 crashes every time I run the script. (i'm 90% sure it's cause of bypasses (tried removing it from script - runs to npcs, but don't talk to them, as it supposed to do without bypass and does not crash)). Is there any way to solve this problem?

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

im working on an enchant script and i try to equip an unenchanted item even if i have some already enchanted in my inventory.

How can i equip an unenchanted item instead of the first item in my inventory?

 

I tried this:

 Engine.UseItem ('Elegia Leather Breastplate', Item.EnchantLevel=0);//if item is not equiped do equip unenchanted

but this does not work.

 

can someone help?

Edited by jorvus
Link to comment
Share on other sites

Hi,

im working on an enchant script and i try to equip an unenchanted item even if i have some already enchanted in my inventory.

How can i equip an unenchanted item instead of the first item in my inventory?

 

I tried this:

 Engine.UseItem ('Elegia Leather Breastplate', Item.EnchantLevel=0);//if item is not equiped do equip unenchanted

but this does not work.

 

can someone help?

maybe this help

if inventory.user.byid(123, item) and (item.enchantlevel = 0) then begin
  engine.useitem(item);
end;
Link to comment
Share on other sites

 

 

maybe this help

if inventory.user.byid(123, item) and (item.enchantlevel = 0) then begin
engine.useitem(item);
end;

 

First thanks for your fast reply, your great!

The problem is, i do have enchanted items in my inventory and as i understand, this code checks if there are ANY enchanted items of the same ID and if yes then it does not use the item.

 

What i want is, to enchant lets say 20 items in a row to +7. If the first item is +7 then use an unenchanted item.

 

Any help is appreciated , meanwhile ill sleep over it, maybe that helps^^

Link to comment
Share on other sites

 

 

First thanks for your fast reply, your great!

The problem is, i do have enchanted items in my inventory and as i understand, this code checks if there are ANY enchanted items of the same ID and if yes then it does not use the item.

 

What i want is, to enchant lets say 20 items in a row to +7. If the first item is +7 then use an unenchanted item.

 

Any help is appreciated , meanwhile ill sleep over it, maybe that helps^^

 

i checked that, and i dont know how use item with same id

Link to comment
Share on other sites

Hello there, Im looking for macro ussage and/or player target using Adrenaline scripting language (Npc Buffer is Player type and doesn't have ID) any help? :D

engine.settarget('Npc Buffer');
engine.movetotarget;
delay(1000);
engine.attack;

probably must work

Link to comment
Share on other sites

engine.settarget('Npc Buffer');
engine.movetotarget;
delay(1000);
engine.attack;

probably must work

 

The only thing I needed was

engine.settarget('Npc Buffer');

Thanks :D

Link to comment
Share on other sites

Hi, first of all, sorry for my English. I try to learn Delphi ... but my char looks like a headless chicken.

1) When my lvl up to 20 or 40 I can change my class in a "support dialogue," with the symbol "?". If this can be done with the scripts? I do not know how to open this dialog box.

2) What is the best way to know what city am I? I try to use 4 points, to a large area around the city and compare with my current position, but not working well.

3) if possible run scripts step by step? The same that “f5” and “f8” in VB.

4) if possible open mails and take all?

Ty for reading.

Edited by varrakuda
Link to comment
Share on other sites

Hi, first of all, sorry for my English. I try to learn Delphi ... but my char looks like a headless chicken.

1) When my lvl up to 20 or 40 I can change my class in a "support dialogue," with the symbol "?". If this can be done with the scripts? I do not know how to open this dialog box.

2) What is the best way to know what city am I? I try to use 4 points, to a large area around the city and compare with my current position, but not working well.

3) if possible run scripts step by step? The same that “f5” and “f8” in VB.

4) if possible open mails and take all?

Ty for reading.

 

1: depends on what type of dialogue box it is. If it's tutorial window no. If dialogue box, yes. Engine.DlgSel('whatever')

2: You gotta have spawnpoints in all cities/the city you know you will be in. Eg. if you soe from somewhere near Giran you will end up in one of the n spawnpoints in Giran. See adr scripting guide for how to use 'inrange' command.

3: yes. Again, see scripting manual. Hint: QuestStatus

4: no

Link to comment
Share on other sites

1: depends on what type of dialogue box it is. If it's tutorial window no. If dialogue box, yes. Engine.DlgSel('whatever')

2: You gotta have spawnpoints in all cities/the city you know you will be in. Eg. if you soe from somewhere near Giran you will end up in one of the n spawnpoints in Giran. See adr scripting guide for how to use 'inrange' command.

3: yes. Again, see scripting manual. Hint: QuestStatus

4: no

 

1: ok now i open the question but imposible select class :S

 

d6JLnw.jpg

    engine.openquestion;
    delay(500);
    engine.dlgsel('Orc Raider.');
    delay(500);
    engine.dlgsel('Orc Raider');
    delay(500);
    engine.dlgsel(1);
    delay(500);
    engine.bypasstoserver ('Orc Raider.');
    delay(500);
    engine.bypasstoserver ('bypass -h Orc Raider.');
    delay(500);      
    engine.bypasstoserver ('-h Orc Raider.');

or https://imageshack.us/i/pad6JLnwj

 

2: ok

3: i don't understand :S

4: ok 

 

Ty a lot

Edited by varrakuda
Link to comment
Share on other sites

1: ok now i open the question but imposible select class :S

 

d6JLnw.jpg

    engine.openquestion;
    delay(500);
    engine.dlgsel('Orc Raider.');
    delay(500);
    engine.dlgsel('Orc Raider');
    delay(500);
    engine.dlgsel(1);
    delay(500);
    engine.bypasstoserver ('Orc Raider.');
    delay(500);
    engine.bypasstoserver ('bypass -h Orc Raider.');
    delay(500);      
    engine.bypasstoserver ('-h Orc Raider.');

2: ok

3: i don't understand :S

4: ok 

 

Ty a lot

i dont see screen reupload

Link to comment
Share on other sites

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