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.

1070 Part IV ■ <strong>Reference</strong>LootSlotIsCoin—Returns whether a loot slot contains moneyLootSlotIsItem—Returns whether a loot slot contains an itemRollOnLoot—Register the player’s intent regarding an item up <strong>for</strong> loot rollingSetLootMethod—Sets the loot method <strong>for</strong> a party or raid groupSetLootPortrait—Sets a Texture object to show the appropriate portraitimage when lootingSetLootThreshold—Sets the threshold used <strong>for</strong> Master Looter, Group Loot,<strong>and</strong> Need Be<strong>for</strong>e Greed loot methodsSetOptOutOfLoot—Changes the player’s preference to opt out <strong>of</strong> loot rollsLua Library Functionsabs—Returns the absolute value <strong>of</strong> a numberassert—Causes a Lua error if a condition is failedceil—Returns the smallest integer larger than or equal to a numbercollectgarbage—Interface to the Lua garbage collectordate—Returns a <strong>for</strong>matted date/time string <strong>for</strong> a date (or the current date)deg—Converts an angle measurement in radians to degreesdifftime—Returns the number <strong>of</strong> seconds between two time valueserror—Causes a Lua error messageexp—Returns the value <strong>of</strong> the exponential function <strong>for</strong> a numberfloor—Returns the largest integer smaller than or equal to a number<strong>for</strong>mat—Returns a <strong>for</strong>matted string containing specified valuesfrexp—Returns the normalized fraction <strong>and</strong> base-2 exponent <strong>for</strong> a numbergetfenv—Returns the environment <strong>for</strong> a function (or the global environment)getmetatable—Returns an object’s metatablegmatch—Returns an iterator function <strong>for</strong> finding pattern matches in a stringgsub—Returns a string in which occurrences <strong>of</strong> a pattern are replacedipairs—Returns an iterator function <strong>for</strong> integer keys in a tableldexp—Returns the number generated by a normalized fraction <strong>and</strong> base-2exponentloadstring—Loads <strong>and</strong> compiles Lua source codelog—Returns the natural logarithm <strong>of</strong> a numberlog10—Returns the base-10 logarithm <strong>of</strong> a number

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

Saved successfully!

Ooh no, something went wrong!