Jump to content

Useful scripts


Droidz

Recommended Posts

Get wow bouton/window name:

/run print(GetMouseFocus():GetName())

or

/run DEFAULT_CHAT_FRAME:AddMessage(GetMouseFocus():GetName())

Copy this script in wow chat, put your mouse over an button and press enter key. In wow chat appear button name (you can use this like "/click TheButtonName" or "TheButtonName:Click()" or "RunMacroText("/click TheButtonName")" if you use it in fightclass).

You can also use macro:

/framestack

More info: http://wow.gamepedia.com/Framestack 

Link to comment
Share on other sites

Get base (parent) spell name and the id:

 

Launch this script (in tab "Tools" > "Development Tools" > copy script in textbox and click on button "Lua (return value in 'ret')).

for i=1,1000 do
	local spellName = GetSpellBookItemName(i, BOOKTYPE_SPELL);
	if not spellName then break; end
	local _, tid = GetSpellBookItemInfo(i, "player");
	local spellNameReal = GetSpellInfo(tid);
	if  spellNameReal and spellName ~= spellNameReal then
		print(spellName .. " > " .. "\124cFF4FF763" .. spellNameReal .. " (id: " .. tid .. ")");
	else
		print(spellName .. " (id: " .. tid .. ")");
	end
end 
This write in wow chat list of spells of your spellbook and if exist (in green) the parent spell name. (By sample, http://www.wowhead.com/spell=12294/mortal-strike is the parent of http://www.wowhead.com/spell=78/heroic-strike )
 
ps: Now normally WRobot found automatically the childrens/parents spells.
Link to comment
Share on other sites

  • 1 month later...

Dump buff/aura of your character:

 

Entrer this script in wow chat, this return name and id of spells:

/run for i=1,40 do local name, _, _, _, _, _, _, _, _, _, spellId=UnitBuff("player",i); if name then local nameReal = GetSpellInfo(spellId) print(spellId.."="..name.."="..nameReal) end end
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...