Quote:
|
Quote:
to cycle through, getting the buff from the NPC, which I really could live with that. My whole problem started when using the $npc->CastSpell in a script. It works fine if the spellid is a single buff (such as Spirit of Eagle). But if I change the spellid to a group buff (such as Flight of Eagles), the NPC will go through the anim of casting, but does not actually cast the spell. The selfcast::(spellid) will work fine with any group buff like KEI, but not the $npc->CastSpell This is one of the scripts I am currently using; sub EVENT_SAY { if ($text =~/hail/i) { quest::say("Incoming Clarity for $name"); my $GetPlayerID = $client->GetID(); $npc->CastSpell(1693, $GetPlayerID ); } } This script works perfect for any single target spell (SoW, Temp, etc) But if I change the spellid from 1693 to 2570 (Koadic's Endless Intellect), The NPC will not cast that spell or any other group spellid. My goal, to start out with was having an NPC cast the KEI buff using the $npc->CastSpell only because it casts a full timer buff duration, no matter what level the character is. This is when I found out, that command would not cast any group buff. |
I am not having any issues casting group spells from an NPC using this:
Code:
sub EVENT_SAY { Code:
#Usage: plugin::CastOnGroup(SpellID, MaxDist=0, Client=$client); |
[QUOTE=trevius;194793]I am not having any issues casting group spells from an NPC using this:
Code:
sub EVENT_SAY { |
Quote:
|
All times are GMT -4. The time now is 05:24 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.