No categories assigned

LUA:QuestStepIsComplete

LUA Functions: QuestStepIsComplete()

Checks to see if the given player has completed the given step for the given quest ID


Syntax

var = QuestStepIsComplete(param1, param2, param3)


Parameters

Required - param1 (Spawn), param2 (int32), param3 (int32)
param1 is the spawn we want to check
param2 is the quest ID
param3 is the quest step


Usage

function hailed(NPC, Spawn)
    if QuestStepIsComplete(Spawn, 1234, 5) then
        Say(NPC, "You have completed step 5 in quest 1234")
    end
end

The NPC will respond if the player has completed step 5 of quest 1234

Notes

Returns a bool