/////////////////////////////////////////////////////////
//
//  Craftable Natural Resources (CNR) by Festyx
//
//  Name:  cnr_at_r_craft
//
//  Desc:  This script is run by the cnr_c_recipe convo
//         when the player chooses to craft a green
//         (makeable) recipe.
//
//  Author: David Bobeck 11Jan03
//
/////////////////////////////////////////////////////////
#include "cnr_recipe_utils"
void main()
{
  object oPC = GetPCSpeaker();
  int nMenuPage = GetLocalInt(oPC, "nCnrMenuPage");
  int nCraftIndex = GetLocalInt(oPC, "nCnrCraftIndex");
  CnrRecipeAttemptToCraft(oPC, OBJECT_SELF, (nMenuPage*CNR_SELECTIONS_PER_PAGE)+nCraftIndex, CNR_CONVO_CRAFTING);
}