NPC ignores me!
I'm trying to design my first quest and running into trouble. My NPC basically turns to face you when you hail her but doesn't give the quest responses. Other NPCs in the same zone work just fine. Felicia just seems to be mute or rude.
Here is my quest: Code:
sub EVENT_SAY { |
Possible faction discrepency?
Syntax for the text part looks ok... |
I tried setting her faction to the same faction as the npc that works but I will try it again.
One other thing. I created the mob in the database and got one id. When I did #npcspawn create it gave me a new id. I deleted the "has quest" and reset it because I assumed it referenced the old id. Could that be it? |
Not sure what you mean by deleting the "has quest". When you spawn the NPC and use "#npcspawn create", it will create a new NPC that is a copy of that one. Really, the create option is for creating new NPCs that you spawned via the #spawn command to set their ID and save them in the zone. When you are just wanting to add a copy of a certain spawn ID to a zone, you should use "#npcspawn add" instead.
How are you naming the quest file? You can name them after the spawn ID or after the NPC name. The easiest way is just to name the files after the name of the NPC. If you use GeorgeS' quest editor, it will do them automatically and make sure they match up properly. Also, after you create a new NPC, you will have to restart the zone (normally just zoning out and back in if you run dynamic zones) before the quest will be able to take effect. Also, you have to use #reloadquest in the zone before new quest changes take effect. Let us know if you still have problems after trying some of this. |
If I save the quest as you posted it as test.pl and execute it from a command prompt, I get this:
Code:
syntax error at test.pl line 15, near "quest:: say " Code:
quest:: say |
I am using GeorgeS' quest editor to edit the quests so the name is the same as the NPCs. Thank you for the advice on the difference between create and add. I'll use add from now on.
Great catch on the syntax. I'll get back to you guys on whether or not it works shortly. I appreciate the help! |
It was the space! The quest works just fine now other than the fact she'll only take the three required items in the exact order they're given.
I'll work on making that not matter next. |
All times are GMT -4. The time now is 11:31 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.