Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2010, 01:45 AM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default 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
Reply With Quote
  #2  
Old 10-16-2010, 02:02 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

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);
	}
}
Reply With Quote
  #3  
Old 10-16-2010, 02:11 AM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

Wow, that was a quick reply, Thank You. So this will work on an static NPC that I create ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:50 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3