You have many options. Also I have to notice that you CAN make charges showing.
I don't have time (sorry!) to write entire script, but I will tell you how to do it with the simpliest way.
Everything should work with actionID. So you have to make NPC (or lever) setting actionID of each potion to charge number.
Also, NPC (or lever) should set potion's description (
setItemSpecialDescription(item.uid, "Description"))Then, you have to modify lua script for potion to check actionID.
Script should set actionID "
item.actionid-1" every time you are using potion. Also item description should be updated with item.actionid as charges every time aswell.
If player use a potion which actionID is 1 (1-1=0), then potion should be removed.
Script is not really difficult to write tho
Regards,
Hermes
PS. Really sorry but I have important day tomorrow and I have to make some preparations first ; <