Full Version : Quest NPC help please
xmlspawner >>Q&A >>Quest NPC help please
<< Prev | Next >>
Erinn- 04-11-2007
Pretty much a newb at this. I figured out out make it take & give an item. How to do a simnple quest objective. I can make it accept either by item type or by item name. But here's the rub. I'd like to have it accept by name to save on the number of scripts. Such as:
GIVE/<questholder/name/MiningToken/notestring/Bring me a Mining Token!/objective1/COLLECTNAMED,Mining Token,1/autoreward/true/rewardstring/@bag/ADD/<powerscroll,Mining,150>/repeatable/false
I was so tickled when I got this to work. Then I tried my best to break it. I found that it will accept *anything* with props Name of 'Mining Token'. We have Container Engravers on shard and, yep, it will accept a container that has been renamed with one.
So I'd love to be able to set it by Item type *and* name. Such as:
Mining Token,BlueDiamond (name,type)
I've tried many variations of syntax but haven't been successful:( Is this possible and if so how?
Thank you
Erinn
Vladimir- 04-12-2007
Yes there is, you can do a type check with the COLLECTNAMED objective.

QUOTE
- added an additional optional type argument to quest objective keywords for greater specificity in target objectives. These keywords are: COLLECTNAMED,itemname[,itemtype][,count][,proptest] GIVENAMED,mobname,itemname[,itemtype][,count][,proptest]
KILLNAMED,mobname[,mobtype][,count][,proptest]

So just change your objective to: COLLECTNAMED,Mining Token,miningtoken,1
Assuming the itemtype is miningtoken
Erinn- 04-12-2007
Thank you! I swear I tried that but I must not have LOL. It works perfectly:)