Jump to content
  • 0

Make an extractable item


Question

Posted

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!

1 answer to this question

Recommended Posts

  • 0
Posted

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

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
Answer this question...

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