Can be done with events off the top of my head, but will take a lot of effort and items like so:
Unknown Sword (Sword of AGD) = Event item, when clicked to be used, event runs checks if player has a identify scroll, if yes then gives the player Sword of AGD.
But for every item you want to use this system with you will have to have a unknown item for it... if that makes sense.