View Single Post
  #1  
Old 06-21-2013, 08:38 AM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default Npc Wont cast spells

I have been having an Issue for awhile now and cant seem to figure it out.

My custom NPC's seem to be very picky on which spells they will and will not cast.

ie:
Code:
 	$npc->CastSpell(7983,0);
Will cast... however...
Code:
 	$npc->CastSpell(7984,0);
$npc->SpellFinished(7984,0);
$npc->CastSpell(7984,1);
Will not. Certain spells refuse to work. Ive even tried selfcast to get them to fire.
GolemSmash2 is another spell that will not work for me on NPC's. My GM toon can #cast it all damn day so i know the spell is in there and working. When I changed the target type to 1 it will interrupt its own spell. Ill post a section of my pl...

Code:
if ($timer eq "atimer")
  {
	$npc->CastSpell(7984,0);
	quest::stoptimer("atimer");
	quest::settimer("atimer2",10);
  }
Reply With Quote