No categories assigned

LUA:GetTaskGroupStep

Revision as of 19:23, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetTaskGroupStep() = Gets the task group step for the given quest on the given spawn ==== Syntax ==== var = GetTaskGroupStep(param1, param2) ==== Parameters ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetTaskGroupStep()

Gets the task group step for the given quest on the given spawn


Syntax

var = GetTaskGroupStep(param1, param2)


Parameters

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


Usage

function hailed(NPC, Spawn)
    Say(NPC, "The task group step is: " .. GetTaskGroupStep(Spawn, 1234))
end

The NPC will respond with the task group step for the player for quest 1234

Notes

Returns an int32