@ -189,7 +189,7 @@ public class ItemFactory {
time * = MBServerStatics . ONE_MINUTE ;
time * = MBServerStatics . ONE_MINUTE ;
if ( ml . getItemBase ( ) . getUUID ( ) > 910010 & & ml . getItemBase ( ) . getUUID ( ) < 910019 ) {
if ( ml . getItemBase ( ) . getUUID ( ) > 910010 & & ml . getItemBase ( ) . getUUID ( ) < 910019 ) {
rank = ml . getItemBas eID ( ) - 910010 ;
rank = ml . getTemplst eID ( ) - 910010 ;
time = rank * 60 * 60 * 3 * 1000 ;
time = rank * 60 * 60 * 3 * 1000 ;
}
}
@ -210,8 +210,8 @@ public class ItemFactory {
if ( pc ! = null )
if ( pc ! = null )
playerID = pc . getObjectUUID ( ) ;
playerID = pc . getObjectUUID ( ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getItemBas eID ( ) , dateTime , "" , "" , "" , false , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTemplst eID ( ) , dateTime , "" , "" , "" , false , playerID ) ;
ProducedItem pi = new ProducedItem ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getItemBas eID ( ) , dateTime , false , "" , "" , "" , playerID ) ;
ProducedItem pi = new ProducedItem ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTemplst eID ( ) , dateTime , false , "" , "" , "" , playerID ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setAmount ( itemsToRoll ) ;
pi . setAmount ( itemsToRoll ) ;
pi . setRandom ( false ) ;
pi . setRandom ( false ) ;
@ -606,7 +606,7 @@ public class ItemFactory {
time * = MBServerStatics . ONE_MINUTE ;
time * = MBServerStatics . ONE_MINUTE ;
if ( ml . getItemBase ( ) . getUUID ( ) > 910010 & & ml . getItemBase ( ) . getUUID ( ) < 910019 ) {
if ( ml . getItemBase ( ) . getUUID ( ) > 910010 & & ml . getItemBase ( ) . getUUID ( ) < 910019 ) {
rank = ml . getItemBas eID ( ) - 910010 ;
rank = ml . getTemplst eID ( ) - 910010 ;
time = rank * 60 * 60 * 3 * 1000 ;
time = rank * 60 * 60 * 3 * 1000 ;
}
}
@ -627,8 +627,8 @@ public class ItemFactory {
if ( pc ! = null )
if ( pc ! = null )
playerID = pc . getObjectUUID ( ) ;
playerID = pc . getObjectUUID ( ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getItemBas eID ( ) , dateTime , prefixString , suffixString , ml . getCustomName ( ) , false , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTemplst eID ( ) , dateTime , prefixString , suffixString , ml . getCustomName ( ) , false , playerID ) ;
ProducedItem pi = new ProducedItem ( npc . getRolling ( ) . size ( ) , npc . getObjectUUID ( ) , ml . getItemBas eID ( ) , dateTime , false , prefixString , suffixString , ml . getCustomName ( ) , playerID ) ;
ProducedItem pi = new ProducedItem ( npc . getRolling ( ) . size ( ) , npc . getObjectUUID ( ) , ml . getTemplst eID ( ) , dateTime , false , prefixString , suffixString , ml . getCustomName ( ) , playerID ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setAmount ( itemsToRoll ) ;
pi . setAmount ( itemsToRoll ) ;
@ -745,7 +745,7 @@ public class ItemFactory {
time * = MBServerStatics . ONE_MINUTE ;
time * = MBServerStatics . ONE_MINUTE ;
if ( toRoll . getItemBase ( ) . getUUID ( ) > 910010 & & toRoll . getItemBase ( ) . getUUID ( ) < 910019 ) {
if ( toRoll . getItemBase ( ) . getUUID ( ) > 910010 & & toRoll . getItemBase ( ) . getUUID ( ) < 910019 ) {
rank = toRoll . getItemBas eID ( ) - 910010 ;
rank = toRoll . getTemplst eID ( ) - 910010 ;
time = rank * 60 * 60 * 3 * 1000 ;
time = rank * 60 * 60 * 3 * 1000 ;
}
}
@ -765,9 +765,9 @@ public class ItemFactory {
if ( playerCharacter ! = null )
if ( playerCharacter ! = null )
playerID = playerCharacter . getObjectUUID ( ) ;
playerID = playerCharacter . getObjectUUID ( ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . getItemBas eID ( ) , dateTime , prefix , suffix , toRoll . getCustomName ( ) , true , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . getTemplst eID ( ) , dateTime , prefix , suffix , toRoll . getCustomName ( ) , true , playerID ) ;
ProducedItem pi = new ProducedItem ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . getItemBas eID ( ) , dateTime , true , prefix , suffix , toRoll . getCustomName ( ) , playerID ) ;
ProducedItem pi = new ProducedItem ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . getTemplst eID ( ) , dateTime , true , prefix , suffix , toRoll . getCustomName ( ) , playerID ) ;
pi . setProducedItemID ( toRoll . getObjectUUID ( ) ) ;
pi . setProducedItemID ( toRoll . getObjectUUID ( ) ) ;
pi . setAmount ( itemsToRoll ) ;
pi . setAmount ( itemsToRoll ) ;
ItemQueue produced = ItemQueue . borrow ( pi , ( long ) ( time * Float . parseFloat ( ConfigManager . MB_PRODUCTION_RATE . getValue ( ) ) ) ) ;
ItemQueue produced = ItemQueue . borrow ( pi , ( long ) ( time * Float . parseFloat ( ConfigManager . MB_PRODUCTION_RATE . getValue ( ) ) ) ) ;