No categories assigned

LUA:SetStepComplete

Revision as of 19:19, 9 May 2013 by Thefoof (talk | contribs) (Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.


Back to LUA Quests Index