No categories assigned

LUA:QuestIsComplete

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 (int32)
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