View Single Post
  #2  
Old 12-07-2010, 04:56 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

You had multiple syntax issues going on. This should work fine:

Code:
sub EVENT_SAY {

	if ($text =~/hail/i && $ulevel >= 45)
	{
		my $Group = $client->GetGroup();
		if($Group)
		{
			$Group->CastGroupSpell($npc, 2570);
		}
		else
		{
			my $GetPlayerID = $client->GetID();
			quest::selfcast(2570);
		}
		quest::say("Incoming KEI for $name");
	}

}
I suggest reviewing the changes I made so you can learn what you did wrong.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote