DocBrown
Member
- Joined
- Mar 24, 2015
- Messages
- 362
- Reaction score
- 11
PHP:
/run local spell = "Windwool Cloth" for i=1,GetNumTradeSkills() do if GetTradeSkillInfo(i)== (" Bolt of ".. spell) then CloseTradeSkill() DoTradeSkill(i, GetItemCount(spell)/5) break end end
I use /cast tailoring before i run it
This works in game, but through hb it does nothing.
I looked for an hour and i read that hb can't run 2 macros in one. I tried splitting it into 2 but i don't think it worked, cause it also did nothing.
I also tried using this
PHP:
/CastSpellByID(125551);
but doesn't work.
Here is my current set up
PHP:
<If Condition="GetItemCount(72988) > 100" >
<CustomBehavior File="RunMacro" Macro="/cast Tailoring" />
<CustomBehavior File="RunMacro" Macro="/run for i=1,GetNumTradeSkills() do if GetTradeSkillInfo(i)=="Bolt of WindWool Cloth" end then DoTradeSkill(i, GetItemCount("WindWool Cloth")/5) break end end " />
<CustomBehavior File="WaitTimer" WaitTime="5000" />
</If>