Oroibahazopi.9074:

I’ve been testing this call trying to find a quick way to tell if the Citadel of Flame is open.

https://api.guildwars2.com/v1/events.json?map_id=22&event_id=A1182080-2599-4ACC-918E-A3275610602B

However the event (Hold the Gates of Flame against waves of Flame Legion) doesn’t seem to have a success state. All I see is Warmup, Active and Fail states.

Please point out any errors I have made and/or if I’m missing something.

poke.3712:

I’m looking at the results now and there are multiple Success entries, so you probably just had some bad luck.

Oroibahazopi.9074:

I almost fell for it, the forum formatting turns “&” into "& a m p ; ". Without the whitespace, good grief.

In other words it missed the event parameter so you were looking at all events in fireheart rise.

Try hxxps://api.guildwars2.com/v1/events.json?map_id=22&event_id=A1182080-2599-4ACC-918E-A3275610602B

SmartBobby.6283:

I would agree with it for european worlds at this time… But for the american worlds, that is really strange…

Cliff Spradlin.3512:

Events don’t always have a success phase. They may immediately transition to the warmup phase. The preparation bug I mentioned in another post may be responsible for what you’re experiencing.

Oroibahazopi.9074:

I was guessing that was the case. It just makes it incredibly annoying since you can’t see when the dungeon is open, only when it’s about to open.

An easier option would be to have a separate dungeon api that simply passes either “open” or “closed” when it’s called. ;]

GoddessHrist.8472:

In the case of CoF: Warmup = open, Active = bridge event, Fail = closed.

Oroibahazopi.9074:

Warmup is open? I thought the warmup would be escorting the guy to the bridge so it would be closed.

GoddessHrist.8472:

Yeah A1182080-2599-4ACC-918E-A3275610602B is the bridge event so it stays in the Fail state until the escort reaches the bridge. After a successful completion it goes into Warmup during the delay until it starts again.

The escort phase can be found by checking 6A8374CF-9999-43E9-B1C7-BAB1541F2426 for the active state.

I coded a simple desktop app to use during my CoF farming, and I can verify this is how it works. It ended up being a lot simpler than I expected.

lujate.5432:

Any thoughts on this for CoE? The “Capture the Infinity Coil” event appears to show Success even when the dungeon is contested. I then went and checked prior events, and they showed “Active”. Seems like the only option is to start at the beginning and check every event in the chain.

Healix.5819:

Seems like the only option is to start at the beginning and check every event in the chain.

Yes, that’s currently the only way to check. They really need another state to show that pre-events are active, which would solve this problem and reduce your multiple requests into a single one.

Since the states are inconsistent, you have to scan them all for that one active state and hope you don’t miss it. Since some events can be completed fairly quickly, this means at max you have to do these requests every 30 seconds if you don’t have an idea as to when the event was last completed.

For example, I’ve seen event chains that will display as active-success-warmup, which progresses to success-active-warmup, which progresses to success-success-warmup which progresses to success-success-active which will then reset to success-success-warmup. The problem with this is that if you missed that active state, at multiple points the event could have appeared to be finished, since it’s in between states are the same as when it’s finished. Other chains can vary, for example resetting to warmup-success-success or even worse, showing warmup instead of active and progressing directing to success then back to warmup.

Chiuna.2538:

Actually, for CoE you can just look for when 9752677E-FAE7-4F56-A48A-275329095B8A is in Warmup state ;)