You are viewing an old version of this page. Return to the latest version.
Version of 21:58, 11 September 2013 by I need to Update My Profile
Difference between revisions of "LUA:QuestStepIsComplete"
(Created page with "= LUA Functions: QuestStepComplete() = Checks to see if the given player has completed the given step for the given quest ID ==== Syntax ==== var = QuestStepComplete(param1, pa...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: QuestStepIsComplete() = |
Checks to see if the given player has completed the given step for the given quest ID | Checks to see if the given player has completed the given step for the given quest ID | ||
==== Syntax ==== | ==== Syntax ==== | ||
| − | var = | + | var = QuestStepIsComplete(param1, param2, param3) |
| Line 17: | Line 17: | ||
<pre> | <pre> | ||
function hailed(NPC, Spawn) | function hailed(NPC, Spawn) | ||
| − | if | + | if QuestStepIsComplete(Spawn, 1234, 5) then |
Say(NPC, "You have completed step 5 in quest 1234") | Say(NPC, "You have completed step 5 in quest 1234") | ||
end | end | ||
Latest revision as of 02:22, 5 July 2015
LUA Functions: QuestStepIsComplete()
Checks to see if the given player has completed the given step for the given quest ID
Syntax
var = QuestStepIsComplete(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (int32), param3 (int32)
- param1 is the spawn we want to check
- param2 is the quest ID
- param3 is the quest step
Usage
function hailed(NPC, Spawn)
if QuestStepIsComplete(Spawn, 1234, 5) then
Say(NPC, "You have completed step 5 in quest 1234")
end
end
The NPC will respond if the player has completed step 5 of quest 1234
Notes
Returns a bool