The values for classes are defined in
classes.h I believe, you just need to add up the values for the classes that can use it.
*Edit*
You'll see soemthing similar to this in
classes.h:
Code:
#define warrior_1 1
#define monk_1 64
#define paladin_1 4
#define shadow_1 16
#define bard_1 128
#define cleric_1 2
#define necromancer_1 1024
#define ranger_1 8
#define druid_1 32
#define mage_1 4096
#define wizard_1 2048
#define enchanter_1 8192
#define rogue_1 256
#define shaman_1 512
#define beastlord_1 16384
#define call_1 32768
If you want an item to be druid/mage useable you add 32+4096 = 4128. So give the item 4128 and those two classes can use it.
Hope this helps.