November 3, 20178 yr 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
November 4, 20178 yr Author 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?
November 4, 20178 yr Author 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, 20178 yr by eeny
November 4, 20178 yr http://vanilla-wow.wikia.com/wiki/World_of_Warcraft_API , try "TogglePetAutocast(index)"
November 4, 20178 yr 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")
Create an account or sign in to comment