Try this:
Code:
if($text=~/hail/i){
if($ulevel >= 65){
quest::say("quest text");
}
else{
quest::say("turned away");
}
}
Should be much cleaner and there's really no reason to check if the text is hail multiple times since you can nest the other conditions within that if().
Or if you want to use quite a few responses with hail, you can use an array.