View Single Post
  #11  
Old 09-18-2012, 09:56 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Code:
if ($hpevent == 90)
	{
		foreach $ent ($npc->GetHateList()) 
		{
    			$npc->CastSpell(6799, $ent->GetEnt()->GetID());
		}
		quest::setnexthpevent(80);

	}
This is my current code. It only casts the selected spell on the player that it is directly attacking though.

Code:
@npcArray = $npc->GetHateList();
		foreach $ent (@npcArray)
		{
			$npc->CastSpell(6799, $ent->GetEnt()->GetID());
		}
Also just casts on the target.
Reply With Quote