You are viewing an old version of this page. Return to the latest version.
Version of 19:18, 9 May 2013 by I need to Update My Profile
Difference between revisions of "LUA:SetStepComplete"
(Created page with "Completes a quest step. ==== Syntax ==== SetStepComplete(target, QuestID, Step) ==== Usage ==== <pre> function hailed(NPC, Spawn) if GetQuestStep(Spawn, 1) then Set...") |
(→Usage) |
||
| Line 13: | Line 13: | ||
</pre> | </pre> | ||
| − | This will set step one of a quest with the id of 300 as complete, if they are on that step of that quest. | + | This will set step one of a quest with the id of 300 as complete, if they are on that step of that quest, when hailing an npc with this function. |
[[LUA:QuestFunctions|Back to LUA Quests Index]] | [[LUA:QuestFunctions|Back to LUA Quests Index]] | ||
Latest revision as of 19:19, 9 May 2013
Completes a quest step.
Syntax
SetStepComplete(target, QuestID, Step)
Usage
function hailed(NPC, Spawn)
if GetQuestStep(Spawn, 1) then
SetStepComplete(Spawn, 300, 1)
end
end
This will set step one of a quest with the id of 300 as complete, if they are on that step of that quest, when hailing an npc with this function.