Fixed a bug when buying items with confirm_item_purchase="0"

confirm_item_purchase="0" resulted in "DataPack operation is out of
bounds." upon players buying items.

Added chat message on succesful item purchase.