Full Version : QuestNPC that is also a vendor?
xmlspawner >>Scripting Support >>QuestNPC that is also a vendor?


<< Prev | Next >>

Discord- 06-17-2006
Is it possible to make a questnpc that not only offers you quests and interacts and also works as a vendor that would sell things I set on her?

Basically, Im working with a server with no vendors, but there are a few things we would like to sell thru a quest npc in town. Is there a way to get both in one spawner?

Thanks

Dis~

ArteGordon- 06-17-2006
QUOTE (Discord @ June 17, 2006 09:49 pm)
Is it possible to make a questnpc that not only offers you quests and interacts and also works as a vendor that would sell things I set on her?

Basically, Im working with a server with no vendors, but there are a few things we would like to sell thru a quest npc in town.  Is there a way to get both in one spawner?

Thanks

Dis~

You can make a standard vendor a questnpc.

You can either script it (see the TalkingJeweler.cs example which just takes a regular vendor script and substitutes TalkingBaseVendor for BaseVendor as the base class for the npc), or you can just attach an xmldialog to an existing vendor like

jeweler/ATTACH/xmldialog,yournpcfile

That isnt exactly the same as making the talkingbasevendor. It will talk and be able to do most interactive stuff, but you wont be able to satisfy GIVE type quests by dropping things onto them. That only works with actual quest npcs like the xmlquestnpc, or talkingbasevendors, talkingbaseescorts, etc.