No categories assigned

LUA:HasQuest

Revision as of 17:24, 3 May 2013 by Thefoof (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: HasQuest()

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.


Back to LUA Quests Index