Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Sea.wow.questLog.getPlayerQuestData

From WoW Classic Wiki

This article is a part of the documentation of the Sea function library

--
--	getPlayerQuestData ( number id )
--
--		Returns a formatted table containing the quest's information
--		If you specify its id when the table is flat.
--
--	Args:
--		id - flattened (expanded) id of the quest
--
--	Returns:
--		questData - (table)
--		{
--			id - flattened id (number)
--			title - quest title (string)
--			tag - quest tag (string)
--			timer - (number) timer value in seconds
--			failed - (boolean)
--			description - full description text (string)
--			objective - objective text (string)
--			objectives - objective status (table)
--				{
--					text - description (string) 
--					questType - monster, reputation or item  (string)
--					finished - (boolean)
--					info - status information (table)
--					{
--						name - monster/item/faction name
--						done 	- number - number obtained or  killed
--							- string - faction achieved
--						total 	- number - amount needed 
--							- string - faction required
--					}
--				}	
--			choices - choices of items (table)
--				{
--					name - item name
--					texture - item texture
--					numItems - count of items (number)
--					quality - item quality (number)
--					isUsable - (boolean)
--					info - link information (table)
--						{
--							color - color string (string)
--							link - item link (string)
--							linkname - [Item of Power]  (string)
--						}
--				}
--			rewards - items always recieved (table)
--				{
--					name - item name
--					texture - item texture
--					numItems - count of items (number)
--					quality - item quality (number)
--					isUsable - (boolean)
--					info - link information (table)
--						{
--							color - color string (string)
--							link - item link (string)
--							linkname - [Item of Power] (string)
--						}
--				}
--			spellReward - the spell given to you after the quest (table)
--				{
--					name - spell name (string)
--					texture - spell texture (string)
--				}
--		}
--