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.


  • Posts

    • 🍂 The cost on Vibe-sms is dropping, like autumn leaves falling from the trees.     It’s a little sad to watch the last days of summer fade away with its warmth, but that’s how the world works  every season has its own rules. The same goes for our prices: they are gradually but steadily going down, opening up new opportunities and great deals. 💸   🌍 USA is already at the minimum, and Europe, Asia, and dozens of other countries will follow soon. Don’t miss out  fresh rates are waiting for you!   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
    • You didn't tell me anywhere that you wanted core.jar as proof, I have everything ready for an independent developer to review. All the conversations, all your edits. I won't settle anything with you, so you can threaten me again and damage my name.
    • So what? Did i say anything wrong? You have no idea what source/compile is. I still wait for your .jar or source to be posted since you say i destroyed the compiled version of yours. Why you don't post it? Are you afraid that people will just see few addon lines and you did not even know that your source and compiled had different things? I should not even waste 2 minute to fix your raidboss_spawnlist thing.    Your mentally ill. What you posted is our primary deal nothing against me.  Because all he does is post whatever i write as if i hide and i did not say any mod to join and check my discord. i want him actual post something against me or any offenses i did. I also requested him several hours ago to post his .jar where my code "HACKED" his server but he wont post.    Nobody should allow open a random topic and cause issues to other's life without proofs. I demand punishment and soon unless he post evidence that i hurt his server or left him or did not make what he asked. 
    • guys it is probably a misunderstanding if it was windows he would have solve it since its not windows and from the paraphrasing of the developer who eventually fixed the server   the problem was from guessing the login server was not properly opening or already crashed, so the gameserver probably loaded because he was generating logs, and then stopped, my guess is still there was no login to connect and made exits, still this is a guess because i have only saw some logs and images   in one side nobody would destroy a server for this amount of money in the other side he had no experience with the operating system, and i find this logical, i am also still giving some tutorials in the topic owner so he can learn how to compile and not need the help of others, i still believe this can be solved for both parties if they behave   in the end nobody wants to cause bad to another so as i say in my starting point, it is probably a misunderstanding
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock