No categories assigned

LUA:QuestIsComplete

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

LUA Functions: QuestIsComplete()

Checks to see if the given player has completed the quest with the given ID


Syntax

var = QuestIsComplete(param1, param2)


Parameters

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


Usage

function hailed(NPC, Spawn)
    if QuestIsComplete(Spawn, 1234) then
        Say(NPC, "You have completed quest 1234")
    end
end

The NPC will respond if the player has completed quest 1234

Notes

Returns a bool