View Single Post
  #3  
Old 12-07-2010, 05:05 AM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

Quote:
Originally Posted by trevius View Post
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.
Ok, yes, several things different than what I was doing, but, as always, your
very good at what you do (smirk) THANK YOU, it works like I wanted it too now, lol
Reply With Quote