For starters, I have a very basic understanding of C++.
So I am looking at making vendors that only show gear relevant to your class. I have this working by changing up a script I got that does the same thing for glyphs, but I am looking at expanding it so it encompasses all my custom vendors. Is it ok if I just add a new class for each vendor? Is there a better way of achieving this? Would it look something like below?
(I realize I need to change the vendor IDs for t5, this was just something I threw together quick). Also, since there is no DK t6 and below, will putting NULL for the vendor be fine, or should I just remove the statement all together?