Item wise loyalty program

I want to start point based scheme where each item has some defined point. How to use loyalty program so that points in sales invoice are calculated as per the points defined . Does build-in loyalty program feature can be used?

We would also like a program that for a given customer does loyalty points on certain items at a given % and not others.

I will share my script later. But i tried using custom field in item doctype. Defined loyalty program tiers. Wrote a hook script on sales invoice to calculate & update loyalty program point table.