Full Version : How To Make Sure A Player DOES A Skill?
xmlspawner >>Q&A >>How To Make Sure A Player DOES A Skill?


<< Prev | Next >>

morganm- 01-09-2007
One of my players suggested doing quests for more than just adventurers but also crafters. For example having a tamer tame 10 horses, 10 llamas, and 10 bulls to be deliverd back to the quest NPC at the stable.

How do I make sure the player actually tames the creatures and doesn't just buy them from another NPC stable master? Or in the example of tailoring and blacksmithing... how do I ensure they actually do the skills to create the items for the objectives instead of just buying them.

Another question along with this. One of the suggested rewards was adding Karma and Fame. How can I ADD Karma / Fame to their pre-existing amounts as a reward? For example when they collect the reward it would add 500 to their current amount of karma.

Making quests is the coolest thing since... well... XML spawners! biggrin.gif Thanks for making such a sweet, interactive, and robust system for newbs like me to create funt quests and spawns for players biggrin.gif

ArteGordon- 01-10-2007
For taming, you could check the LastOwner property on the creature and make sure that it matched the player.
For crafted items check the Crafter property against the player.
You could add that to the proptest argument in the quest objective.

COLLECT,type,[count][,proptest]


Something like this would work

COLLECT,platehelm,10,Crafter.serial={GETONTRIGMOB,serial}

where the triggermob serial number would be substituted when you handed out the quest, and then that would be checked against the crafter serial number when they tried to collect the platehelms to satisfy the quest objective.

To give out karma or fame, I would use the XmlAddKarma and XmlAddFame attachments.
QUOTE

- added several new attachments (XmlAddVirtue, XmlAddFame, XmlAddKarma).  To use these in a spawner you could attach them to a player with

SETONTRIGMOB/ATTACH/xmladdvirtue,Justice,3

which would give 3 justice points to the triggering player, or

orc/name/Schmeil the good/ATTACH/xmladdkarma,-500

would result in a -500 point karma loss for killing that creature.

- The "XmlAddVirtue, virtuename, virtuepoints" attachment allows you to give virtue points to a player directly, or when attached to mob, give the virtue points when the mob is killed.

- The "XmlAddFame, famepoints" attachment allows you to give fame to a player directly, or when attached to a mob, give the fame when the mob is killed.

- The "XmlAddKarma, karmapoints" attachment allows you to give karma to a player directly, or when attached to a mob, give the karma when the mob is killed.


To give them out as automatic quest rewards, use the AttachmentString property on the questholder.

QUOTE

- added a new AttachmentString property that works in the same way as the RewardString only for attachments.  This allows both reward items and reward attachments to be specified by string in a single quest.


See minionstrike.xml for an example

morganm- 01-10-2007
Simply amazing Arte! I can't wait to implement these, THANK YOU!