#Item.TradeItem

Item.TradeItem(FromCharIndex, TargetCharIndex, ItemIndex)

函数功能

将玩家的道具交易给另外一个玩家。

参数说明

  • FromCharIndex: 数值型 对象index。
  • TargetCharIndex: 数值型 交易给的对象index。
  • ItemIndex: 数值型 指定道具index。

返回值

负数失败,正数表示成功,且表示道具所在的道具栏位置。

  • -1:参数错误
  • -2:道具不属于FromCharIndex
  • -3:TargetCharIndex身上无空位

results matching ""

    No results matching ""