137 {
139
140 for ( int i = 0; i < recipeCount; i++ )
141 {
142 if (recipeID == -1 ||
m_recipes.Get(i) == recipeID)
143 {
145 {
146 Param craftParam =
new Param3<int, ItemBase, ItemBase>(
m_recipes.Get(i), item1, item2);
147 m_player.RPCSingleParam(
ERPCs.RPC_CRAFTING_INVENTORY_INSTANT, craftParam,
true,
m_player.GetIdentity());
148 return true;
149 }
150 else
151 {
158
159 ActionManagerClient am = ActionManagerClient.Cast(
m_player.GetActionManager());
160
163
164 return true;
165 }
166 }
167
168 }
169 return false;
170 }
void SetInventoryAction(ActionBase action_name, ItemBase target_item, ItemBase main_item)
ref array< int > m_recipes
const int CM_MODE_INVENTORY
PluginRecipesManager m_recipesManager