How to create custom extractable item?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Bruteforce
Posts: 110
Joined: Wed Jan 21, 2009 8:22 pm

How to create custom extractable item?

Post by Bruteforce »

I need some help. It was suggested that one could create an extractable item if one wanted random prizes at the TvT event.

Very nice idea... But how to make this work?

I've come this far. I chose itemid 8570 which is an "Event Gift Box" to be my extractable item.
I want it to give different coloured papers as a reward.

I added this line to the extractable items:

Code: Select all

8570;2277;1;4029,1,1;4030,1,5;4031,1,9;4032,1,15;4033,1,15;4034,1,15;4035,1,20;4036,1,20
I use the skill 2277 since it was suggested in some other thread.
I changed the skill to look like this:

Code: Select all

<skill id="2277" levels="1" name="Event Gift Box">  <table name="#itemConsumeId"> 8570 </table>  <set name="itemConsumeId" val="#itemConsumeId"/>  <set name="itemConsumeCount" val="1"/>  <set name="target" val="TARGET_SELF"/>  <set name="skillType" val="EXTRACTABLE"/>  <set name="operateType" val="OP_ACTIVE"/>  <set name="castRange" val="-1"/>  <cond msgId="129">    <and>       <player invSize="10"/>       <player weight="80"/>    </and>  </cond></skill>
Oh, and in the etcitems in the database, I've set the skill to "2277-1;"

But when I try to open the box, I get only a message saying "Your target can not be found".

What am I missing?

Thanks for help!!! :)
Post Reply