L2JMobius

C6 Wrong donator drop rates

G-hamsteR · 5 · 5185

Online G-hamsteR

  • Viscount
  • *****
    • Posts: 335
Hello,

I noticed that drops from donator's are not right. Here is a fix that I used.

gameserver/model/actor/Attackable.java:

I removed all donator lines from function private RewardItem calculateRewardItem(PlayerInstance lastAttacker, DropData drop, int levelModifier, boolean isSweep) and left everything at private RewardItem calculateCategorizedRewardItem(PlayerInstance lastAttacker, DropCategory categoryDrops, int levelModifier)

I have modified a few other things (like more adena drops for low-level characters) and I can't post the diff patch, but this fixed my problem.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16117
Like this?
Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 7374)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1294,10 +1294,6 @@
  else
  {
  dropChance *= Config.RATE_DROP_ADENA;
- if (lastAttacker.isDonator())
- {
- dropChance *= Config.DONATOR_ADENA_RATE;
- }
  }
  }
  else if (isSweep)
@@ -1317,10 +1313,6 @@
  else
  {
  dropChance *= Config.RATE_DROP_SPOIL;
- if (lastAttacker.isDonator())
- {
- dropChance *= Config.DONATOR_SPOIL_RATE;
- }
  }
  }
  else if (this instanceof RaidBossInstance)
@@ -1338,10 +1330,6 @@
  else
  {
  dropChance *= Config.RATE_DROP_ITEMS;
- if (lastAttacker.isDonator())
- {
- dropChance *= Config.DONATOR_DROP_RATE;
- }
  }
 
  if (Config.CHAMPION_ENABLE && isChampion())


Online G-hamsteR

  • Viscount
  • *****
    • Posts: 335
Yes. I haven't tested anything else. I only tested drops for donators. Drops regarding seal stones etc might face the same problem.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16117
Tell if when you check for other stuff.
If nothing else exists, I will commit this.