No categories assigned

LUA:GetQuestStep

Revision as of 17:22, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetQuestStep() = Gets the step that the given player is currently on for the given quest ==== Syntax ==== var = GetQuestStep(param1, param2) ==== Parameters ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetQuestStep()

Gets the step that the given player is currently on for the given quest


Syntax

var = GetQuestStep(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int32)
param1 is the player we want to check
param2 is the quest id to check


Usage

function hailed(NPC, Spawn)
    Say(NPC, "You are currently on step " .. GetQuestStep(Spawn, 1234))
end

The NPC will respond with the step the player is on for quest 1234

Notes

Returns an int32