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.

692 Part IV ■ <strong>Reference</strong>subType—Secondary identifier <strong>for</strong> the data on the cursor; used only <strong>for</strong> certaintypes: (string)companion—“CRITTER“ or “MOUNT“, indicating whether thereturned data is an index in the non-combat pet or mount listitem—A complete hyperlink <strong>for</strong> the itemspell—“spell“ or “pet“, indicating whether the returned data is an indexin the player’s or pet’s spellbookGetCursorMoneyReturns the amount <strong>of</strong> money currently on the cursor.cursorMoney = GetCursorMoney()Returns:cursorMoney—Amount <strong>of</strong> money currently on the cursor (in copper) (number)GetCursorPositionReturns the absolute position <strong>of</strong> the mouse cursor.cursorX, cursorY = GetCursorPosition()Returns:cursorX—Scale-independent X coordinate <strong>of</strong> the cursor’s current position(number)cursorY—Scale-independent Y coordinate <strong>of</strong> the cursor’s current position(number)GetDailyQuestsCompletedReturns the number <strong>of</strong> daily quests the player has completed today.dailyQuestsComplete = GetDailyQuestsCompleted()The daily quest period resets at or around 3:00 AM server time on most realms.Returns:dailyQuestsComplete—Number <strong>of</strong> daily quests completed in the currentperiod (number)GetDamageBonusStatReturns the index <strong>of</strong> the basic statistic that provides increased physicaldamage.bonusStat = GetDamageBonusStat()Unused in the default UI.Returns:bonusStat—Index <strong>of</strong> the basic statistic which provides attack (number)1—Strength (Druids, Mages, Paladins, Priests, Shamans, Warlocks <strong>and</strong>Warriors)2—Agility (Hunters <strong>and</strong> Rogues)GetDeathReleasePositionReturns the location <strong>of</strong> the graveyard where the player’s spirit will appearupon release.graveyardX, graveyardY = GetDeathReleasePosition()

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

Saved successfully!

Ooh no, something went wrong!