No categories assigned

LUA:AddQuestStepLocation


LUA:AllFunctions - AddQuestStepLocation

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Updates your quest step once you arrive at/near a location

Syntax

AddQuestStepLocation(param1, param2, param3, param4, param5, param6, param7, param8, param9)

Parameters

Required - param1 (Quest), param2 (int32), param3 (string), param4 (float), param5 (string), param6 (int16), param7 (float), param8 (float), param9 (float)
param1 is the quest to add the step to
param2 is the the step id
param3 is the the step text
param4 is the max distance you can be AWAY from the specified location to receive the update.
param5 is the taskgroup description
param6 is the icon
param7 is the X position for the update
param8 is the Y position for the update
param9 is the Z position for the update


Example

AddQuestStepLocation(Quest, 5,  "I must cast the shackles into the sea.", 30, "I need to toss the shackles into the sea. I can do so at the docks.", 0, -0, -4.5, 105)

As you can see this is Step 5 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. The max distance away from location is set to 30, and the location is -0, -4.5, 105