GetRecipe(Recipeid);


函数功能:

根据配方ID获得配方所需道具id


操作参数:

参数名 是否必须 类型 说明
Recipeid int 配方id

返回值:

返回值类型 角色数量 失败
table 道具Table nil

操作实例:

local ItemID,ItemNum = NLG.GetRecipe(200)    
local l = 0;    
local String;    
for l = 1 ,#ItemID do         
    String = string.format("配方:%d 需要[%d]道具ID数量[%d]",200,ItemID[l],ItemNum[l])        
    print(String);    
end

备注:

  • 更多返回错误代码请看首页的错误代码描述
作者:105493660  创建时间:2021-06-22 19:24
 更新时间:2025-12-24 21:25