to fix einai:
Index: java/com/l2jserver/gameserver/model/actor/L2Attackable.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/L2Attackable.java (revision 3978)
+++ java/com/l2jserver/gameserver/model/actor/L2Attackable.java (working copy)
@@ -1310,7 +1310,7 @@
// At least 1 item will be dropped for sure. So the chance will be adjusted to 100%
// if smaller.
- int dropChance = drop.getChance();
+ long dropChance = drop.getChance();
if (Config.RATE_DROP_ITEMS_ID.get(drop.getItemId()) != 0)
dropChance *= Config.RATE_DROP_ITEMS_ID.get(drop.getItemId());
@@ -1320,8 +1320,6 @@
if (Config.L2JMOD_CHAMPION_ENABLE && isChampion())
dropChance *= Config.L2JMOD_CHAMPION_REWARDS;
- dropChance = Math.round(dropChance);
-
if (dropChance < L2DropData.MAX_CHANCE)
dropChance = L2DropData.MAX_CHANCE;
@@ -1335,7 +1333,7 @@
// Count and chance adjustment for high rate servers
if (dropChance > L2DropData.MAX_CHANCE && !Config.PRECISE_DROP_CALCULATION)
{
- int multiplier = dropChance / L2DropData.MAX_CHANCE;
+ int multiplier = (int) (dropChance / L2DropData.MAX_CHANCE);
if (min < max)
itemCount += Rnd.get(min * multiplier, max * multiplier);
credits: Stake apo l2jserver forum
enas mod na kleisei to topic