Keep forgetting if you did Sha this week or not?
Here's your solution:
/run local z,t,s={[32099]='Sha of Anger this week.'},GetQuestsCompleted();for c,v in pairs(z) do if t[c] then s='' else s=' not' end print('You have'..s,'done',v) end
Enjoy
Keep forgetting if you did Sha this week or not?
Here's your solution:
/run local z,t,s={[32099]='Sha of Anger this week.'},GetQuestsCompleted();for c,v in pairs(z) do if t[c] then s='' else s=' not' end print('You have'..s,'done',v) end
Enjoy
While I'll commend you for your effort (especially in making it expandable, I like it!), your macro can still be improved. Here's how I'd make it look:
Code:/run local z,t={[32099]='Sha of Anger this week'},GetQuestsCompleted()for c,v in pairs(z)do print(("You have%s done %s."):format(t[c] and " not" or "",v))end
Yeah, I had messed the order up initially. That's what I get for typing too quickly.
Code:/run local z,t={[32099]='Sha of Anger this week',[32098]='Galleon this week'},GetQuestsCompleted()for c,v in pairs(z)do print(("You have%s done %s."):format(t[c] and "" or " not",v))end
For Moderation Concerns, please contact a Global:
Tziva ■ Radux ■ Simca ■ Elysia ■ Zaelsino ■ xskarma ■ Venara
||i5 3570k @ 4.4GHz||H100 push/pull||AsRock Z77 Extreme4||16Gb G.Skill Ripjaws 1600MHz||Gigabyte Windforce GTX 970|| Coolermaster Storm Trooper||Corsair TX850 Enthusiast Series||Samsung 840 Pro 128gb(boot drive)||1TB WD HDD, 2x 3TB WD HDD, 2TB WD HDD||
Bdk Nagrand / Astae Nagrand
Pokemon X FC: 4656-7679-2545/Trainer Name: Keno