Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef PCSHOP_ITEM_COIN
- if (IsPCShop())
- {
- if (ch->CountSpecifyItem(70045) < (int)dwPrice)
- return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;
- }
- else
- {
- #ifdef ENABLE_MULTISHOP
- if (dwWItemVnum > 0)
- {
- if (ch->CountSpecifyItem(dwWItemVnum) < (int)dwWItemPrice)
- return SHOP_SUBHEADER_GC_NOT_ENOUGH_ITEM;
- }
- else if (ch->GetGold() < (int) dwPrice)
- #else
- if (ch->GetGold() < (int) dwPrice)
- #endif
- {
- //sys_log(1, "Shop::Buy : Not enough money : %s has %d, price %d", ch->GetName(), ch->GetGold(), dwPrice);
- return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;
- }
- }
- #else
- if (ch->GetGold() < (int)dwPrice)
- {
- //sys_log(1, "Shop::Buy : Not enough money : %s has %d, price %d", ch->GetName(), ch->GetGold(), dwPrice);
- return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement