EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Making a new NPC with a new quest? (https://www.eqemulator.org/forums/showthread.php?t=32442)

Templus 11-08-2010 10:35 AM

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

nenelan 11-08-2010 11:02 AM

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.

joligario 11-08-2010 12:27 PM

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.

Templus 11-08-2010 03:31 PM

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

Templus 11-08-2010 03:42 PM

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);
 }


Jaekob 11-08-2010 11:06 PM

Quote:

Originally Posted by Templus (Post 194051)
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

Templus 11-09-2010 12:55 AM

wow .. i cant believe i missed the bracket .. thanks :)


All times are GMT -4. The time now is 04:30 AM.

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