EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Npc Buff Script ? (https://www.eqemulator.org/forums/showthread.php?t=32300)

Huppy 10-16-2010 01:45 AM

Npc Buff Script ?
 
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.

Code:

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 ?


All times are GMT -4. The time now is 11:46 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.