View Single Post
  #3  
Old 06-25-2017, 08:24 PM
Eealer
Fire Beetle
 
Join Date: Jul 2016
Location: Alberta, Canada
Posts: 29
Default

Quote:
Originally Posted by nilbog View Post
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

Last edited by Eealer; 06-25-2017 at 08:29 PM.. Reason: Update
Reply With Quote