@ -38,7 +38,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -38,7 +38,7 @@ public class ItemProductionMsg extends ClientNetMsg {
private int size ;
private int buildingUUID ;
private int unknown01 ;
private int itemUU ID;
private int template ID;
private int itemType ;
private int totalProduction ;
private int unknown03 ;
@ -61,7 +61,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -61,7 +61,7 @@ public class ItemProductionMsg extends ClientNetMsg {
this . size = 0 ;
this . buildingUUID = 0 ;
this . unknown01 = 0 ;
this . itemUU ID = 0 ;
this . template ID = 0 ;
this . totalProduction = 0 ;
this . unknown03 = 0 ;
this . pToken = 0 ;
@ -81,7 +81,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -81,7 +81,7 @@ public class ItemProductionMsg extends ClientNetMsg {
this . buildingUUID = building . getObjectUUID ( ) ;
this . npcUUID = vendor . getObjectUUID ( ) ;
this . itemType = item . getObjectType ( ) . ordinal ( ) ;
this . itemUU ID = item . getObjectUUID ( ) ;
this . template ID = item . getObjectUUID ( ) ;
this . unknown01 = 0 ;
this . totalProduction = 0 ;
this . unknown03 = 0 ;
@ -139,7 +139,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -139,7 +139,7 @@ public class ItemProductionMsg extends ClientNetMsg {
if ( ! add ) {
writer . put ( ( byte ) 1 ) ;
Item item = Item . getFromCache ( this . itemUU ID) ;
Item item = Item . getFromCache ( this . template ID) ;
if ( item ! = null )
Item . serializeForClientMsgWithoutSlot ( item , writer ) ;
writer . putInt ( building . getStrongboxValue ( ) ) ;
@ -154,9 +154,9 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -154,9 +154,9 @@ public class ItemProductionMsg extends ClientNetMsg {
writer . put ( ( byte ) 1 ) ;
Item item ;
if ( this . itemType = = GameObjectType . Item . ordinal ( ) )
item = Item . getFromCache ( this . itemUU ID) ;
item = Item . getFromCache ( this . template ID) ;
else
item = MobLoot . getFromCache ( this . itemUU ID) ;
item = MobLoot . getFromCache ( this . template ID) ;
if ( item ! = null )
Item . serializeForClientMsgWithoutSlot ( item , writer ) ;
writer . putInt ( building . getStrongboxValue ( ) ) ;
@ -166,7 +166,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -166,7 +166,7 @@ public class ItemProductionMsg extends ClientNetMsg {
break ;
case ACTION_CONFIRM_TAKE :
writer . putInt ( this . itemType ) ;
writer . putInt ( this . itemUU ID) ;
writer . putInt ( this . template ID) ;
writer . putInt ( 1 ) ;
writer . putInt ( 0 ) ;
writer . putInt ( 0 ) ;
@ -178,7 +178,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -178,7 +178,7 @@ public class ItemProductionMsg extends ClientNetMsg {
break ;
case ACTION_SETPRICE :
writer . putInt ( this . itemType ) ;
writer . putInt ( this . itemUU ID) ;
writer . putInt ( this . template ID) ;
writer . putInt ( 1 ) ;
writer . putInt ( 0 ) ;
writer . putInt ( 0 ) ;
@ -191,7 +191,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -191,7 +191,7 @@ public class ItemProductionMsg extends ClientNetMsg {
break ;
case ACTION_CONFIRM_SETPRICE :
writer . putInt ( this . itemType ) ;
writer . putInt ( this . itemUU ID) ;
writer . putInt ( this . template ID) ;
writer . putInt ( 1 ) ;
writer . putInt ( 0 ) ;
writer . putInt ( 0 ) ;
@ -205,7 +205,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -205,7 +205,7 @@ public class ItemProductionMsg extends ClientNetMsg {
break ;
case ACTION_DEPOSIT :
writer . putInt ( this . itemType ) ;
writer . putInt ( this . itemUU ID) ;
writer . putInt ( this . template ID) ;
writer . putInt ( 1 ) ;
writer . putInt ( 0 ) ;
writer . putInt ( 0 ) ;
@ -246,7 +246,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -246,7 +246,7 @@ public class ItemProductionMsg extends ClientNetMsg {
writer . putInt ( 0 ) ;
writer . putInt ( 0 ) ;
writer . putInt ( 1 ) ;
MobLoot toRoll = MobLoot . getFromCache ( this . itemUU ID) ;
MobLoot toRoll = MobLoot . getFromCache ( this . template ID) ;
writer . putInt ( - 1497023830 ) ;
if ( toRoll ! = null & & toRoll . getPrefix ( ) ! = null & & ! toRoll . getPrefix ( ) . isEmpty ( ) ) {
EffectsBase eb = PowersManager . getEffectByIDString ( toRoll . getPrefix ( ) ) ;
@ -273,7 +273,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -273,7 +273,7 @@ public class ItemProductionMsg extends ClientNetMsg {
writer . putString ( toRoll . name ) ;
writer . putInt ( GameObjectType . MobLoot . ordinal ( ) ) ;
writer . putInt ( this . itemUU ID) ;
writer . putInt ( this . template ID) ;
writer . putInt ( 0 ) ; //items left to produce?
if ( toRoll ! = null ) {
@ -322,7 +322,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -322,7 +322,7 @@ public class ItemProductionMsg extends ClientNetMsg {
break ;
case ACTION_COMPLETE :
writer . putInt ( this . itemType ) ;
writer . putInt ( this . itemUU ID) ;
writer . putInt ( this . template ID) ;
writer . putInt ( this . totalProduction ) ;
writer . putInt ( this . unknown03 ) ;
writer . putInt ( this . pToken ) ;
@ -334,7 +334,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -334,7 +334,7 @@ public class ItemProductionMsg extends ClientNetMsg {
break ;
case ACTION_JUNK :
writer . putInt ( this . itemType ) ;
writer . putInt ( this . itemUU ID) ;
writer . putInt ( this . template ID) ;
writer . putInt ( this . totalProduction ) ;
writer . putInt ( this . unknown03 ) ;
writer . putInt ( this . pToken ) ;
@ -372,7 +372,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -372,7 +372,7 @@ public class ItemProductionMsg extends ClientNetMsg {
switch ( this . actionType ) {
case ACTION_SETPRICE :
this . itemType = reader . getInt ( ) ;
this . itemUU ID = reader . getInt ( ) ;
this . template ID = reader . getInt ( ) ;
reader . getInt ( ) ;
reader . getInt ( ) ;
reader . getInt ( ) ;
@ -397,15 +397,15 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -397,15 +397,15 @@ public class ItemProductionMsg extends ClientNetMsg {
HashMap < Integer , Integer > tempIDs = new HashMap < > ( ) ;
for ( int i = 0 ; i < this . size ; i + + ) {
int type = reader . getInt ( ) ; // Item type padding
this . itemUU ID = reader . getInt ( ) ;
tempIDs . put ( this . itemUU ID, type ) ;
this . template ID = reader . getInt ( ) ;
tempIDs . put ( this . template ID, type ) ;
}
reader . getInt ( ) ;
this . itemIDtoTypeMap = tempIDs ;
break ;
case ACTION_DEPOSIT :
this . itemType = reader . getInt ( ) ;
this . itemUU ID = reader . getInt ( ) ;
this . template ID = reader . getInt ( ) ;
reader . getInt ( ) ;
reader . getInt ( ) ;
reader . getInt ( ) ;
@ -417,7 +417,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -417,7 +417,7 @@ public class ItemProductionMsg extends ClientNetMsg {
break ;
case ACTION_JUNK :
this . itemType = reader . getInt ( ) ;
this . itemUU ID = reader . getInt ( ) ;
this . template ID = reader . getInt ( ) ;
this . totalProduction = reader . getInt ( ) ;
this . unknown03 = reader . getInt ( ) ;
this . pToken = reader . getInt ( ) ;
@ -429,7 +429,7 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -429,7 +429,7 @@ public class ItemProductionMsg extends ClientNetMsg {
break ;
default :
this . itemType = reader . getInt ( ) ;
this . itemUU ID = reader . getInt ( ) ;
this . template ID = reader . getInt ( ) ;
this . totalProduction = reader . getInt ( ) ;
this . unknown03 = reader . getInt ( ) ;
this . pToken = reader . getInt ( ) ;
@ -475,12 +475,12 @@ public class ItemProductionMsg extends ClientNetMsg {
@@ -475,12 +475,12 @@ public class ItemProductionMsg extends ClientNetMsg {
this . unknown03 = unknown03 ;
}
public int getItemUU ID ( ) {
return itemUU ID;
public int getTemplate ID ( ) {
return template ID;
}
public void setItemUUID ( int itemUU ID ) {
this . itemUUID = itemUU ID;
public void setTemplateID ( int template ID ) {
this . templateID = template ID;
}
public int getpToken ( ) {