PDA

View Full Version : Player.pl in template


Neiv
09-05-2008, 08:21 PM
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
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:

sub EVENT_SAY {
if($text=~/hail/i) {
quest::say("Hello, $name. What can I do for you today?");
}
}