Can you give me example, because im little newbie in this area ;dПосмотри как реализован квест на реагенты. Как в ИТ был еще нужен был для масла и че-то там еще на нубл.
Спасиба, but i need a java code for this, i have tryed it but it dont work.<skill id="2174" levels="3" name="Ingredient Bag">
<!-- Confirmed CT2.5 -->
<table name="#extractableItems">
6019,2,30;6013,2,30;6014,1,20;6016,1,20
6017,2,10;6020,2,20;6014,1,35;6016,1,35
6012,1,20;6018,2,20;6019,2,20;6013,1,40
</table>
<set name="capsuled_items_skill" val="#extractableItems" />
<set name="isMagic" val="2" /> <!-- Static Skill -->
<set name="magicLvl" val="1" />
<set name="operateType" val="A1" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="SELF" />
<cond msgId="129">
<and>
<player invSize="10" />
<player weight="80" />
</and>
</cond>
<for>
<effect name="RestorationRandom" />
</for>
</skill>
Okey, thank you for the advice i will try itYou can find nice example in your code.
For example, you can use code from this questВы не можете просматривать ссылку пожалуйста воспользуйтесь следующими ссылками Вход или Регистрация
item
Hallate's Maid Reagent Pouch opens into:
I don't remember an any another item, but i think all " surprise box" items have same behavior.Okey, thank you for the advice i will try it
I saw the code, and i will try to make something but im not so good in java codingI don't remember an any another item, but i think all " surprise box" items have same behavior.
Im using l2j aCis.Which source code do you use?
May be some more useful examples you can find inside data pack...
Thx, I guess somebody else will help you.Im using l2j aCis.
Мб какой то француз, или кто-то другой...Оффтоп:Какой то странный английский, мне кажется, или кто то пытается выставить себя тем, кем не является?
<item id="10000" type="Item" name="Surprise Box">
<set name="default_action" val="capsule" />
<set name="material" val="LIQUID" />
<set name="weight" val="600" />
<set name="price" val="0" />
<set name="is_tradable" val="false"/>
<set name="is_droppable" val="false"/>
<set name="handler" val="ItemSkills" />
<set name="item_skill" val="10000-1" />
</item>
<skill id="10000" levels="1" name="Surprise Box">
<table name="#extractableItems">
<!-- 4037 - item id, 50 - item count, 100 - chance of drop when you extract the item
in this example i put items
COL, 50 units, 100% chance
ADENA, 1kk, with 50% chance
ENRIA, 1 unit, with 20% chance
-->
4037,50,100;
57,1000000,50;
4042,450,20
</table>
<set name="capsuled_items_skill" val="#extractableItems"/>
<set name="mpConsume" val="366"/>
<set name="target" val="TARGET_SELF"/>
<set name="hitTime" val="3000"/>
<set name="skillType" val="EXTRACTABLE"/>
<set name="operateType" val="OP_ACTIVE"/>
<set name="isMagic" val="true"/>
<set name="itemConsumeId" val="1461"/>
<set name="itemConsumeCount" val="1"/>
<set name="reuseDelay" val="180000"/>
</skill>
Thank you for this answer buddy!Acis 370 rev.
Interlude.
First you must create the item Surprise Box in server and client sides. It's for server side.
go to data/stats/items/
create 10000-10099.xml
start of file must be <list> in end, the same of start but with ending tag</list>
between <list> and </list> insert this:
Код:<item id="10000" type="Item" name="Surprise Box"> <set name="default_action" val="capsule" /> <set name="material" val="LIQUID" /> <set name="weight" val="600" /> <set name="price" val="0" /> <set name="is_tradable" val="false"/> <set name="is_droppable" val="false"/> <set name="handler" val="ItemSkills" /> <set name="item_skill" val="10000-1" /> </item>
Second add the skill whose will invoked by the item.
find data/stats/skill/
create in folder the new file with .xml direction
for example: 10000-10099.xml
and insert this code to your created .xml
Код:<skill id="10000" levels="1" name="Surprise Box"> <table name="#extractableItems"> <!-- 4037 - item id, 50 - item count, 100 - chance of drop when you extract the item in this example i put items COL, 50 units, 100% chance ADENA, 1kk, with 50% chance ENRIA, 1 unit, with 20% chance --> 4037,50,100; 57,1000000,50; 4042,450,20 </table> <set name="capsuled_items_skill" val="#extractableItems"/> <set name="mpConsume" val="366"/> <set name="target" val="TARGET_SELF"/> <set name="hitTime" val="3000"/> <set name="skillType" val="EXTRACTABLE"/> <set name="operateType" val="OP_ACTIVE"/> <set name="isMagic" val="true"/> <set name="itemConsumeId" val="1461"/> <set name="itemConsumeCount" val="1"/> <set name="reuseDelay" val="180000"/> </skill>
@Notice
You must create the item in client side, or your item will not be usable.
@See
Java code of realisation for Skill, you can find in
Java code of realisation for Item, you can find in
Good Luck dude.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?