@ -179,8 +179,8 @@ public class ItemFactory {
@@ -179,8 +179,8 @@ public class ItemFactory {
time = ( 20 - rate ) ;
time * = MBServerStatics . ONE_MINUTE ;
if ( ml . templs teID > 910010 & & ml . templs teID < 910019 ) {
rank = ml . getTempls teID ( ) - 910010 ;
if ( ml . templa teID > 910010 & & ml . templa teID < 910019 ) {
rank = ml . getTempla teID ( ) - 910010 ;
time = rank * 60 * 60 * 3 * 1000 ;
}
@ -201,8 +201,8 @@ public class ItemFactory {
@@ -201,8 +201,8 @@ public class ItemFactory {
if ( pc ! = null )
playerID = pc . getObjectUUID ( ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTempls teID ( ) , dateTime , "" , "" , "" , false , playerID ) ;
ProducedItem pi = new ProducedItem ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTempls teID ( ) , dateTime , false , "" , "" , "" , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTempla teID ( ) , dateTime , "" , "" , "" , false , playerID ) ;
ProducedItem pi = new ProducedItem ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTempla teID ( ) , dateTime , false , "" , "" , "" , playerID ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setAmount ( itemsToRoll ) ;
pi . setRandom ( false ) ;
@ -589,7 +589,7 @@ public class ItemFactory {
@@ -589,7 +589,7 @@ public class ItemFactory {
time * = MBServerStatics . ONE_MINUTE ;
if ( ml . getItemBase ( ) . getUUID ( ) > 910010 & & ml . getItemBase ( ) . getUUID ( ) < 910019 ) {
rank = ml . getTempls teID ( ) - 910010 ;
rank = ml . getTempla teID ( ) - 910010 ;
time = rank * 60 * 60 * 3 * 1000 ;
}
@ -610,8 +610,8 @@ public class ItemFactory {
@@ -610,8 +610,8 @@ public class ItemFactory {
if ( pc ! = null )
playerID = pc . getObjectUUID ( ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTempls teID ( ) , dateTime , prefixString , suffixString , ml . getCustomName ( ) , false , playerID ) ;
ProducedItem pi = new ProducedItem ( npc . getRolling ( ) . size ( ) , npc . getObjectUUID ( ) , ml . getTempls teID ( ) , dateTime , false , prefixString , suffixString , ml . getCustomName ( ) , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( ml . getObjectUUID ( ) , npc . getObjectUUID ( ) , ml . getTempla teID ( ) , dateTime , prefixString , suffixString , ml . getCustomName ( ) , false , playerID ) ;
ProducedItem pi = new ProducedItem ( npc . getRolling ( ) . size ( ) , npc . getObjectUUID ( ) , ml . getTempla teID ( ) , dateTime , false , prefixString , suffixString , ml . getCustomName ( ) , playerID ) ;
pi . setProducedItemID ( ml . getObjectUUID ( ) ) ;
pi . setAmount ( itemsToRoll ) ;
@ -728,7 +728,7 @@ public class ItemFactory {
@@ -728,7 +728,7 @@ public class ItemFactory {
time * = MBServerStatics . ONE_MINUTE ;
if ( toRoll . getItemBase ( ) . getUUID ( ) > 910010 & & toRoll . getItemBase ( ) . getUUID ( ) < 910019 ) {
rank = toRoll . getTempls teID ( ) - 910010 ;
rank = toRoll . getTempla teID ( ) - 910010 ;
time = rank * 60 * 60 * 3 * 1000 ;
}
@ -748,9 +748,9 @@ public class ItemFactory {
@@ -748,9 +748,9 @@ public class ItemFactory {
if ( playerCharacter ! = null )
playerID = playerCharacter . getObjectUUID ( ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . getTempls teID ( ) , dateTime , prefix , suffix , toRoll . getCustomName ( ) , true , playerID ) ;
DbManager . NPCQueries . ADD_TO_PRODUCTION_LIST ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . getTempla teID ( ) , dateTime , prefix , suffix , toRoll . getCustomName ( ) , true , playerID ) ;
ProducedItem pi = new ProducedItem ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . getTempls teID ( ) , dateTime , true , prefix , suffix , toRoll . getCustomName ( ) , playerID ) ;
ProducedItem pi = new ProducedItem ( toRoll . getObjectUUID ( ) , vendor . getObjectUUID ( ) , toRoll . getTempla teID ( ) , dateTime , true , prefix , suffix , toRoll . getCustomName ( ) , playerID ) ;
pi . setProducedItemID ( toRoll . getObjectUUID ( ) ) ;
pi . setAmount ( itemsToRoll ) ;
ItemQueue produced = ItemQueue . borrow ( pi , ( long ) ( time * Float . parseFloat ( ConfigManager . MB_PRODUCTION_RATE . getValue ( ) ) ) ) ;