Jump to content

Recommended Posts

Posted

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?

  • 2 weeks later...
Posted (edited)

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
Posted

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

 

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

Posted

 

 

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

Posted

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

Posted (edited)

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
Posted

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

Posted (edited)

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
Posted

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

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

    • No, the real purpose is cheating and custom  development for games.  I'm building a custom AI moderator specially for checking illegal activity and flag current topica.
    • Hello trying to edit Armorgrp_Classic.dat using L2ClientDat Editor - l2jmobius edition I can normally open a file but can't save, even can't save "clean" version of file (just open and then click save) Other files i can normally open, edit and save. but there is problem with Armorgrp_Classic.dat Anyone find solution, or other Editor for protocol 166 ?   [25/12 15:10:11] --------------------------------------- [25/12 15:10:11] Open file: Armorgrp_Classic.dat [25/12 15:10:11] File Armorgrp_Classic.dat encrypted. Lineage2Ver413 decrypt ... [25/12 15:10:11] Decrypt Armorgrp_Classic.dat file successfully by v413_encdec decrypter. [25/12 15:10:11] Read the file structure ... [25/12 15:10:11] Unpacking [L2GameDataName.dat] [25/12 15:10:11] GameDataName: Load 97534 count. [25/12 15:10:11] Completed. [25/12 15:11:32] Wrong param count for wrapper: fertheia_mesh_add, paramIndex: 1, params: {{{[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11;[none]};{{109;114};{0;-1};{109;114};{0;-1};{109;114}}};{[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None]};[None]} -node: fertheia_mesh_add[WRAPPER][null][null] param: {{{[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11;[none]};{{109;114};{0;-1};{109;114};{0;-1};{109;114}}};{[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None]};[None]} org.l2jmobius.xml.exceptions.PackDataException: Wrong param count for wrapper: fertheia_mesh_add, paramIndex: 1, params: {{{[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11;[none]};{{109;114};{0;-1};{109;114};{0;-1};{109;114}}};{[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None]};[None]} -node: fertheia_mesh_add[WRAPPER][null][null] param: {{{[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11];[None];[LineageAccessory3.fertheia_pvp_Hrm_ad11;[none]};{{109;114};{0;-1};{109;114};{0;-1};{109;114}}};{[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None];[Mantleguild.kingdom.E_elmd_1_t00];[None]};[None]} at org.l2jmobius.xml.DescriptorWriter.packData(DescriptorWriter.java:275) at org.l2jmobius.xml.DescriptorWriter.packData(DescriptorWriter.java:184) at org.l2jmobius.xml.DescriptorWriter.parseData(DescriptorWriter.java:100) at org.l2jmobius.actions.SaveDat.action(SaveDat.java:70) at org.l2jmobius.actions.ActionTask.doInBackground(ActionTask.java:48) at org.l2jmobius.actions.ActionTask.doInBackground(ActionTask.java:27) at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:303) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328) at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:340) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619) at java.base/java.lang.Thread.run(Thread.java:1447) [25/12 15:11:32] buff == null.  
    • Leave your contact information or write to me on Telegram @dieorditsa
    • Hello everyone, I’m looking for a graphic designer to design a custom logo that will be used in NPC HTML interfaces for Lineage. Please send me a private message if you are interested.
    • ok sounds good sign me up
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock