Initial commit
Update char.cpp
This commit is contained in:
17
how-to/Srcs-Server/game/src/shopEx.cpp
Normal file
17
how-to/Srcs-Server/game/src/shopEx.cpp
Normal 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
|
||||
Reference in New Issue
Block a user