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

    • If you want to make your thread stand out a bit more, adding quick proof pics or a small stock update usually helps buyers feel safer. I’ve had smoother chats with traders after doing that. On a side note, when I’m taking a break from trading, I mess around with the security puzzles in ModsCraft, which has been a fun way to clear my head between deals.
    • ━━━━━━━━━━━━━━━━━━━━━━ L2-SCRIPTS UPDATE ━━━━━━━━━━━━━━━━━━━━━━ Dear MaxCheaters users, We have updated the prices in the first post. Specially for the MaxCheaters community, we significantly reduced prices on many of our old developments, archived projects and source packs. Most of our older Lineage 2 sources are now much more affordable than before, including many Classic and Essence projects. This is a great opportunity for smaller teams, startup servers and developers who always wanted to work with our projects but previously could not afford them. ━━━━━━━━━━━━━━━━━━━━━━ For the past years we were mostly absent from the public scene because our team was working privately on large projects and contract-based development. During this time we accumulated a huge amount of private materials, systems, source codes, client modifications, website solutions and infrastructure developments that were never publicly released. Now, according to completed agreements and partnerships, we finally have the ability to publish and offer part of these materials as our private services and developments. In the upcoming weeks we will also publish a list of our works and services from the last 5 years of private development. ━━━━━━━━━━━━━━━━━━━━━━ Upcoming publications will include: • Private server development • Custom gameplay systems • Client modifications • Websites & ACP systems • Protection solutions • Infrastructure solutions • MMO / Web projects ━━━━━━━━━━━━━━━━━━━━━━ Thank you to everyone who stayed with us all these years.   Telegram:  @L2scripts Websites:  L2-scripts.com    L2-scripts.ru    Mmore.dev Sguard site:  Sguard   Best Regards! ━━━━━━━━━━━━━━━━━━━━━━
    • Tightening the timer to fifteen minutes sounds spot on, especially for players who don’t want to sit around waiting. I’ve had a few hosting hiccups on past projects, and sorting out configs felt a lot like the headaches I solved after dealing with armadiofashion.com for a separate issue where a server kept failing to connect. Little tweaks like that usually smooth things out fast.
    • Could you please re-upload the files 😞
    • We are back on MaxCheaters.   After a long break, we are officially returning to public activity and support for our projects. During this time, SGuard has been heavily reworked: some outdated features were removed, the architecture was simplified and optimized, and the protection itself became more stable, faster, and easier to use. Our goal has always been simple — to provide a protection system that actually works, does not create unnecessary problems for administrators, and does not turn server maintenance into a constant battle with bugs and configuration issues.   What we offer now: • Updated version of SGuard • Simple and fast installation • Stable operation without constant crashes • Support for old and latest chronicles • Java and PTS support • Regular updates and technical support • Private solutions for large projects   We continue to improve our products and are once again open for new clients and partnerships. Thank you to everyone who stayed with us all these years.   ---------------------------------------------------------- Telegram: @l2scripts   L2S Guard: http://guard.l2-scripts.com L2-Scripts Studio: https://l2-scripts.com Private Development: https://mmore.dev
  • 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..