Maintenance for the week of September 8:
• PC/Mac: No maintenance – September 8
• PC/Mac: EU megaserver for maintenance – September 9, 22:00 UTC (6:00PM EDT) - September 10, 16:00 UTC (12:00PM EDT) https://forums.elderscrollsonline.com/en/discussion/682784

Problem with EVENT_EFFECT_CHANGED Portal Spawn

SchubaHD
SchubaHD
Soul Shriven
Hello, i have a problem with tracking the Portal Spawn, before some updates i was tracking the portal spawn as below (the event was registered under EVENT_EFFECT_CHANGED)
    if effectName == "Portal Spawn" and unitName == "Clockwork Sentry"  then
            counterCurrStageArena = counterCurrStageArena +1
            MAHelper.SetText("Clockwork Sentry spawned! Kill it!")
            do return end
        end

now i don't know why, this is not working anymore.
Does anyone have some advice?
I tried with EVENT_COMBAT_EVENT, but i cannot retrieve the name of the mob.
Thank you in advance
  • M0R_Gaming
    M0R_Gaming
    ✭✭✭
    I'm not sure why it was working previously then stopped working right now, but Id recommend trying to swap the effectName with the ability id (effect names differ based on languages and may trigger for multiple things, while ability ids are unique and always will refer to the same ability).
    As a benefit, this also allows you to add a filter to the event via
    EVENT_MANAGER:AddFilterForEvent("Event Name", EVENT_EFFECT_CHANGED, REGISTER_FILTER_ABILITY_ID, [Insert Ability ID here])
    
    which will make it so that the event only runs when that ability is cast, not any others. Using an ability Id might also allow you to drop the check for entity name, if the only entity that uses that ability is the Clockwork Sentry.

    Based on some quick logs that I looked at, it looks like the Portal Spawn effect ID is 72057, but I haven't taken too close of a look at it.
    In addition, there is a cast for Portal Spawn which isn't cast by Clockwork Sentry, but it is instead cast by Centurion Champion. The Ids for these from logs are 72589, 72599, 72600 (in order of when they are cast) so idk if that would help but there it is.
    • PC/NA - PvP/PvE AD Magsorc main
    • Former Emp, All HMs but DSR
    My addons
  • SchubaHD
    SchubaHD
    Soul Shriven
    the problem is that EVENT_EFFECT_CHANGED does not register anymore the portal spawn, i can track the portal using EVENT_COMBAT_EVENT but i can't see the names, only some id, and even using LibUnitTracker most of the times doesn't work. I need to track the portal for two things mainly:
    1) in the Maelstrom Arena when u kill a certain add you can trigger the next wave
    2) when a certain mob (sentry, Troll in fifht, mage in 7th) spawn i want to notify using a text alert
    and only using the portal_id without a name is useless. Do you know if there is any documentation about these changes?
    Thanks :)
Sign In or Register to comment.