Pelf

Pelf currency pack 2

May 13th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.25 KB | None | 0 0
  1. diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
  2. index f3d5719..72ea8d5 100644
  3. --- a/src/server/game/Entities/Player/Player.cpp
  4. +++ b/src/server/game/Entities/Player/Player.cpp
  5. @@ -20641,10 +20620,17 @@ bool Player::BuyItemFromVendorSlot(uint64 vendorguid, uint32 vendorslot, uint32
  6.          // currency price
  7.          for (uint8 i = 0; i < MAX_EXTENDED_COST_CURRENCIES; ++i)
  8.          {
  9. -            if (iece->RequiredCurrency[i] && !HasCurrency(iece->RequiredCurrency[i], iece->RequiredCurrencyCount[i] * count))
  10. +            if (iece->RequiredCurrency[i])
  11.              {
  12. -                SendEquipError(EQUIP_ERR_VENDOR_MISSING_TURNINS, NULL, NULL);
  13. -                return false;
  14. +                // Hack for Illustrious Jewelcrafter's Token
  15. +                uint32 uiRequiredCount = iece->RequiredCurrencyCount[i];
  16. +                if (iece->RequiredCurrency[i] == 361)
  17. +                    uiRequiredCount = uiRequiredCount * 100;
  18. +                if (!HasCurrency(iece->RequiredCurrency[i], uiRequiredCount * count))
  19. +                {
  20. +                    SendEquipError(EQUIP_ERR_VENDOR_MISSING_TURNINS, NULL, NULL);
  21. +                    return false;
  22. +                }
  23.              }
  24.          }
Advertisement
Add Comment
Please, Sign In to add comment