Go into catalog, click on any item you may purchase, then where the code for that item is, simply delete that code and copy the code for the hat required. If a script requires 4+ hats use the advanced setting on the bottom right of the accessory page in the avatar editor and insert the code given from before and you can put 10 of any accessory you want.