azerothcore / mod-aoe-loot

Loot all bodies at once!
GNU Affero General Public License v3.0
27 stars 26 forks source link

fix. Delete quest items after completing it #26

Closed pangolp closed 7 months ago

pangolp commented 7 months ago

Changes Proposed:

Issues Addressed:

SOURCE:

Tests Performed:

How to Test the Changes:

  1. Create a character or choose a quest that requires items from an NPC.
  2. Obtain more items from the account, and complete the mission. As an additional bonus, you can leave part of the items in the bank, to verify that they are also eliminated.
  3. Upon completing the quest and obtaining the reward, the items in the player's bag and bank are eliminated. (the leftovers).

Items, whose boding is 0, are not deleted. Only those that have the same one with the value 4.

 entry  name                                   bonding  
------  -------------------------------------  ---------
  2725  Green Hills of Stranglethorn - Page 1          0
  3901  Bloodscalp Tusk                                4
  8483  Wastewander Water Pouch                        0
 29906  Vashj's Vial Remnant                           4
 50432  Diseased Wolf Pelt                             4