Jump to content
  • 0

[help] problhma me ta adena drops!


Question

Posted

kalhspera!

 

h8ela na afksisw ta adena drops stons server moy kai etsi phga sta config t server kai apo 2500 to phga 6000 (sth gramh p afora ta adena)

parathrhsa loipwn oti enw  egw eixa ayksisei ta drops ta adena p epeftan emeinan to idio

 

etsi phga ston test server kai ebala se ena mob na rixnei 1 adena

1 adena to mob x 6000 to config eprepe na m riksei 6000

anti gi ayto erikse 2147

 

bazo meta sto config t server adena drop x1000

anoigw ton server

1 adena to mob x1000 to config kai m rixnei kanonika 1000 adena

 

me alla logia to megisto p mporei na riksei se adena einai ta adena drop toy mob x 2147

 

parathrhsh:

to 2147 einai ypopolaplasio toy megistoy posoy p mporei na exei enas char se adena sto inventory

2,147 kkk

 

mporei kapoios na me boh8hsei oste na rixnei kanonika ta adena symfwna me ta congif?

 

eyxarhstw!

 

 

ps: o server einai l2j interlude

3 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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

 

Locked.

Guest
This topic is now closed to further replies.


×
×
  • Create New...