*Edited so that if you dont know the lvl (skulls) it will post the lvl as ??*
*Edited again...this is a short version. Another version (posted below) will
only work on players, not NPC, and also shows location in x,y.*
I got bored (again) and wrote a macro that will post the name, location, and lvl
of the opposing faction in LocalDefense all by clicking on the target and then
the macro button. How it works is it get the zone loaction, the targets faction,
lvl, and name and if the target is the opposing faction it will post. I have
posted both sides of the macro...one for Horde and one for Alliance
For the Alliance (targeting Horde)
/script d=GetZoneText();t="target";U=UnitLevel;if not(U(t)>=U("player")+10) then
P=UnitLevel(t); else P="??";end;if (UnitFactionGroup(t)=="Horde") and
(UnitName(t)~=nil)then SendChatMessage("LVL" ..P.." "..UnitClass(t).." ".."- "
..d,"CHANNEL",nil,3);end
For the Horde (targeting Alliance)
/script d=GetZoneText();t="target";U=UnitLevel;if not(U(t)>=U("player")+10) then
P=UnitLevel(t); else P="??";end;if (UnitFactionGroup(t)~="Horde") and
(UnitName(t)~=nil)then SendChatMessage("LVL" ..P.." "..UnitClass(t).." ".."- "
..d,"CHANNEL",nil,3);end
 
|