12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27 ■ API <strong>Reference</strong> 871KBSetup_IsLoadedReturns whether the knowledge base default query has completedsuccessfully.isLoaded = KBSetup_IsLoaded()The KNOWLEDGE_BASE_SETUP_LOAD_SUCCESS also indicates that theknowledge base setup is complete; this function presents an alternative thatcan be used across UI reloads or login/logout.Returns:isLoaded—True if results <strong>for</strong> the knowledge base’s default ‘‘Top Issues’’query are available; false if a query is in progress or has failed (boolean)KBSystem_GetMOTDReturns the currently knowledge base MOTD.text = KBSystem_GetMOTD()Returns:text—The message <strong>of</strong> the day <strong>for</strong> the knowledge base system (string)KBSystem_GetServerNoticeReturns the text <strong>of</strong> the knowledge base server system notice.text = KBSystem_GetServerNotice()Returns:text—The text <strong>of</strong> the knowledgebase system server notice (string)KBSystem_GetServerStatusReturns the knowledge base server system status message.statusMessage = KBSystem_GetServerStatus()Returns:statusMessage—The knowledge base server status message, or nil (string)KeyRingButtonIDToInvSlotIDReturns the inventoryID corresponding to a slot in the keyring.slot = KeyRingButtonIDToInvSlotID(slot)Arguments:slot—Index <strong>of</strong> a key slot within the keyring (number, containerSlotID)Returns:slot—Identifier <strong>for</strong> the key slot usable with Inventory APIs (number,inventoryID)LFGQueryRequests Looking <strong>for</strong> More in<strong>for</strong>mation from the server.LFGQuery(type, index)Query results are not available immediately; the UPDATE_LFG_LIST event fireswhen data becomes available; listing in<strong>for</strong>mation can then be retrieved usingGetLFGResults() or related APIs.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!