logoHourGlass
Char.GiveItem

Char.GiveItem

Char.GiveItem(CharIndex,ItemID,Amount,Mute)

函數功能

給予目標對象道具。

參數說明

  • CharIndex數值型 目標的 對象index。
  • ItemID數值型 道具ID。
  • Amount數值型 道具的數量。
  • Mute數值型 是否顯示獲得道具的消息,0爲顯示,1爲不顯示,默認值0。

返回值

目標道具index,失敗則返回負數。