Description of katarquest.xml:
This spawns an orc and two talking NPCs, one is a TalkingBaseEscortable. One spawner (KatarQuest#1) sets up the NPCs and the other is for delivering the reward when the quest objectives have been met (KatarQuest#2).
spawner (KatarQuest#1)
0 orc/x/INC,40/ADD/<longsword/name/Shemps Blade/hue/32>
0 talkingbaseescortable,0/name/Shemp/destination/britain graveyard
1 xmlquestnpc,1/name/Katar/configfile/katar quest/loadconfig/true
The first entry creates an orc and then moves him 40 tiles away. It also adds the quest item named "Shemps Blade" to his pack.
The second entry creates the escortable NPC named Shemp (the zero arg passed to the constructor forces him to be male) and assigns his escort destination to the "britain graveyard" which is a defined region name.
The third entry creates the talking NPC Katar (the arg of 1 passed to the constructor forces her to be female) and loads it with the conversational configuration file named "katar quest.npc"
spawner (KatarQuest#2)
1 SETONSPAWN,KatarQuest#1,1/SAY/Thank you for your help! Here is your reward
1 TAKE/Help Shemp
1 GIVE/LOOTPACK,filthyrich
TriggerOnCarried "Help Shemp"
ProximityRange 5
MinDelay 1 sec
MaxDelay 1 sec
The first entry has the Katar NPC (subgroup 1 on Spawner KatarQuest#1) say something
The second entry takes the "Help Shemp" questnote from the player.
The third entry gives a random lootpack reward of the filthyrich level to the player.
Katar quest.npc
This file contains the conversation that drives the quest, and also has the npc handing out the questnote for the quest.
There are 5 random banter entries.
When a player initiates a conversation with any of the keywords "hello,greetings,hi,help,trouble", Katar describes the situation and then gives the player a questnote through the html entry in katar quest.npc
<Action>GIVE/<questnote/name/Help Shemp/titlestring/Shemp/notestring/Return Shemp's sword and take him to visit his mother's grave./objective1/ESCORT,Shemp/objective2/GIVENAMED,Shemp,Shemps Blade></Action>
which GIVES the player a questnote named "Help Shemp" with the objectives "ESCORT,Shemp", and "GIVENAMED,Shemp,Shemps Blade".
To satisfy these objectives, the item Shemps Blade must be taken from the orc that carries it and given to Shemp by dragging and dropping it onto him. Then Shemp must be escorted to his destination location.