WeakAuras 2

4 - Load Condition for Boss name

What is the enhancement in mind? How should it look and feel?

Please provide any additional information below.

Grab UnitName("boss1") on the INSTANCE_ENCOUNTER_ENGAGE_UNIT event.

User When Change
Stanzilla Sep 24, 2013 at 10:32 UTC Changed assigned to from Stanzilla to Mirrormn
Stanzilla Sep 20, 2013 at 23:56 UTC Changed description:
  Please provide any additional information below.


- Grab UnitName("boss1") on the Intance_Encounter_Engaged Event.
+ Grab UnitName("boss1") on the INSTANCE_ENCOUNTER_ENGAGE_UNIT event.
Stanzilla Sep 20, 2013 at 23:55 UTC Changed name from Loaf Condition for Boss name to Load Condition for Boss name
Stanzilla Sep 18, 2013 at 19:07 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 5 comments
  • Avatar of mysticalos mysticalos Sep 24, 2013 at 18:38 UTC - 0 likes

    Well, or something similar. probably better to use creatureID vs boss name, more precise and shares better across different languages. Also, boss1 isn't a sufficent check for some. possibly better to just do "for i = 1, 5" do on it

  • Avatar of mysticalos mysticalos Sep 24, 2013 at 18:37 UTC - 0 likes
    function addon: INSTANCE_ENCOUNTER_ENGAGE_UNIT()
    	if UnitExists("boss1") and UnitName("boss1") == UsersCondition then
    		if IsEncounterInProgress() and auraActive = false  then
    			Activateaura()
    			auraActive = true
    		elseif not IsEncounterInProgress() and auraActive then
    			Deactivateaura()
    			auraActive = false
    		end
    	end
    end
    
  • Avatar of Veldock Veldock Sep 21, 2013 at 01:34 UTC - 0 likes

    I've recently made a custom lua aura for this. Because of the amount of text auras that my guild is using... (raid cd rotations and such).. So you can use it if you like. It is set to untrigger if you die, so you need to be alive and in combat vs a boss. I've placed a note in the custom trigger box where you need to change the boss' name for which boss you want to load. (if you didn't want a text aura just right click on it and convert to the type you want).

    daK9eaGiH4tsbgLi6uIuZsku3cQYUek1WiKJjKwMqXZaQAAIW1eQ2gq5Be04GkohPs3trCqc1cLk9qPutukYfvuBurQpsQQtsQYkvyMKWobYpLIAOsHSusfpLOPcPUkuvFvrYzLcAVs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fgBHcfId4Jre4Jgt8Al5xYyITOs2AbkAIOIQTka
    

    Side note, the reason for the many events/trigger conditions, is because not all of the event's always get passed to a player when entering combat, its like just triple checking kinda thing.. There's probably a more elegant way to do it but this works for me.

    Last edited Sep 21, 2013 by Veldock
  • Avatar of Stanzilla Stanzilla Sep 20, 2013 at 23:57 UTC - 0 likes

    @sasteber: Go

    Should be better if we keep the aura active from INSTANCE_ENCOUNTER_ENGAGE_UNIT till the player drops combat again.

  • Avatar of sasteber sasteber Sep 20, 2013 at 18:21 UTC - 0 likes

    Wouldn't it be easier to just use GetMinimapZoneText(), since bosses are located in different subzones, with the event ZONE_CHANGED.

    Could only see a problem with it during Hellscream since he jumps between zones, so would have to add all the different zones that fight is in. All the other boss fights are in the same subzone.

    Guessing that the UnitName("boss1"), could be a problem if there are multiple bosses in a fight and not all active at the same time.

  • 5 comments

Facts

Last updated
Nov 22, 2013
Reported
Sep 18, 2013
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
2

Reported by

Possible assignees