Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-03-06, 05:35 PM   #11
Butch82
A Murloc Raider
Join Date: Dec 2006
Posts: 5
Thanks a lot, that fixed it The working script:

Code:
Trigger: MINIMAP_ZONE_CHANGED
Delay: 1

local minimapzone = GetMinimapZoneText()
if string.find(minimapzone,"Nefar") then EquipSet() 
end
EDIT: I made an even better Event:

Code:
Trigger: UPDATE_MOUSEOVER_UNIT
Delay: 1

local zone = GetSubZoneText(),0 
if UnitName("mouseover") == "Ebonroc" or UnitName("mouseover") == "Firemaw" or UnitName("mouseover") == "Flamegor"
or string.find(zone,"Nefar") 
then EquipSet() 
end
This equips the Cloak when you either mouseover one of the three Dragons, or you mouseover anyone while beeing in nefarians lair
I don't like repeating the UnitName-Check, but i couldn't find a way to connect the names with an "or" in one Check :-/
If there is a way, please let me know

Last edited by Butch82 : 12-03-06 at 05:44 PM.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » Released AddOns » ItemRack - Events


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off