Path: gameserver/data/capsule_items.xml
1. File structure - capsule_items.xml
2. Full list of attributes
For <capsule> tag:
3. How to add a new box
1. File structure - capsule_items.xml
XML:
<?xml version="1.0" encoding="UTF-8"?>
<list>
<!-- Example 1: Regular box with equal chances -->
<capsule itemId="22000" consume="true">
<item id="22006" min="3" max="3" chance="20.55555" />
<item id="22007" min="2" max="2" chance="14.01515" />
<item id="22008" min="1" max="1" chance="6.16666" />
<!-- ... other items ... -->
<item id="22025" min="5" max="5" chance="12.77777" />
</capsule>
<!-- Example 2: Premium version of the same box -->
<capsule itemId="22001" consume="true">
<item id="22007" min="3" max="3" chance="27.27272" />
<!-- Premium rewards (only for players with active Premium Account) -->
<premium_item id="8749" min="1" max="1" chance="15" />
<premium_item id="8750" min="1" max="1" chance="15" />
</capsule>
<!-- Example 3: Requires an item to open -->
<capsule itemId="9599" requiredItemId="9600" requiredItemAmount="1" consume="true">
<item id="9600" min="1" max="2" chance="4" />
<item id="9601" min="1" max="2" chance="10" />
<item id="9602" min="1" max="1" chance="1" />
</capsule>
<!-- Example 4: Pre-enchanted items -->
<capsule itemId="21799" consume="true">
<item id="21793" min="1" max="1" enchant_min="0" enchant_max="0" chance="100" />
<item id="21794" min="1" max="1" enchant_min="0" enchant_max="0" chance="100" />
<!-- all set pieces -->
</capsule>
</list>
2. Full list of attributes
For <capsule> tag:
- itemId - capsule ID (required)
- requiredItemId - ID of item required to open (0 = none)
- requiredItemAmount - amount of required item
- consume="true|false" - destroy capsule after use (default true)
- id - reward item ID
- min / max - quantity (if min=max - fixed amount)
- chance - chance in percent (up to 5 decimal places, total ≤ 100.00)
- enchant_min / enchant_max - enchant level (if min=max - fixed, otherwise random range)
- Only ONE random item drops from the <item> + <premium_item> list (or nothing if total chance < 100%).
- All items with chance="100" drop 100% of the time (guaranteed rewards).
- Premium rewards work only for players with active Premium Account (hasBonus()).
3. How to add a new box
- Open gameserver/data/capsule_items.xml
- Add new <capsule itemId="YOUR_ID"> block
- Fill <item> and optional <premium_item> tags
- Save file
- Restart server
Last edited: