You are viewing an old version of this page. Return to the latest version.
Version of 21:50, 11 September 2013 by I need to Update My Profile
No categories assigned
LUA:QuestIsComplete
- Last edited 12 years ago by I need to Update My Profile
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