2010-09-16, 12:32 PM
It's easier to just scan the player's inventory (assuming they can't store/sell the item elsewhere) but the item just needs to be unique to the map.
You can have your own counter track the number of that item the player has on hand, and if it is not equal to the number in the inventory you know that it was just bought/sold or whatever.
You can have your own counter track the number of that item the player has on hand, and if it is not equal to the number in the inventory you know that it was just bought/sold or whatever.