Gaming
 

Libram.registerScholar

From WoWWiki

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

  	--[[ 
	--	registerScholar ( {scholar} [, {scholar} ] ) 
	--		Registers a scholar with the specifed id
	--		who will be notified when the quest log
	--		updates or changes. 
	--
	--	args:
	--		scholar - table
	--		{
	--			id - unique ID for the scholar
	--			callback - callback function 
	--				callback(action, questInfo, updateInfo)
	--				
	--				action - string - the action which has happened:
	--					ADD|REMOVE|CHANGED|COMPLETED|FAILED|UPDATE|TIMER|INIT
	--					
	--				questInfo - table
	--					title - quest title
	--					level - quest level
	--					completed - boolean
	--					id - quest id
	--					
	--				updateInfo - table
	--					text - updated text
	--					done - amount done
	--					total - total needed
	--			description - description string
	--			
	--		}
	--
	--	returns: 
	--		true - scholar enrolled successfully
	--		false - scholar was not valid 
	--]]