Advertisement
sorvani

PurchaseCharges.diff

Jan 31st, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.73 KB | None | 0 0
  1. Index: trunk/EQEmuServer/zone/client_packet.cpp
  2. ===================================================================
  3. --- trunk/EQEmuServer/zone/client_packet.cpp    (revision 2472)
  4. +++ trunk/EQEmuServer/zone/client_packet.cpp    (working copy)
  5. @@ -5646,7 +5646,14 @@
  6.     mpo->itemslot=mp->itemslot;
  7.  
  8.     int16 freeslotid=0;
  9. -   ItemInst* inst = database.CreateItem(item, mp->quantity);
  10. +   int16 charges = 0;
  11. +   if (item->Stackable) {
  12. +       charges = mp->quantity;
  13. +   } else {
  14. +       // this needs expanded to handle varying charges from the merchant, but will require merchantlist_temp changes amonst other things.
  15. +       charges = item->MaxCharges;
  16. +   }
  17. +   ItemInst* inst = database.CreateItem(item, charges);
  18.  
  19.     int SinglePrice = 0;
  20.     if (RuleB(Merchant, UsePriceMod))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement