Quote:
Originally Posted by nilbog
I suggest testing basic usage of CastSpell to ensure it works properly, then expand upon your script.
i.e.
Code:
sub EVENT_SAY {
if($text=~/hail/i) {
$npc->CastSpell(17,$userid); #Light Healing
}
}
|
Thanks Nilbog, I have tried using other spells for the CastSpell Function and none of them seem to work, the only way I seem to be able to make spells cast is if I use the selfcast function. I just tried changing it to use light healing as you had mentioned above and it crashed the client when I hailed the NPC (It has never done that before)
--Update: I put it back to "quest::CastSpell($userid,17); and it stopped crashing the client, but the spell still doesn't cast