View Single Post
08-04-16, 12:27 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Remember, wowprogramming is updatable by anyone, just like wowpedia.

Also, change this
Lua Code:
  1. local cloth =   select(2, GetAuctionItemSubClasses(2))
  2.     local leather = select(3, GetAuctionItemSubClasses(2))
  3.     local mail =    select(4, GetAuctionItemSubClasses(2))
  4.     local plate =   select(5, GetAuctionItemSubClasses(2))
to this
Lua Code:
  1. local _, cloth, leather, mail, plate = GetAuctionItemSubClasses(2)
and move it out of that function - those names will never change during your gameplay session.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote