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