Lua HasFinishedQuest

From ArcEmu-Wiki
Jump to: navigation, search

HasFinishedQuest()

Description

Used when checking if players have finished a quest, returns true or false. Is a bool (if?) command, so must be used with an "if" statement.

Example

function NPC_Quest_Check(Unit, Event)
  if player:HasFinishedQuest(#) then
    Unit:SendChatMessage(14, 0, "Message")
end
end


Make sure that when you register this command with an if statement that you end them both, all if statements require an "end".

Personal tools