@ -180,7 +180,7 @@ public class ItemFactory {
time * = MBServerStatics . ONE_MINUTE ;
time * = MBServerStatics . ONE_MINUTE ;
if ( ml . templateID > 910010 & & ml . templateID < 910019 ) {
if ( ml . templateID > 910010 & & ml . templateID < 910019 ) {
rank = ml . ge tT emplateID( ) - 910010 ;
rank = ml . templateID - 910010 ;
time = rank * 60 * 60 * 3 * 1000 ;
time = rank * 60 * 60 * 3 * 1000 ;
}
}
@ -201,8 +201,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 . ge tT emplateID( ) , dateTime , "" , "" , "" , false , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . templateID , dateTime , "" , "" , "" , false , playerID ) ;
ProducedItem pi = new ProducedItem ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . ge tT emplateID( ) , dateTime , false , "" , "" , "" , playerID ) ;
ProducedItem pi = new ProducedItem ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . templateID , dateTime , false , "" , "" , "" , playerID ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setAmount ( itemsToRoll ) ;
pi . setAmount ( itemsToRoll ) ;
pi . setRandom ( false ) ;
pi . setRandom ( false ) ;
@ -589,7 +589,7 @@ public class ItemFactory {
time * = MBServerStatics . ONE_MINUTE ;
time * = MBServerStatics . ONE_MINUTE ;
if ( ml . templateID > 910010 & & ml . templateID < 910019 ) {
if ( ml . templateID > 910010 & & ml . templateID < 910019 ) {
rank = ml . ge tT emplateID( ) - 910010 ;
rank = ml . templateID - 910010 ;
time = rank * 60 * 60 * 3 * 1000 ;
time = rank * 60 * 60 * 3 * 1000 ;
}
}
@ -610,8 +610,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 . ge tT emplateID( ) , dateTime , prefixString , suffixString , ml . name , false , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . templateID , dateTime , prefixString , suffixString , ml . name , false , playerID ) ;
ProducedItem pi = new ProducedItem ( npc . getRolling ( ) . size ( ) , npc . getObjectUUID ( ) , ml . ge tT emplateID( ) , dateTime , false , prefixString , suffixString , ml . name , playerID ) ;
ProducedItem pi = new ProducedItem ( npc . getRolling ( ) . size ( ) , npc . getObjectUUID ( ) , ml . templateID , dateTime , false , prefixString , suffixString , ml . name , playerID ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setAmount ( itemsToRoll ) ;
pi . setAmount ( itemsToRoll ) ;
@ -749,9 +749,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 . ge tT emplateID( ) , dateTime , prefix , suffix , toRoll . name , true , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . templateID , dateTime , prefix , suffix , toRoll . name , true , playerID ) ;
ProducedItem pi = new ProducedItem ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . ge tT emplateID( ) , dateTime , true , prefix , suffix , toRoll . name , playerID ) ;
ProducedItem pi = new ProducedItem ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . templateID , dateTime , true , prefix , suffix , toRoll . name , 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 ( ) ) ) ) ;