Random Chest / Mystery Box System

Lordeze

Heir
Customer
Hello, I have a question.
I have the idea of creating mystery chests that can be purchased with Adena or coins. The rewards would be based on random chances, for example:
  • 40% Item A
  • 30% Item B
  • 20% Item C
  • 10% Rare Item
I would also like to have different chest tiers, such as Normal, Event, Premium, or class-based chests like Warrior, Crafter, Archer, Mage, etc.
I know there is something similar implemented, for example Capsule Items, but I’m not sure if that would be suitable for this purpose.
Is there any existing option, service, or feature that is closer to this system that I may have overlooked?
I wanted to ask before attempting to implement something from scratch.
Thank you very much.
(Reference image attached.)
(Imagen de referencia adjunta.)1771793861926.webp
 
Hello, I have a question.
I have the idea of creating mystery chests that can be purchased with Adena or coins. The rewards would be based on random chances, for example:
  • 40% Item A
  • 30% Item B
  • 20% Item C
  • 10% Rare Item
I would also like to have different chest tiers, such as Normal, Event, Premium, or class-based chests like Warrior, Crafter, Archer, Mage, etc.
I know there is something similar implemented, for example Capsule Items, but I’m not sure if that would be suitable for this purpose.
Is there any existing option, service, or feature that is closer to this system that I may have overlooked?
I wanted to ask before attempting to implement something from scratch.
Thank you very much.
(Reference image attached.)
(Imagen de referencia adjunta.)View attachment 7949
The capsule system is identical to this; just set the chance, remembering that the sum of all items inside the chest must equal 100.
 
Hello, I have a question.
I have the idea of creating mystery chests that can be purchased with Adena or coins. The rewards would be based on random chances, for example:
  • 40% Item A
  • 30% Item B
  • 20% Item C
  • 10% Rare Item
I would also like to have different chest tiers, such as Normal, Event, Premium, or class-based chests like Warrior, Crafter, Archer, Mage, etc.
I know there is something similar implemented, for example Capsule Items, but I’m not sure if that would be suitable for this purpose.
Is there any existing option, service, or feature that is closer to this system that I may have overlooked?
I wanted to ask before attempting to implement something from scratch.
Thank you very much.
(Reference image attached.)
(Imagen de referencia adjunta.)View attachment 7949

ez
common example with 1 item in mysterty (all sum = 100%)
XML:
<capsule itemId="8536"><!-- ID Mystery box -->
        <item id="855" min="1" max="1" chance="70." /> <!-- ID item A -->
        <item id="119" min="1" max="1" chance="20." /><!-- ID item B -->
        <item id="886" min="1" max="1" chance="10." /><!-- ID Item C -->
    </capsule>

hard example with some items 1+ in mystery box
XML:
<capsule itemId="8536"><!-- ID Mystery box -->
        <item id="855" min="1" max="1" chance="60." /> <!-- ID item A -->
        <item id="119" min="1" max="1" chance="55." /><!-- ID item B -->
        <item id="886" min="1" max="1" chance="40." /><!-- ID Item C -->
    </capsule>

rare example with using some item for open (key)
XML:
<capsule itemId="9566" requiredItemId="9567" requiredItemAmount="1"> <!-- ID Mystery box -->
        <item id="855" min="1" max="1" chance="60." /> <!-- ID item A -->
        <item id="119" min="1" max="1" chance="55." /><!-- ID item B -->
        <item id="886" min="1" max="1" chance="40." /><!-- ID Item C -->
    </capsule>

example with prem-noprem items
XML:
<capsule itemId="8536"><!-- ID Mystery box -->
        <item id="855" min="1" max="1" chance="70." /> <!-- ID item A -->
        <item id="119" min="1" max="1" chance="20." /><!-- ID item B -->
        <item id="886" min="1" max="1" chance="10." /><!-- ID Item C -->
        <premium_item="855" min="1" max="1" chance="70." /> <!-- ID item A -->
        <premium_item="119" min="1" max="1" chance="20." /><!-- ID item B -->
        <premium_item="886" min="1" max="1" chance="10." /><!-- ID Item C -->
    </capsule>

ummortal example with enchant items
XML:
<capsule itemId="8536"><!-- ID Mystery box -->
        <item id="855" min="1" max="1" enchant_min="0" enchant_max="9" chance="60." /> <!-- ID item A -->
        <item id="119" min="1" max="1" enchant_min="0" enchant_max="9" chance="55." /><!-- ID item B -->
        <item id="886" min="1" max="1" enchant_min="0" enchant_max="9" chance="40." /><!-- ID Item C -->
    </capsule>
 
Back
Top