logoHourGlass
Char.GiveItemWithPos

Char.GiveItemWithPos

Char.GiveItemWithPos(CharIndex,ItemID,ItemPos,Amount,Mute)

函數功能

給予目標對象道具。

參數說明

  • CharIndex數值型 目標的 對象index。
  • ItemID數值型 道具ID。
  • ItemPos數值型 道具的位置,範圍0~28。
  • Amount數值型 道具的堆疊數量,默認爲1。
  • Mute數值型 是否顯示獲得道具的消息,0爲顯示,1爲不顯示,默認值0。

返回值

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