eeny 523 Posted November 3, 2017 Share Posted November 3, 2017 as title says- from the quest profile editor the "runmacrolua" pulse doesn't pass the macro through to the game. I made a bunch of files for BC that rely on that and im having issues backporting them. anyone got a working example? wave.xml Link to comment https://wrobot.eu/forums/topic/7551-runmacrolua-not-working-on-vanilla-quest/ Share on other sites More sharing options...
Droidz 2738 Posted November 4, 2017 Share Posted November 4, 2017 Hello, RunMacroText does not exist in Vanilla. Link to comment https://wrobot.eu/forums/topic/7551-runmacrolua-not-working-on-vanilla-quest/#findComment-34479 Share on other sites More sharing options...
eeny 523 Posted November 4, 2017 Author Share Posted November 4, 2017 17 minutes ago, Droidz said: Hello, RunMacroText does not exist in Vanilla. So there is no way to send a macro from a quest profile pulse? Link to comment https://wrobot.eu/forums/topic/7551-runmacrolua-not-working-on-vanilla-quest/#findComment-34482 Share on other sites More sharing options...
Droidz 2738 Posted November 4, 2017 Share Posted November 4, 2017 Use normal lua code, what macro do you want use? Link to comment https://wrobot.eu/forums/topic/7551-runmacrolua-not-working-on-vanilla-quest/#findComment-34483 Share on other sites More sharing options...
eeny 523 Posted November 4, 2017 Author Share Posted November 4, 2017 (edited) 12 minutes ago, Droidz said: Use normal lua code, what macro do you want use? Anything... Mostly its a spell. This was one from a previous thread. RunMacroText("/petautocaston Firebolt") Edited November 4, 2017 by eeny Link to comment https://wrobot.eu/forums/topic/7551-runmacrolua-not-working-on-vanilla-quest/#findComment-34484 Share on other sites More sharing options...
Droidz 2738 Posted November 4, 2017 Share Posted November 4, 2017 http://vanilla-wow.wikia.com/wiki/World_of_Warcraft_API , try "TogglePetAutocast(index)" Link to comment https://wrobot.eu/forums/topic/7551-runmacrolua-not-working-on-vanilla-quest/#findComment-34485 Share on other sites More sharing options...
Droidz 2738 Posted November 4, 2017 Share Posted November 4, 2017 function Zorlen_TogglePetSpellAutocast(SpellName, mode) local m = nil if not (UnitHealth("pet") > 0) then Zorlen_debug("Your pet is not active or alive to use pet ability: "..SpellName) return false end for i=1, NUM_PET_ACTION_SLOTS, 1 do local slotspellname, slotspellsubtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(i) if (slotspellname and slotspellname == SpellName) then if (mode == "on") then if not autoCastEnabled then TogglePetAutocast(i) return true end elseif (mode == "off") then if autoCastEnabled then TogglePetAutocast(i) return true end else TogglePetAutocast(i) return true end end end Zorlen_debug("Unable to locate pet ability: "..SpellName) return false end (ref: http://addons.us.to/addon/zorlen-0 file "Zorlen_Pets.lua") Use: Zorlen_TogglePetSpellAutocast("Firebolt", "on") y2krazy 1 Link to comment https://wrobot.eu/forums/topic/7551-runmacrolua-not-working-on-vanilla-quest/#findComment-34486 Share on other sites More sharing options...
eeny 523 Posted November 4, 2017 Author Share Posted November 4, 2017 Yep, im an idiot- didnt think of it that way- thanks man! Link to comment https://wrobot.eu/forums/topic/7551-runmacrolua-not-working-on-vanilla-quest/#findComment-34487 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now