Monday, April 27, 2009

DETECT Female Dwarf Macro!

Update: I'm sorry guys. The below macro is too long for the built-in macro system. It works GREAT with Macaroon! though, so check that out.

/run local r,m,f={Dwarf=1},"mouseover",SmM or CreateFrame("Frame","SmM")f:SetScript("OnEvent",function() if UnitSex(m)==3 and r[UnitRace(m)] and UnitLevel(m)>17 then print(UnitName(m).." is a "..UnitRace(m));PlaySoundFile("Sound\\Character\\PlayerRoars\\CharacterRoarsDwarfFemale.wav") end end) f:RegisterEvent("UPDATE_MOUSEOVER_UNIT")

This variation should fit the usual macro editor - it just won't play a sound.

/run local r,m,f={Dwarf=1},"mouseover",SmM or CreateFrame("Frame","SmM")f:SetScript("OnEvent",function() if UnitSex(m)==3 and r[UnitRace(m)] and UnitLevel(m)>17 then print(UnitName(m).." is "..UnitRace(m)) end end) f:RegisterEvent("UPDATE_MOUSEOVER_UNIT")

Now just stand somewhere and position your mouse somewhere they have to cross.. like a laser beam in a convenience store!

Trimble