|
|
|
@ -563,7 +563,9 @@ public class ItemFactory {
@@ -563,7 +563,9 @@ public class ItemFactory {
|
|
|
|
|
ml = new MobLoot(npc, template, false); |
|
|
|
|
|
|
|
|
|
ml.containerType = Enum.ItemContainerType.FORGE; |
|
|
|
|
ml.setName(customName); |
|
|
|
|
|
|
|
|
|
if (customName.isEmpty() == false) |
|
|
|
|
ml.name = customName; |
|
|
|
|
|
|
|
|
|
if (prefix != null) { |
|
|
|
|
ml.addPermanentEnchantment(prefix.getIDString(), 0, 0, true); |
|
|
|
@ -610,8 +612,8 @@ public class ItemFactory {
@@ -610,8 +612,8 @@ public class ItemFactory {
|
|
|
|
|
if (pc != null) |
|
|
|
|
playerID = pc.getObjectUUID(); |
|
|
|
|
|
|
|
|
|
DbManager.NPCQueries.ADD_TO_PRODUCTION_LIST(ml.getObjectUUID(), npc.getObjectUUID(), ml.getTemplateID(), dateTime, prefixString, suffixString, ml.getCustomName(), false, playerID); |
|
|
|
|
ProducedItem pi = new ProducedItem(npc.getRolling().size(), npc.getObjectUUID(), ml.getTemplateID(), dateTime, false, prefixString, suffixString, ml.getCustomName(), playerID); |
|
|
|
|
DbManager.NPCQueries.ADD_TO_PRODUCTION_LIST(ml.getObjectUUID(), npc.getObjectUUID(), ml.getTemplateID(), dateTime, prefixString, suffixString, ml.name, false, playerID); |
|
|
|
|
ProducedItem pi = new ProducedItem(npc.getRolling().size(), npc.getObjectUUID(), ml.getTemplateID(), dateTime, false, prefixString, suffixString, ml.name, playerID); |
|
|
|
|
pi.setProducedItemID(ml.getObjectUUID()); |
|
|
|
|
pi.setAmount(itemsToRoll); |
|
|
|
|
|
|
|
|
@ -748,9 +750,9 @@ public class ItemFactory {
@@ -748,9 +750,9 @@ public class ItemFactory {
|
|
|
|
|
if (playerCharacter != null) |
|
|
|
|
playerID = playerCharacter.getObjectUUID(); |
|
|
|
|
|
|
|
|
|
DbManager.NPCQueries.ADD_TO_PRODUCTION_LIST(toRoll.getObjectUUID(), vendor.getObjectUUID(), toRoll.getTemplateID(), dateTime, prefix, suffix, toRoll.getCustomName(), true, playerID); |
|
|
|
|
DbManager.NPCQueries.ADD_TO_PRODUCTION_LIST(toRoll.getObjectUUID(), vendor.getObjectUUID(), toRoll.getTemplateID(), dateTime, prefix, suffix, toRoll.name, true, playerID); |
|
|
|
|
|
|
|
|
|
ProducedItem pi = new ProducedItem(toRoll.getObjectUUID(), vendor.getObjectUUID(), toRoll.getTemplateID(), dateTime, true, prefix, suffix, toRoll.getCustomName(), playerID); |
|
|
|
|
ProducedItem pi = new ProducedItem(toRoll.getObjectUUID(), vendor.getObjectUUID(), toRoll.getTemplateID(), dateTime, true, prefix, suffix, toRoll.name, playerID); |
|
|
|
|
pi.setProducedItemID(toRoll.getObjectUUID()); |
|
|
|
|
pi.setAmount(itemsToRoll); |
|
|
|
|
ItemQueue produced = ItemQueue.borrow(pi, (long) (time * Float.parseFloat(ConfigManager.MB_PRODUCTION_RATE.getValue()))); |
|
|
|
|