GetItem(Index);


函数功能:

根据索引获得摆摊者的所有上架物品


操作参数:

参数名 是否必须 类型 说明
Index int 对象索引 (玩家)

返回值:

返回值类型 成功 失败
table或者nil table nil

操作实例:

  1. local TableLen = Stall.GetItem(CharIndex);
  2. for i=1,tonumber(#TableLen) do
  3. local t1=TableLen[i];
  4. if tonumber(t1) >= 0 then
  5. local Sell_ItemIndex = Char.GetItemIndex(CharIndex,t1);
  6. local ItemName=Item.GetData(Sell_ItemIndex,%道具_已鉴定名%);
  7. NLG.SystemMessage(CharIndex,"上架道具:"..ItemName);
  8. end
  9. end

备注:

  • 更多返回错误代码请看首页的错误代码描述
作者:105493660  创建时间:2017-12-22 17:48
 更新时间:2025-12-24 21:35