What pick stores the gWeapExpr field? Are you certain it's in a pick of Id gCustMagic, which is in the same container as the rune (and it sounds like your runes are loose magic items, which means their container is the hero).
Also, you say you've got a selection of a weapon, but then your script uses a foreach, which means it's searching lots of weapons, so I'm not sure why that's there.
|