Skip to content

Make an extractable item

Featured Replies

Hope you're all do well.

 

I been looking for a guide on how to properly create an extractable item. Couldn't find one for a weeks so created this topic. Sorry , question may be in a wrong section as I'm not sure myself is it client side or server side needs to be done.

 

I'm working on L2j Acis for Interlude.

 

So what I want to make is an item that can extract the following:

I know that total chance must come to exactly 100%, so I need the following:

 

Material 1 and material 2 (two materials at the same time) - chance 30%

Material 3 and material 4 (again another two materials at the same time) - chance 40%

Scroll of Enchant armour - chance 20%

Scroll of Enchant weapon - chance 10%

 

The xml file with extractable_items in gameserver folder contain the following formula:

#ItemID;Production1,Quantity1,Chance1[;Production2,Quantity2,Chance2... ;ProductionN,QuantityN,ChanceN]

 

With this formula is not possible to get two items extracted at the same time (shame). I have tried many possible ways but extractable item works only according to the formula and cannot extract two (or more) items at the same time.

 

In many topics and forums I found that I need to edit or create a new item handler. I am not familial about neither how to do it, locate it or even what the handler itself. I searched a lot but looks like there is no guides available on how to edit/ create item handler.

 

Can someone who knows more about it, share some short guide on where to locate item handler that reads extractable_items.xml file in gameserver, and how to open it (what program needed to open/ edit it).

 

Thank you very much for any help!

You will need to edit your java source , there are many guides here how you can use eclipse. You can start building a clean l2jacis source , try to run it and after you done that you can try mess around with that.. best tip i can give you is that you can search for already working stuff and try understanding code edit things , check test and maybe someday you will do idk what :). In your case you can start searching in java source for extractable_items

 

If you want i can help you with this lucky chest system i made for myself leave discord here

unk23nown.png

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.