17 lines
511 B
C++
17 lines
511 B
C++
//1.) Search:
|
|
|
|
if (item->GetVnum() >= 80003 && item->GetVnum() <= 80007)
|
|
{
|
|
LogManager::instance().GoldBarLog(ch->GetPlayerID(), item->GetID(), PERSONAL_SHOP_BUY, "");
|
|
}
|
|
|
|
DBManager::instance().SendMoneyLog(MONEY_LOG_SHOP, item->GetVnum(), -dwPrice);
|
|
|
|
if (item)
|
|
sys_log(0, "ShopEx: BUY: name %s %s(x %d):%u price %u", ch->GetName(), item->GetName(), item->GetCount(), item->GetID(), dwPrice);
|
|
|
|
// and add under, this:
|
|
|
|
#ifdef ENABLE_QUEST_RECEIVE_ITEM
|
|
ch->SenderRecvItem(ch->GetPlayerID(), item);
|
|
#endif |