No categories assigned

LUA:QuestStepIsComplete

Revision as of 21:58, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: QuestStepComplete() = Checks to see if the given player has completed the given step for the given quest ID ==== Syntax ==== var = QuestStepComplete(param1, pa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: QuestStepComplete()

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


Syntax

var = QuestStepComplete(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 QuestStepComplete(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