Drop Chance

MetaMan

Heir
Customer
QA Engineer
It's a script that changes all the drop rates for the mobs without the player needing to calculate the math.
this example:
CSS:
<group chance="11.718">
        <reward item_id="271" min="1" max="1" chance="0.3507"/>
        <reward item_id="1799" min="1" max="1" chance="46.8938"/>
        <reward item_id="1866" min="1" max="1" chance="21.1025"/>
        <reward item_id="1871" min="1" max="1" chance="31.653"/>
      </group>

The structure group contains a series of drop chances for different items. The group chance represents the overall probability that any of the items within the group will drop. Let's break it down:

  • The group chance is 11.718%. This is the overall probability that an item from this group will drop.
  • Each reward represents a specific item with its own drop chance:
    • Item 271: Drop chance 0.3507%.
    • Item 1799: Drop chance 46.8938%.
    • Item 1866: Drop chance 21.1025%.
    • Item 1871: Drop chance 31.653%.
The total drop chance for these items (if we were to sum them up) should theoretically reach 100%, but since the group chance is smaller (11.718%), it means there's an 11.718% chance that any of these items will drop when a drop event occurs. Within this percentage, the individual item chances determine which specific item will drop.

Let's make it more detailed the actual drop rate:

To calculate the actual drop rate for item 271, we need to consider both the group chance and the individual item chance. The group chance is 11.718%, and within this group, the drop rate for item 271 is 0.3507%.

To find the final drop rate, we multiply the group chance by the item chance:

0.11718×0.003507=0.000411226860.11718 \times 0.003507 = 0.00041122686
So, the final drop rate for item 271 is approximately 0.0411%, which is just over 0.04%.


So, if you set group chance="100", the item drop rates will be as follows:


  • Item 271: 0.3507%
  • Item 1799: 46.8938%
  • Item 1866: 21.1025%
  • Item 1871: 31.653%
This way, the individual percentages are not affected.

In essence, it will perform all the calculations and change them to the actual drop rates.

Here is the group with the actual drop rates calculated:


CSS:
<group chance="100">
    <reward item_id="271" min="1" max="1" chance="0.0410"/>
    <reward item_id="1799" min="1" max="1" chance="5.4939"/>
    <reward item_id="1866" min="1" max="1" chance="2.4732"/>
    <reward item_id="1871" min="1" max="1" chance="3.7080"/>
</group>

Anyone who doesn't understand can simply try a file and they will understand.

Attention: Add the NPCs that have drops.
 

Attachments

В программе которую вы написали, указываться шанс для групп и оно меняет их ?
А как быть если на сервере ставишь рейт х5 и всё количиство дропа увиличиваеться в 5 раз ?
 
Вот бы кол. дропа подредактировать корректно под рейт дропа...
It's a script that changes all the drop rates for the mobs without the player needing to calculate the math.
this example:
CSS:
<group chance="11.718">
        <reward item_id="271" min="1" max="1" chance="0.3507"/>
        <reward item_id="1799" min="1" max="1" chance="46.8938"/>
        <reward item_id="1866" min="1" max="1" chance="21.1025"/>
        <reward item_id="1871" min="1" max="1" chance="31.653"/>
      </group>

The structure group contains a series of drop chances for different items. The group chance represents the overall probability that any of the items within the group will drop. Let's break it down:

  • The group chance is 11.718%. This is the overall probability that an item from this group will drop.
  • Each reward represents a specific item with its own drop chance:
    • Item 271: Drop chance 0.3507%.
    • Item 1799: Drop chance 46.8938%.
    • Item 1866: Drop chance 21.1025%.
    • Item 1871: Drop chance 31.653%.
The total drop chance for these items (if we were to sum them up) should theoretically reach 100%, but since the group chance is smaller (11.718%), it means there's an 11.718% chance that any of these items will drop when a drop event occurs. Within this percentage, the individual item chances determine which specific item will drop.

Let's make it more detailed the actual drop rate:

To calculate the actual drop rate for item 271, we need to consider both the group chance and the individual item chance. The group chance is 11.718%, and within this group, the drop rate for item 271 is 0.3507%.

To find the final drop rate, we multiply the group chance by the item chance:

0.11718×0.003507=0.000411226860.11718 \times 0.003507 = 0.00041122686
So, the final drop rate for item 271 is approximately 0.0411%, which is just over 0.04%.


So, if you set group chance="100", the item drop rates will be as follows:


  • Item 271: 0.3507%
  • Item 1799: 46.8938%
  • Item 1866: 21.1025%
  • Item 1871: 31.653%
This way, the individual percentages are not affected.

In essence, it will perform all the calculations and change them to the actual drop rates.

Here is the group with the actual drop rates calculated:


CSS:
<group chance="100">
    <reward item_id="271" min="1" max="1" chance="0.0410"/>
    <reward item_id="1799" min="1" max="1" chance="5.4939"/>
    <reward item_id="1866" min="1" max="1" chance="2.4732"/>
    <reward item_id="1871" min="1" max="1" chance="3.7080"/>
</group>

Anyone who doesn't understand can simply try a file and they will understand.

Attention: Add the NPCs that have drops.
Вот бы кол. дропа отредактировать коректно под рейт который нужен игроку.
 
Back
Top