Difference between revisions of "LUA:UpdateQuestZone"

(Created page with "= LUA Functions: UpdateQuestZone() = Updates the zone for the given quest ==== Syntax ==== UpdateQuestZone(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Quest...")
 
 
Line 1: Line 1:
= LUA Functions: UpdateQuestZone() =
+
{{LUAFunction
Updates the zone for the given quest
+
|Name = UpdateQuestZone
 
+
|Description = Updates the zone for the given quest
 
+
|Param1 = Quest
==== Syntax ====
+
|Param1Desc = is the quest you wish to update
UpdateQuestZone(param1, param2)
+
|Param2 = "zone name"
 
+
|Param2Desc = is the zone name to set the quest to
 
+
|Example =
==== Parameters ====
 
; Required - ''param1'' (Quest), ''param2'' (string)
 
: ''param1'' is the Quest to update
 
: ''param2'' is the zone name to set the quest to
 
 
 
 
 
==== Usage ====
 
 
<pre>
 
<pre>
 
function init(Quest)
 
function init(Quest)
Line 19: Line 12:
 
end
 
end
 
</pre>
 
</pre>
 
+
|ExampleDesc = This will update the quest zone to "New Zone"
This will update the quest zone to "New Zone"
+
}}

Latest revision as of 13:00, 8 February 2022


LUA:AllFunctions - UpdateQuestZone

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


Updates the zone for the given quest

Syntax

UpdateQuestZone(param1, param2)

Parameters

Required - param1 (Quest), param2 ("zone name")
param1 is the quest you wish to update
param2 is the zone name to set the quest to


Example

function init(Quest)
    UpdateQuestZone(Quest, "New Zone")
end

This will update the quest zone to "New Zone"