Difference between revisions of "LUA:HasQuest"
(Created page with "= LUA Functions: HasQuest() = Returns a true or false if a player has a quest. ==== Syntax ==== HasQuest(Spawn, QuestID) ==== Usage ==== function hailed(NPC, Spawn) if HasQ...") |
(→LUA Functions: HasQuest()) |
||
| Line 1: | Line 1: | ||
| − | |||
Returns a true or false if a player has a quest. | Returns a true or false if a player has a quest. | ||
Latest revision as of 17:24, 3 May 2013
Returns a true or false if a player has a quest.
Syntax
HasQuest(Spawn, QuestID)
Usage
function hailed(NPC, Spawn)
if HasQuest(Spawn, 1) then
Example()
end
end
This runs the function "Example" when an npc is hailed if a player has the quest with an ID of 1.