Char.AddPetChar.AddPet(CharIndex,PetID)函數功能爲對象增加一隻等級爲1成長隨機的PetID的寵物。參數說明 CharIndex:數值型 目標的 對象index。 PetID:數值型 寵物的ID。 返回值製作成功則返回目標寵物的對象index,否則返回-1。