NPC Quest respawns on anything.
This is my first custom quest and I think the problem is in the NPC itself. Whenever the NPC is hailed or given items he just respawns without giving the reward, well I am almost certain he is respawning since I can see him drop about half a food out of the air like a respawn.
Here is the quest: Code:
#$item1 - The object in the first give slot of the give window. |
Is the hail not working at all? usually this happens to me if I have an error in my quest. At least with the few that I've written. Try just running it on the command line, "perl quest_name.pl". That'll at least tell you if it's having trouble compiling and where.
This seems to work for me for the EVENT_ITEM. The first if takes a single item, and the other takes 3 items. Using it this way instead of the way you have it allows them to put the items in the give container in any order. Since you want more than one item type per hand in you'd use an && between them in the if, like the last one. Hope this helps. Code:
if(plugin::check_handin(\%itemcount,13309=>1)) { |
Nice tip
Thanks for the tip for the check handin function but the NPC just isn't staying spawned.. he de/respawns whenever any of his quest events get triggered.. the hail or the handins.
|
Did you check your script? Is this an NPC that you created?
|
Are you sure he's respawning? If this is the case, you will definitely lose target of him and have to re-target. Is that happening?
|
Oh, I am not losing target of him, something else must be wrong then.
The script appears to be working just fine, later on I will change it to use the check_handin function though. |
Quote:
|
How do I check to make sure I have the plugin that is being called. I have found a few more quests that do nothing when the handin is done.
|
For your initial script, you'll need to change the $item== to $item1 == for all of the messed up lines.
If you wish to use chech_handin and return_item plugins, you can download them from http://eqemuquests.cvs.sourceforge.n...uests/plugins/ You'll put the plugins in your eqemu/plugins folder. I recently needed help for something like this for several of my quests. With help from the almighty bleh for cleaning up my script and replacing my counters, we came up with this, which is a little easier to work with: Quote:
|
All times are GMT -4. The time now is 01:03 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.