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 11-08-2010, 10:35 AM
Templus
Sarnak
 
Join Date: Oct 2010
Location: NYC
Posts: 39
Default Making a new NPC with a new quest?

Maybe this is a stupid question but I'm a bit lost here..

I changed a NPC all around (new name, etc) and created a new .pl file for its quests by copying the old .pl file and renaming it to the new NPC's name, but after server reboot and everything the new NPC doesn't respond to hails.

What am I not doing?

Thanks
Reply With Quote
  #2  
Old 11-08-2010, 11:02 AM
nenelan
Hill Giant
 
Join Date: Feb 2008
Posts: 116
Default

Either you didn't #reloadquest, or it is spelled wrong (remember if a mob's name has a number or #, you can not see it, but it needs to be there in the .pl), or there is a syntactical error in the mob's .pl that will cause it to just turn to you on hail, and not actually function.
Reply With Quote
  #3  
Old 11-08-2010, 12:27 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

As nenelan said, you don't need to reboot the server. Just do a #reloadquest or #reloadpl within the game to refresh/reload quest files. Another thing to remember is that spaces are turned into underscores "_" and the apostrophes "`" need to be hyphens "-". Numbers and the pound signs "#" along with other special characters won't show up for the player, but if you use them, your file needs to match. And they are case sensitive.
Reply With Quote
  #4  
Old 11-08-2010, 03:31 PM
Templus
Sarnak
 
Join Date: Oct 2010
Location: NYC
Posts: 39
Default

I'm using underscores.. and #reloadquest instead of rebooting the server.. still not working.. not sure why.. all the other quests seem to work, just not me making a new one
Reply With Quote
  #5  
Old 11-08-2010, 03:42 PM
Templus
Sarnak
 
Join Date: Oct 2010
Location: NYC
Posts: 39
Default

I modified the felwithe paladin guildmaster. changed him all around and renamed him Lord_Xeros. I copied his quest file raneming it Lord_Xeros.pl and here it is: (still not responding to hails)

Lord_Xeros.pl
Code:
sub EVENT_SAY {
if($text=~/hail/i){
quest::say("Aren't you a little short to be a $race?");
#$npc->CastSpell( '345',$userid );
}

sub EVENT_ITEM {
 if(plugin::check_handin(\%itemcount, 18781 => 1)){
        quest::say("Greetings. young paladin!  I am Master Tynkale of the Cleri$
        quest::summonitem("13591");
        quest::faction("105","1");
 }
 if (plugin::check_handin(\%itemcount,  13351 => 1)) {
   quest::say("So you have proven yourself to be a great slayer of beasts.Now i$
   quest::faction( 8, 10);
   quest::faction( 43, 10);
   quest::faction( 178, 10);
   quest::exp(150);
 }
Reply With Quote
  #6  
Old 11-08-2010, 11:06 PM
Jaekob
Sarnak
 
Join Date: May 2010
Posts: 39
Default

Quote:
Originally Posted by Templus View Post
I modified the felwithe paladin guildmaster. changed him all around and renamed him Lord_Xeros. I copied his quest file raneming it Lord_Xeros.pl and here it is: (still not responding to hails)

Lord_Xeros.pl
Code:
sub EVENT_SAY {
if($text=~/hail/i){
quest::say("Aren't you a little short to be a $race?");
#$npc->CastSpell( '345',$userid );
}

sub EVENT_ITEM {
 if(plugin::check_handin(\%itemcount, 18781 => 1)){
        quest::say("Greetings. young paladin!  I am Master Tynkale of the Cleri$
        quest::summonitem("13591");
        quest::faction("105","1");
 }
 if (plugin::check_handin(\%itemcount,  13351 => 1)) {
   quest::say("So you have proven yourself to be a great slayer of beasts.Now i$
   quest::faction( 8, 10);
   quest::faction( 43, 10);
   quest::faction( 178, 10);
   quest::exp(150);
 }
Need a closing bracket in sub EVENT's
The quest::say after the hand in needs to be fixed at the end, I'm guess just a typo, or something like that.
Is Lord_Xeros supposed to cast a spell? If so got to remove the #

Hope this helps
Reply With Quote
  #7  
Old 11-09-2010, 12:55 AM
Templus
Sarnak
 
Join Date: Oct 2010
Location: NYC
Posts: 39
Default

wow .. i cant believe i missed the bracket .. thanks
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:53 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