Don't know about the 335, but on 7.x and 6.x such things are handled by the core. Try to take a look on core, something with character list data enumeration. Also take a look on equipmentCache field in characters.characters table. Guess you have to modify method responsible for saving/sending data about equipment cache.