How to work with Extractable Items aka Capsule Items

Deazer

Разработчик
Команда форума
#1
Path: gameserver/data/capsule_items.xml

Format:
<capsule itemId="8534"> The id of the box from which will be the extract of items
<item id="853" The item that will drop
min="1" Minimal amount
max="1" Maximum amount
chance="34." /> The chance to get an item
The total chance should not exceed 100%, if it is below 100%, then there is a chance that nothing will drop out of the box.

Код:
<capsule itemId="8534">
  <item id="853" min="1" max="1" chance="34." />
  <item id="916" min="1" max="1" chance="33." />
  <item id="884" min="1" max="1" chance="33." />
</capsule>
You can also add additional items to open chest.
Example:
<capsule itemId="8534" requiredItemId="4037" requiredItemAmount="1">
<item id="853" min="1" max="1" chance="34." />
<item id="916" min="1" max="1" chance="33." />
<item id="884" min="1" max="1" chance="33." />
</capsule>
Where:
requiredItemId - the id item needed to open the chest
requiredItemAmount - the number of items from the requiredItemId to open the chest


Also, we can specify the sharpening of objects with the extract from the box
Example:
<capsule itemId="9000">
<item id="6656" min="1" max="1" chance="34." enchant_min="6" enchant_max="6"/>
<item id="6657" min="1" max="1" chance="33." enchant_min="1" enchant_max="2"/>
<item id="6658" min="1" max="1" chance="33." enchant_min="6" enchant_max="10"/>
</capsule>
Where:
Enchant_min - minimum value of enchant
Enchant_max - maximum value of enchant
 
Последнее редактирование:
Вверх