You may be looking for something like this? (Not tested)
Code:
sub EVENT_SAY {
if (($text=~/hail/i) && ($ulevel<=60)) {
quest::say("Sorry $name, your level is too low for my buffs.");
}
elsif (($text=~/hail/i) && ($ulevel=>61)) {
my $Group = $client->GetGroup();
if ($Group) {
my $Valid = 1;
for ($count = 0; $count < $Group->GroupCount(); $count++) {
if ($Group->GetMember($count)-GetLevel() < 61) {
$Valid = 0;
}
}
if ($Valid == 1) {
quest::say("Incoming Gallantry for $name's group.");
$Group->CastGroupSpell($npc, 18323);
}
else {
quest::say("Sorry $name, someone's level in your group is too low for my buffs.");
}
}
else {
quest::say("Incoming Gallantry for $name");
quest::selfcast(18248);
}
}
}