Hi everone!
I watch the servers, and i find one, whos use a little interesting system, so i tried to code that.
The system, how they add some NPC, where you can buy items, but not for yang.
Maybe for gaya, or other currency what you would to use.
Here we go.
At first, please make backup from the file, or do the tutorial as clever what you can.
Open : shop.cpp
Search : void CShop::SetShopItems(
Add after this function
static void _buy_from_cash(LPCHARACTER ch)
{
if (ch)
{
SQLMsg * pMsg = DBManager::instance().DirectQuery("select cash from account.account WHERE id = %d",ch->