PDA

View Full Version : Npc Buff Script ?


Huppy
10-16-2010, 01:45 AM
Does anyone have a link to a script that I could use to make an npc buff on hail ? I have been searching, but no such luck. Thanx

lerxst2112
10-16-2010, 02:02 AM
This is a simple one I use. Replace spell ids with what you want instead.


sub EVENT_SAY
{
my $buffs = quest::saylink("buffs");
if($text=~/Hail/i)
{
quest::say("Greetings $name. Would you like some [$buffs]?");
}

if($text=~/buffs/i)
{
quest::selfcast(18323);
quest::selfcast(5521);
quest::selfcast(19426);
quest::selfcast(5405);
quest::selfcast(9868);
quest::selfcast(10211);
quest::selfcast(10031);
}
}

Huppy
10-16-2010, 02:11 AM
Wow, that was a quick reply, Thank You. So this will work on an static NPC that I create ?