your hopes was heard
FluxCP addon ready
https://github.com/S-anasol/sanasol/tree/master/merchant_db_flux
Installation: move `vending` addon folder to `fluxcp-folder\addons`
oh... forgot about update data in table
Function: vending_purchasereq
After
// vending item
pc_additem(sd, &vsd->status.cart[idx], amount, LOG_TYPE_VENDING);
vsd->vending[vend_list[i]].amount -= amount;
pc_cart_delitem(vsd, idx, amount, 0, LOG_TYPE_VENDING);
clif_vendingreport(vsd, idx, amount);
Add
//vending to db [Sanasol]
if(vsd->vending[vend_list[i]].amount >= 1)
{
if( SQL_ERROR == Sql_Query(mmysql_handle,"update `vending` set `amount`='%d' where `char_id`='%d' and `index`='%d'", vsd->vending[vend_list[i]].amount, vsd->status.char_id, vend_list[i]) )
Sql_ShowDebug(mmysql_handle);
}
else
{
if( SQL_ERROR == Sql_Query(mmysql_handle,"delete from `vending` where `char_id`='%d' and `index`='%d'", vsd->status.char_id, vend_list[i]) )
Sql_ShowDebug(mmysql_handle);
}
//vending to db [Sanasol]
Thanks for this! Can't download it, error: git did not exit cleanly (exit code 128)