View Single Post
12-03-06, 05:35 PM   #101
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