Advertisement
NatedogServer

alternatecurrency fix

Mar 29th, 2015
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.92 KB | None | 0 0
  1.  zone/client_packet.cpp | 7 +++++--
  2.  1 file changed, 5 insertions(+), 2 deletions(-)
  3.  
  4. diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp
  5. index 1ec8f99..a5b9bed 100644
  6. --- a/zone/client_packet.cpp
  7. +++ b/zone/client_packet.cpp
  8. @@ -2607,7 +2607,7 @@ void Client::Handle_OP_AltCurrencyReclaim(const EQApplicationPacket *app)
  9.         ++iter;
  10.     }
  11.  
  12. -   if (item_id == 0 || reclaim->count == 0) {
  13. +   if (item_id == 0) {
  14.         return;
  15.     }
  16.  
  17. @@ -2627,7 +2627,10 @@ void Client::Handle_OP_AltCurrencyReclaim(const EQApplicationPacket *app)
  18.     /* Cursor to Item storage */
  19.     else {
  20.         uint32 max_currency = GetAlternateCurrencyValue(reclaim->currency_id);
  21. -
  22. +      
  23. +       if(max_currency == 0)
  24. +           return; //Since summon item works with 0!!
  25. +      
  26.         /* If you input more than you have currency wise, just give the max of the currency you currently have */
  27.         if (reclaim->count > max_currency) {
  28.             SummonItem(item_id, max_currency);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement