API:GetQuestId

Returns the ID of a Quest GetQuestId(x)

Arguments

 * x - Number (1 for the first Quest in the Questbook)

Returns
Quest ID

Example
/script DEFAULT_CHAT_FRAME:AddMessage(GetQuestId(1));

Returns the Quest ID of the first Quest in your questbook.