Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

runmacroLUA not working on vanilla quest

Featured Replies

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

  • 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?

  • 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 by eeny

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.