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 09-05-2008, 08:21 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default Player.pl in template

Now that there's a lull maybe I can get this question out. What does player.pl actually do, and how is it used? Examples would be great. Thanks.
Reply With Quote
  #2  
Old 09-05-2008, 09:55 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

What I meant to ask was, player.pl in the quest\template folder.
Reply With Quote
  #3  
Old 09-06-2008, 06:48 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

I figured it out. Player.pl in the quest/templates folder will execute for every zone that does not have a player.pl in its /zone folder. If player.pl exists in a zone folder, it overrides player.pl in the /templates folder.
Reply With Quote
  #4  
Old 09-14-2008, 03:22 AM
Babul
Sarnak
 
Join Date: Sep 2008
Location: Rome
Posts: 37
Default

I downloaded yesterday the quests for peq DB with the CVS there are many directories with quests but none of them has a player.pl not even the template one and i get an error in the quest log because of this how come?

Is there a quest file updated file I can get somewhere?
Reply With Quote
  #5  
Old 09-14-2008, 09:02 AM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

There isn't a player.pl script for every zone; and there isn't one in quest/template by default. The one I placed there is a custom-made one.
Reply With Quote
  #6  
Old 09-15-2008, 05:03 AM
Babul
Sarnak
 
Join Date: Sep 2008
Location: Rome
Posts: 37
Default

I noticed most of the NPC do not answer to hail what i need to do so they have a standard response like Hi (charname) with some text..

can you tell me the code i need to insert in the .pl file
Reply With Quote
  #7  
Old 09-15-2008, 06:52 AM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default

Code:
can you tell me the code i need to insert in the .pl file
That depends on the zone and the npc. What zone/npc are you referring to?
Reply With Quote
  #8  
Old 09-15-2008, 08:22 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Here's what you are probably looking for:

Code:
sub EVENT_SAY {
  if($text=~/hail/i) {
    quest::say("Hello, $name. What can I do for you today?");
  }
}
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 09:57 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3