OK, here is the new version of the weapon lock hack, with support for either-or weapon ranks as described here. A weapon with an either-or rank will still have the weapon type of and give Wexp for the weapon type declared in its item data. For how to implement it, read the readme.
Basically you have an either-or by setting bit 4 in the first byte of your list, and make it an OR instead of an AND by setting bit 3 too. Then you have 8 bytes for the weapon levels required in each of the 8 weapon types, then your list of class/character IDs if you’re also using an ID-based lock too.
The latest update integrate staff and item locks into the FE8 version while also belatedly disabling FE8’s vanilla weapon lock bits.