I think the last time I used it to compare like that, I used something like:
Code:
if ($class == 'Warrior')
Those are single quotes (like not holding SHIFT while pressing the quote key next to ENTER). I am not really sure why this wouldn't work too though:
Code:
if ($class eq "Warrior")
Also, I notice that the item IDs you are using are in the 200k+ range. I am pretty sure our item loading is hard set to a max ID of 120K currently unless you manually altered the source code yourself to increase that limitation. If you didn't alter the source for that, then even just creating items with that high of an ID and restarting your server will cause items to fail to load completely.