Quantcast WoWInterface - View Single Post - macro for Sha / Galleon lock
View Single Post
11-24-12, 04:57 PM   #5
This Space For Rent
Haleth's Avatar
WoWInterface Super Mod
Join Date: Sep 2008
Posts: 1,173
I've seen that Wowhead script before and I find it mind-boggling that someone would create a table just for storing one number and one string, both of which are only used once. It's not even less characters. Here's what I would do, seems to work:

/run print("You have"..(GetQuestsCompleted()[32099] and "" or " not").." done Sha of Anger this week.")
Dridzt; Your code will iterate over every key in the table until it gets to 32099, and then it doesn't actually check whether or not the value for that key is true. You can simply use the number as the key directly and then check its value.

Last edited by Haleth : 11-24-12 at 05:01 PM.
  Reply With Quote