EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Player.pl in template (https://www.eqemulator.org/forums/showthread.php?t=26098)

Neiv 09-05-2008 08:21 PM

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.

Neiv 09-05-2008 09:55 PM

What I meant to ask was, player.pl in the quest\template folder.

Neiv 09-06-2008 06:48 PM

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.

Babul 09-14-2008 03:22 AM

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?

Neiv 09-14-2008 09:02 AM

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.

Babul 09-15-2008 05:03 AM

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

Neiv 09-15-2008 06:52 AM

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?

joligario 09-15-2008 08:22 AM

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



All times are GMT -4. The time now is 06:12 PM.

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