Difference between revisions of "LUA:AddQuestStepChat"

Line 3: Line 3:
  
 
'''Explanation'''<br>
 
'''Explanation'''<br>
This will add a step in your quest script that requires you to go talk to an NPC. '''It is very important to note that this function will not operate by itself. Because most quests do not hand in on Hail on live this function does not automatically trigger when you hail the NPC IDs. You must edit the spawnscript of the NPC and use SetStepComplete to ensure that the quest step gets completed.'''
+
This will add a step in your quest script that requires you to go talk to an NPC. '''It is very important to note that this function will not operate by itself. Because most quests do not hand in on Hail on live this function does not automatically trigger when you hail the NPC IDs. You must edit the spawnscript of the NPC and use SetStepComplete to ensure that the quest step gets completed. This is because most quests are completed after reading several npc messages rather than right at the beginning.'''
  
  

Revision as of 07:02, 22 November 2009

Syntax
AddQuestStepChat(Quest, StepID, StepText, Quantity, TaskGroupText, Icon, NPC ID(s))

Explanation
This will add a step in your quest script that requires you to go talk to an NPC. It is very important to note that this function will not operate by itself. Because most quests do not hand in on Hail on live this function does not automatically trigger when you hail the NPC IDs. You must edit the spawnscript of the NPC and use SetStepComplete to ensure that the quest step gets completed. This is because most quests are completed after reading several npc messages rather than right at the beginning.


Example

 AddQuestStepChat(Quest, 1, "I must speak with Tristan. He is standing near the Heated Stone Inn.", 1, "I need to manipulate two Barbarians into hating each other.", 0, 1390036)


As you can see this is Step 1 of the quest. The TASKGROUP text is what will be displayed as the main step of the quest, the STEPTEXT is what will be displayed under the main step text. The icon I have set to "0" to display no icon. and the NPC ID is set to the NPC that you want to talk to in order to advance the quest.

Here is an example of how the TaskGroupText and StepText are laid out in your journal. Please excuse the crude drawing...

     TaskGroupText - "I need to manipulate two Barbarians into hating each other."
             StepText - "I must speak with Tristan. He is standing near the Heated Stone Inn."



Back to LUA Functions