Просмотр исходного кода

DoF tradeskill Create from recipe fix

1. build components showing as 0/1 in red when component was available(tradeskillpackets.cpp)
2. select item not showing list properly(worldstruct.xml)
Robert Allen 10 месяцев назад
Родитель
Сommit
50022b425a

+ 3 - 3
EQ2/source/WorldServer/Tradeskills/TradeskillsPackets.cpp

@@ -279,10 +279,10 @@ void ClientPacketFunctions::SendCreateFromRecipe(Client* client, int32 recipeID)
 					}
 				}
 			}
-			packet->setArrayLengthByName("num_build_items_selected", selected_items.size());
+			packet->setSubArrayLengthByName("num_build_items_selected", selected_items.size(),index   );
 			for (int8 i = 0; i < selected_items.size(); i++) {
-				packet->setArrayDataByName("build_selected_item_qty", selected_items[i].second, i);
-				packet->setArrayDataByName("build_selected_id", selected_items[i].first, i);
+				packet->setSubArrayDataByName("build_selected_item_qty", selected_items[i].second,index, i);
+				packet->setSubArrayDataByName("build_selected_item_id", selected_items[i].first,index, i);
 
 			}
 			int16 qty = 0;

+ 1 - 1
server/WorldStructs.xml

@@ -16174,7 +16174,7 @@ to zero and treated like placeholders." />
   <Data ElementName="fuel_item_id" Type="int32" Size="1" />
   <Data ElementName="fuel_icon" Type="int16" />
   <Data ElementName="fuel_total_quantity" Type="int8" Size="1" />
-  <Data ElementName="fuel_unknown4" Type="int8" Size="2" />
+ 
 </Data>
 <Data ElementName="num_fuel_items_selected" Type="int8" />
 <Data ElementName="fuel_items_selected_array" Type="Array" ArraySizeVariable="num_fuel_items_selected">