Just add a check in drop method of your pack. make a list or with one while loop of the items you want and when the retail drop is under dropping just add your drop there.
example with a random item:
// Check if the autoLoot mode is active
if ((isRaid() && Config.AUTO_LOOT_RAID) || (!isRaid() && 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
+ int itemId = Rnd.get(1,9000);
+ ItemInstance extraItem = ItemTable.getInstance().createItem("Extra Item", itemId, 1, player, null);
+
+ while (extraItem == null)
+ {
+ itemId = Rnd.get(1,9000);
+ extraItem = ItemTable.getInstance().createItem("Extra Item", itemId, 1, player, null);
+ }
+
+ IntIntHolder specialItem = new IntIntHolder(extraItem.getItemId(),1);
+ //finally
+ if (your config)
+ player.doAutoLoot(this, specialItem);
+ else
+ dropItem(player, specialItem);