Mob casting spells midfight?
Trying to get an npc to cast poison storm (spellid 437) at a certain % hp. Everything works, he starts to cast the spell, but then interrupts and goes right back to meleeing. Any ideas? Here's the relevant piece of code:
Code:
if ($hpevent == 40) { |
Quote:
Your best bet is to use $npc->GetID() or $client->GetID() inside $npc->CastSpell as the second argument. |
Ahh...yep that did it, thanks.
|
All times are GMT -4. The time now is 05:01 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.