No categories assigned

LUA:SetStepComplete

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