Index: C:/Documents and Settings/Pete/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/L2Attackable.java
===================================================================
--- C:/Documents and Settings/Pete/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/L2Attackable.java (revision 1434)
+++ C:/Documents and Settings/Pete/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/L2Attackable.java (working copy)
@@ -1292,12 +1292,9 @@
{
if (Config.DEBUG) _log.fine("Item id to drop: " + item.getItemId() + " amount: " + item.getCount());
- // Check if the autoLoot mode is active
- if (Config.AUTO_LOOT) player.doAutoLoot(this, item); // Give this or these Item(s) to the L2PcInstance that has killed the L2Attackable
- else DropItem(player, item); // drop the item on the ground
-
// Broadcast message if RaidBoss was defeated
- if(this instanceof L2RaidBossInstance)
+ // custom autoloot system - raidbosses and bosses always drop items, not autoloot them
+ if(this instanceof L2RaidBossInstance || this instanceof L2BossInstance)
{
SystemMessage sm;
sm = new SystemMessage(SystemMessageId.S1_DIED_DROPPED_S3_S2);
@@ -1305,6 +1302,10 @@
sm.addItemName(item.getItemId());
sm.addNumber(item.getCount());
broadcastPacket(sm);
+ } else {
+ // Check if the autoLoot mode is active
+ if (Config.AUTO_LOOT) player.doAutoLoot(this, item); // Give this or these Item(s) to the L2PcInstance that has killed the L2Attackable
+ else DropItem(player, item); // drop the item on the ground
}
}
}