try this.. no clue if it works or not just got it from the wiki.. put this on a random npc and change the spell id.
Code:
sub EVENT_SAY {
if($text=~/hail/i) {
if($client->FindBuff(123456) {
$client->Message(15, "You have dat buff on you dawwwwwg");
}
}
}