Thread Tools Display Modes
06-14-10, 02:44 PM   #1
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations
Join Date: May 2009
Posts: 176
Macro thing

Currently, I use the following macro:

/cast Tailoring
/run local s for i=1,GetNumTradeSkills() do s=GetTradeSkillInfo(i) if (s=="Bolt of Imbued Frostweave") then DoTradeSkill(i,100) end end

which creates 100 Bolts of Imbued Frostweave, or until I can't. Is there a way to craft the exact number of how much you can make? My cast bar addon merges all crafting so I get a general idea of when I will be finished. Anyone know how to change the macro so if I can only make, say, 3, the bar will only show 3?

Thanks!
  Reply With Quote
06-14-10, 04:19 PM   #2
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Try this

Code:
/cast Tailoring 
/run local s,_,n; for i=1,GetNumTradeSkills() do s,_,n=GetTradeSkillInfo(i); if s=="Bolt of Imbued Frostweave" then DoTradeSkill(i,n); end; end
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
06-14-10, 06:22 PM   #3
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations
Join Date: May 2009
Posts: 176
Originally Posted by v6o View Post
Try this

Code:
/cast Tailoring 
/run local s,_,n; for i=1,GetNumTradeSkills() do s,_,n=GetTradeSkillInfo(i); if s=="Bolt of Imbued Frostweave" then DoTradeSkill(i,n); end; end
^^ works like a charm. Any way to change the icon though? I know putting a #showtooltip ___ covers tooltips, but what about the icon of the macro o.O
  Reply With Quote
06-14-10, 06:35 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
what if you pick the ? icon and use the #showtooltip line?
__________________
"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

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Macro thing


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off