What you can do is:
Create shops for each class.
EVENT:
Conditional branch -> If class is warrior, open warrior shop else, if class is mage, open mage shop.
OR
EVENT:
If class is mage -> Open mage shop
Else
Show text: Sorry, I only know magic tricks.