whatisgoingon 0 Report post Posted May 2, 2017 Just like /script if IsControlKeyDown() then CastSpellByName("Flamestrike(Rank 6)") else CastSpellByName("Arcane Explosion(Rank 6)")end but not for spells, for.. food in this case do you know how i can get this to work with items? what terms do you use instead of CastSpellByName? ..UseItemByName or something similar? 0 Share this post Link to post Share on other sites
asdaaf 0 Report post Posted May 2, 2017 if you have supermacro you can use use('itemname'). 0 Share this post Link to post Share on other sites
Meitie 0 Report post Posted May 2, 2017 4 hours ago, asdaaf said: if you have supermacro you can use use('itemname'). Or use CastModifier which is very recommendet 0 Share this post Link to post Share on other sites
whatisgoingon 0 Report post Posted May 2, 2017 i have castmodifiers but how does this help me writing a script? i need to know what to put into it supermacro gave me too much trouble. i thank you for circumnavigating my question and desire to such a tool, but i really want it as a clean and addon-free macro. since it works, as you see above, with this script, for spells, without an addon. what way is there to write it as a script? 0 Share this post Link to post Share on other sites
asdaaf 0 Report post Posted May 3, 2017 if you have castmodifier try this /run if IsControlKeyDown() then MMC.DoUse('item1') else MMC.DoUse('item2') end 0 Share this post Link to post Share on other sites
shirsig 18 Report post Posted May 3, 2017 Without any addons you could do this: /run for i = 0, 4 do for j = 1, GetContainerNumSlots(i) do if strfind(GetContainerItemLink(i, j) or '', 'itemname') then UseContainerItem(i, j) return end end end 0 Share this post Link to post Share on other sites