Initial commit

Update char.cpp
This commit is contained in:
Mitachi
2022-06-22 04:23:24 +02:00
commit 681a877061
17 changed files with 266 additions and 0 deletions

View File

@ -0,0 +1,17 @@
//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