To find when it's consumed, you need to register an event for inventory changes. Store the (bag,slot) of the Treasure Map, and when that location is set to "", it's been removed. Hint: the bag is BAG_BACKPACK, and happens to be set to 1. It will also be removed when dropping it in the bank or deleting it.
Last edited by Vuelhering : 04/19/14 at 11:51 PM.
|