I've tried,
$npc->CastSpell(9247,$userid);
$npc->CastSpell($userid,9247);
$npc->CastSpell(9247,$name);
$npc->CastSpell(9247,$target);
$npc->CastSpell(9247,$npc->GetHateTop());
$npc->CastSpell(9247,$npc->GetTopHate());
$npc->CastSpell(9247,$npc->GetHateMost());
$npc->CastSpell(9247,$GetTarget());
$npc->CastSpell(9247,$npc->$GetTarget());
You get the idea,
Also tried adding in
$targ = $npc->GetHateTop();
$whohit = $entity_list->GetClientByID($targ);
and then using
$npc->CastSpell(9248,$whohit);
And then he begins casting but interrupts, everytime. Spells are instant also.
|