The code for the Ancient Staff is 4675.
Enter that in and it should unlock the item for you. If it doesn't register, make sure you've typed it exactly and that you're entering it in the correct field.