We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

help Premium service

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
paulojackson22
Posts: 8
Joined: Wed Aug 24, 2011 2:40 pm

help Premium service

Post by paulojackson22 » Wed Oct 28, 2015 6:10 pm

someone helps add Premium service l2jserver high five
https://gist.github.com/VlLight/7777405

paulojackson22
Posts: 8
Joined: Wed Aug 24, 2011 2:40 pm

Re: help Premium service

Post by paulojackson22 » Wed Oct 28, 2015 7:56 pm

config
Config.RATE_DROP_ITEMS_BY_RAID and Config.RATE_DROP_ITEMS
fou overwritten with ?

help code for 6670 rev

Index: java/com/l2jserver/gameserver/model/actor/L2Attackable.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/L2Attackable.java (revision 6303)
+++ java/com/l2jserver/gameserver/model/actor/L2Attackable.java (working copy)
@@ -41,6 +41,7 @@
import com.l2jserver.gameserver.datatables.ManorData;
import com.l2jserver.gameserver.enums.InstanceType;
import com.l2jserver.gameserver.enums.QuestEventType;
+import com.l2jserver.gameserver.enums.Rates;
import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager;
import com.l2jserver.gameserver.instancemanager.WalkingManager;
import com.l2jserver.gameserver.model.AbsorberInfo;
@@ -1014,7 +1015,7 @@
deepBlueDrop = 3;
if (drop.getItemId() == PcInventory.ADENA_ID)
{
- deepBlueDrop *= isRaid() && !isRaidMinion() ? (int) Config.RATE_DROP_ITEMS_BY_RAID : (int) Config.RATE_DROP_ITEMS;
+ deepBlueDrop *= (int) lastAttacker.getRate(Rates.DROP_ITEM, PcInventory.ADENA_ID, (isRaid() && !isRaidMinion()));
}
}
}
@@ -1032,18 +1033,7 @@
}

// Applies Drop rates
- if (Config.RATE_DROP_ITEMS_ID.containsKey(drop.getItemId()))
- {
- dropChance *= Config.RATE_DROP_ITEMS_ID.get(drop.getItemId());
- }
- else if (isSweep)
- {
- dropChance *= Config.RATE_DROP_SPOIL;
- }
- else
- {
- dropChance *= isRaid() && !isRaidMinion() ? Config.RATE_DROP_ITEMS_BY_RAID : Config.RATE_DROP_ITEMS;
- }
+ dropChance *= lastAttacker.getRate(isSweep ? Rates.SPOIL : Rates.DROP_ITEM, drop.getItemId(), (isRaid() && !isRaidMinion()));

if (Config.L2JMOD_CHAMPION_ENABLE && isChampion())
{
@@ -1161,7 +1151,7 @@
}

// Applies Drop rates
- categoryDropChance *= isRaid() && !isRaidMinion() ? Config.RATE_DROP_ITEMS_BY_RAID : Config.RATE_DROP_ITEMS;
+ categoryDropChance *= lastAttacker.getRate(Rates.DROP_ITEM, -1, (isRaid() && !isRaidMinion()));

if (Config.L2JMOD_CHAMPION_ENABLE && isChampion())
{
@@ -1195,18 +1185,8 @@
// chance to give a 4th time.
// At least 1 item will be dropped for sure. So the chance will be adjusted to 100%
// if smaller.
+ double dropChance = drop.getChance() * lastAttacker.getRate(Rates.DROP_ITEM, drop.getItemId(), (isRaid() && !isRaidMinion()));

- double dropChance = drop.getChance();
-
- if (Config.RATE_DROP_ITEMS_ID.containsKey(drop.getItemId()))
- {
- dropChance *= Config.RATE_DROP_ITEMS_ID.get(drop.getItemId());
- }
- else
- {
- dropChance *= isRaid() && !isRaidMinion() ? Config.RATE_DROP_ITEMS_BY_RAID : Config.RATE_DROP_ITEMS;
- }
-
if (Config.L2JMOD_CHAMPION_ENABLE && isChampion())

Post Reply