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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-19-2010, 07:38 AM
kameko
Sarnak
 
Join Date: Apr 2010
Posts: 30
Default Creating a new NPC

Hey everyone,

I'm trying to make a new npc in Halas and am having some trouble getting her to respond to hails etc.

I added her to the database, and spawn her on entering the zone.

I made a script file for her but it's not working.

Her name is Sabrina nightingale, and the script file is called Sabrina_Nightingale.pl

here it is:
Code:
## Sabrina_Nightingale.pl
##
## Buffer NPC.  This character will allow the player to get all spells scribed for the players
## current level

sub EVENT_SAY{
	my $spells = quest::saylink("spells");
	
	if($text=~/hail/i){
		plugin::Whisper("Why hello there $name!  I have heard many great things about you!  I am new in town
			and specialise in $spells.  If you're interested I can teach you what I know.");
	}
	
	if($text=~/spells/i){
		plugin::Whisper("Great...  just give me a moment to gather what spells I can for you.");
		quest::emote("flips through the pages of her spell book...");
		quest::pause(10):
		plugin::Whisper("Ok!  found all the spells I can teach you....");
		plugin::scribespells():
	}
}
Am I missing something? I thought I could just write a file with the name of the npc for it to work

Thanks for any help here

EDIT: I found the problem.... typos!
Reply With Quote
 


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 08:46 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