Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #ifdef PCSHOP_ITEM_COIN
  2. if (IsPCShop())
  3. {
  4. if (ch->CountSpecifyItem(70045) < (int)dwPrice)
  5. return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;
  6. }
  7. else
  8. {
  9. #ifdef ENABLE_MULTISHOP
  10. if (dwWItemVnum > 0)
  11. {
  12. if (ch->CountSpecifyItem(dwWItemVnum) < (int)dwWItemPrice)
  13. return SHOP_SUBHEADER_GC_NOT_ENOUGH_ITEM;
  14. }
  15. else if (ch->GetGold() < (int) dwPrice)
  16. #else
  17. if (ch->GetGold() < (int) dwPrice)
  18. #endif
  19. {
  20. //sys_log(1, "Shop::Buy : Not enough money : %s has %d, price %d", ch->GetName(), ch->GetGold(), dwPrice);
  21. return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;
  22. }
  23. }
  24. #else
  25. if (ch->GetGold() < (int)dwPrice)
  26. {
  27. //sys_log(1, "Shop::Buy : Not enough money : %s has %d, price %d", ch->GetName(), ch->GetGold(), dwPrice);
  28. return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY;
  29. }
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement