The way I demonstrated earlier in the script with ($2 != Knight) etc is not the most efficient way, use this instead.
on *:text:!setclass*:#: {
if ($($+(%,floodclasses.,$nick),2)) { return }
set -u30 %floodclasses. $+ $nick On
if($istok(%classes,$2,32)) {
.writeini -n Classes.ini $nick Class $2
msg # $nick is now a $2 $+ .
}
}
Now, just create a variable called %classes with all of these.
If you don't know how to, just go to your variables in the scripts editor and make a variable yourself. %classes Gambler Thief etc