DelItemByPos(_CharIndex, _Pos);


函数功能:

删除玩家身上指定位置道具。


操作参数:

参数名 是否必须 类型 说明
_CharIndex int 角色对象索引
_Pos int 道具位置(0~27)

返回值:

返回值类型 删除数量 失败
int >=1 <0

操作实例:

  1. local tNum = NLG.DelItemByPos(_CharIndex, 8);
  2. if tNum >= 1 then
  3. print("删除" .. tNum .. "个道具");
  4. return;
  5. else
  6. print("删除失败!");
  7. return;
  8. end

备注:

  • 更多返回错误代码请看首页的错误代码描述
文档更新时间: 2022-01-13 17:10   作者:105493660