Code:
sub EVENT_SAY {
if ($text =~/buff/i) {
quest::say("Time for your Haste buff buff");
my $GetPlayerID = $client->GetID();
$npc->CastSpell(172, $GetPlayerID );
}
}
I tried this for a few spells and worked fine. Set the NPC for level 75. It will
use the npc's level to base the spell no the player. I set myself to lv 1 and lv 75 and buffs all had same duration.
Kayen
GM Stormhaven