Difference between revisions of "LUA:QuestIsComplete"

(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...")
 
 
Line 8: Line 8:
  
 
==== Parameters ====
 
==== Parameters ====
; Required - ''param1'' (Spawn), ''param2'' (Spawn)
+
; Required - ''param1'' (Spawn), ''param2'' (int32)
 
: ''param1'' is the spawn we want to check
 
: ''param1'' is the spawn we want to check
 
: ''param2'' is the ID of the quest to check
 
: ''param2'' is the ID of the quest to check

Latest revision as of 21:58, 11 September 2013

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