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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

746 Part IV ■ <strong>Reference</strong>If the given socket contains a new gem (one that has been placed in the UI, butnot yet confirmed <strong>for</strong> permanently socketing into the item), returns an itemlink <strong>for</strong> that gem. If the socket is empty or has a permanently socketed gem butno new gem, returns nil.Only returns valid in<strong>for</strong>mation when the Item Socketing UI is open(i.e. between the SOCKET_INFO_UPDATE <strong>and</strong> SOCKET_INFO_CLOSE events).Arguments:index—Index <strong>of</strong> a gem socket (between 1 <strong>and</strong> GetNumSockets())(number)Returns:link—A hyperlink <strong>for</strong> the gem added to the socket (string, hyperlink)GetNextAchievementReturns the next achievement <strong>for</strong> an achievement which is part <strong>of</strong> a series.nextID, completed = GetNextAchievement(id)Arguments:id—The numeric ID <strong>of</strong> an achievement (number)Returns:nextID—If the given achievement is part <strong>of</strong> a series <strong>and</strong> not the last in itsseries, the ID <strong>of</strong> the next achievement in the series; otherwise nil (number)completed—True if the next achievement has been completed; otherwise nil(boolean)GetNextStableSlotCostReturns the cost <strong>of</strong> the next available stable slot.money = GetNextStableSlotCost()Returns 0 if all available slots have been purchased.Returns:money—Cost <strong>of</strong> the next available stable slot (in copper) (number)GetNumActiveQuestsReturns the number <strong>of</strong> quests which can be turned in to the current QuestNPC.numActiveQuests = GetNumActiveQuests()Only returns valid in<strong>for</strong>mation after a QUEST_GREETING event.Note: Most quest NPCs present active quests using theGetGossipActiveQuests() instead <strong>of</strong> this function.Returns:numActiveQuests—Number <strong>of</strong> quests which can be turned in to the currentQuest NPC (number)GetNumAddOnsReturns the number <strong>of</strong> addons in the addon listing.num<strong>Addons</strong> = GetNumAddOns()Returns:num<strong>Addons</strong>—The number <strong>of</strong> addons in the addon listing (number)

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

Saved successfully!

Ooh no, something went wrong!