GetItem(Index);
函数功能:
根据索引获得摆摊者的所有上架物品
操作参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| Index | 是 | int | 对象索引 (玩家) |
返回值:
| 返回值类型 | 成功 | 失败 |
|---|---|---|
| table或者nil | table | nil |
操作实例:
local TableLen = Stall.GetItem(CharIndex);for i=1,tonumber(#TableLen) dolocal t1=TableLen[i];if tonumber(t1) >= 0 thenlocal Sell_ItemIndex = Char.GetItemIndex(CharIndex,t1);local ItemName=Item.GetData(Sell_ItemIndex,%道具_已鉴定名%);NLG.SystemMessage(CharIndex,"上架道具:"..ItemName);endend
备注:
- 更多返回错误代码请看首页的错误代码描述
文档更新时间: 2018-10-07 11:59 作者:105493660