No categories assigned

LUA:AddQuestStepZoneLoc


LUA:AllFunctions - AddQuestStepZoneLoc

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


Updates your quest step once you arrive at/near a location in a certain zone. AddQuestStepZoneLoc is preferable then AddQuestStepLocation function in any case, due of zone check.

Syntax

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

Parameters

Required - param1 (Quest), param2 (int32), param3 (string), param4 (float), param5 (string), param6 (int16), param7 (float), param8 (float), param9 (float), param10 (int16)
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
param10 is the Zone ID


Example

AddQuestStepZoneLoc(Quest, 1, "I need to investigate Varsoon's old tomb.", 1, "I must go to the tomb that once held the lich Varsoon just north of Qeynos.", 11, 362, -19, -662, 12)

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 "11" to display no icon. The max distance away from location is set to 1, location is 362, -19, -662 and the zone ID is 12(Antonica).