Difference between revisions of "LUA:AddQuestStepLocation"

(New page: '''Syntax'''<br> AddQuestStepLocation(Quest, StepID, StepText, MaxVariation, TaskGroupText, Icon, x1, y1, z1, ...)<br> '''Explination'''<br> This function will update your quest step once...)
 
Line 1: Line 1:
'''Syntax'''<br>
+
{{LUAFunction
AddQuestStepLocation(Quest, StepID, StepText, MaxVariation, TaskGroupText, Icon, x1, y1, z1, ...)<br>
+
|Name = AddQuestStepLocation
 +
|Description = Updates your quest step once you arrive at/near a location
 +
|Param1 = Quest
 +
|Param1Desc = is the quest to add the step to
 +
|Param2 = int32
 +
|Param2Desc = is the the step id
 +
|Param3 = string
 +
|Param3Desc = is the the step text
 +
|Param4 = float
 +
|Param4Desc = is the max distance you can be AWAY from the specified location to receive the update.
 +
|Param5 = string
 +
|Param5Desc = is the taskgroup description
 +
|Param6 = int16
 +
|Param6Desc = is the icon
 +
|Param7 = float
 +
|Param7Desc = is the X position for the update
 +
|Param8 = float
 +
|Param8Desc = is the Y position for the update
 +
|Param9 = float
 +
|Param9Desc = is the Z position for the update
 +
|Example =
 +
<pre>
 +
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)
 +
</pre>
 +
|ExampleDesc = 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
 +
|Notes = Can have multiple locations also
 +
<pre>
 +
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, 25, -12.5, -10)
 +
</pre>
 +
Notice the addition to the end of 25, -12.5, -10. This is the X, y, z of the second location.
  
'''Explination'''<br>
+
You can have as many locations as you need
This function will update your quest step once you arrive at/near a location. MaxVariation is the max distance you can be AWAY from the specified location to receive the update.
+
}}
 
 
'''Example'''<br>
 
 
 
  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)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]
 

Revision as of 12:15, 30 January 2021


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

Notes

Can have multiple locations also

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, 25, -12.5, -10)

Notice the addition to the end of 25, -12.5, -10. This is the X, y, z of the second location.

You can have as many locations as you need