Now that we have multiple hearthstone toys which all add different animations and effects when we hearth, is there a way to create a macro to use a random one? I like all of them in different ways and find it difficult to choose which one to stick with.
I think the easiest way is to put them all as “favourite” toy.
/run local f,t=RnT or CreateFrame(“Button”,“RnT”,nil,“SecureActionButtonTemplate”) f:SetAttribute(“type”,“item”) t=GetItemInfo(C_ToyBox.GetToyFromIndex(random(24))) f:SetAttribute(“item”,t) print(“Casting toy:”,t)
/click RnT
Then swap the “24” with the number of favourite toys and voila.
/run local f,a,t=RnT or CreateFrame(“Button”,“RnT”,nil,“SecureActionButtonTemplate”),{1,4,5,11} f:SetAttribute(“type”,“item”) t=GetItemInfo(C_ToyBox.GetToyFromIndex(a[random(#a)])) f:SetAttribute(“item”,t) print("use: ",t)
/click RnT
If you want to find the exact position of the toy in the toybook (1,4,5,11, …).
#showtooltip Hearthstone
/castrandom 64488, 162973, 163045, 165669
Is supposed to work too (The ones above are (in order) Innkeepers Daughter (from Archaeology), Greatfather Winter’s Hearthstone, Headless Horseman’s Hearthstone, and Lunar Elder’s hearthstone.)
P.s. I did not come up with these myself.
Source: https://us.forums.blizzard.com/en/wow/t/use-random-hearthstone-toy/58304/14
Brilliant, thanks a lot
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.