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.

656 Part IV ■ <strong>Reference</strong>buyoutPrice—Buyout price <strong>of</strong> the auction (in copper) (number)bidAmount—Current highest bid on the item (in copper); 0 if no bids have beenplaced (number)highestBidder—1 if the player is currently the highest bidder; otherwise nil(1nil)owner—Name <strong>of</strong> the character who placed the auction (string)sold—1 if the auction has sold (<strong>and</strong> payment is awaiting delivery; applies onlyto owner auctions); otherwise nil (number)GetAuctionItemLinkReturns a hyperlink <strong>for</strong> an item in an auction listing.link = GetAuctionItemLink(“list“, index)Arguments:list—Type <strong>of</strong> auction listing (string)bidder—Auctions the player has bid onlist—Auctions the player can browse <strong>and</strong> bid on or buy outowner—Auctions the player placedindex—Index <strong>of</strong> an auction in the listing (number)Returns:link—A hyperlink <strong>for</strong> the item (string, hyperlink)GetAuctionItemSubClassesReturns a list <strong>of</strong> localized subclass names <strong>for</strong> a given item class.... = GetAuctionItemSubClasses(classIndex)Item subclasses are the second level <strong>of</strong> hierarchy seen when browsing itemclasses (categories) at the Auction House: One-H<strong>and</strong>ed Axes, Two-H<strong>and</strong>edAxes, Bows, Guns,etal<strong>for</strong>Weapon; Cloth, Leather, Plate, Shields,etal<strong>for</strong>Armor; Food & Drink, Potion, Elixir et al <strong>for</strong> Consumable; Red, Blue,Yellow,etal<strong>for</strong>Gem;etc.This function still returns valid in<strong>for</strong>mation if the player is not interacting withan auctioneer.Arguments:classIndex—Index <strong>of</strong> an item class (in the list returned by GetAuctionItemClasses()) (number)Returns:...—A list <strong>of</strong> strings, each the name <strong>of</strong> an item subclass; or nil if the class containsno subclasses (list)Example:-- prints a list <strong>of</strong> the subclasses <strong>for</strong> each item classfunction printSubClasses(...)<strong>for</strong> class = 1, select(“#“, ...) doprint(select(class, ...).. “:“, strjoin(“, “, iGetAuctionItemSubClasses(class)))

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

Saved successfully!

Ooh no, something went wrong!