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