Connecting a quest to an NPC
How do you tie a quest to a specific NPC? I get that you need to place the .pl file in the EQEMU/Quests/<zone>/ folder. However I can't seem to get the quest to work with the NPC.
For Example: I created a new NPC named Tiiana_Moonwulf and placed it in the cshome zone. Next, I created a Tiiana_Moonwulf.pl file and placed it in the EQEMU\quests\cshome\ directory. The perl file contents are: Code:
sub EVENT_SAY { When I load up the game, and zone into cshome, the NPC is there, but no quest responses. Based on the other quests in the folder, I assumed the quest.pl file needs to have the name of the NPC it's tied too (obviously this didn't work). I skimmed the quest lexicons but I didn't pick up anything about how to tie the quest to an NPC. |
You are missing a closing bracket. It should look like this:
Code:
sub EVENT_SAY { |
Ahh that did the trick. Thanks ;)
|
a good practice to get into, when you finish a given quest perl file is do the following from a commandline:
perl [name of file] [return] basically run the script against the REAL perl interpreter. if you have a syntax error, perl will complain and you can go and fix it. the problem you faced here is that the server, being written to be as fault tolerant as possible merely gives up if it cannot parse the perl script properly. i had this same issue and banged my head for a day, then finally i said, i wonder if its a syntax issue. ran the script against perl, and voila, my answer appeared in the nice error message spat out by the interpreter. hope this helps in the future for you. == sfisque |
Just some info: A great ingame command I use is #reloadquest. This reloads all quests for the current zone, and any changes you have made... That way you never really have to leave the game while writing them, givin you know your way around perl a lil'. I find if its not working, i start from the beginning, trying seperate sections at once to see where the issue is. But building from the beginning testing as you go removes some of the fault in the script itself.
-wiz |
All times are GMT -4. The time now is 11:47 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.