No categories assigned

LUA:SetStepComplete

Revision as of 19:18, 9 May 2013 by Thefoof (talk | contribs) (Created page with "Completes a quest step. ==== Syntax ==== SetStepComplete(target, QuestID, Step) ==== Usage ==== <pre> function hailed(NPC, Spawn) if GetQuestStep(Spawn, 1) then Set...")
(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.


Back to LUA Quests Index