Class check is already in the code and should work with 4.4 - no clue if it works with 5.0 as I haven't had enough time to really test it.
An example script would be:
Code:
EVENT_SAY{
if ($class == WARRIOR) {
if ($1 == "Hail") { say("Greetings, $name! You look like a mighty warrior - if you are interested, I may have a few tasks for you.") }
}
if ($class != WARRIOR) { say("I seek those who call themselves warriors. You do not appear to be one, so I have no business with you.") }
}
That should work.