[DiscordArchive] ```if (GetBossState(BOSS_SAPPHIRON) == DONE && GetBossState(BOSS_HORSEMAN) == DONE)```
[DiscordArchive] ```if (GetBossState(BOSS_SAPPHIRON) == DONE && GetBossState(BOSS_HORSEMAN) == DONE)```
Archived author: Deleted User • Posted: 2020-07-15T10:56:01.080000+00:00
Original source
```if (GetBossState(BOSS_SAPPHIRON) == DONE && GetBossState(BOSS_HORSEMAN) == DONE)```
Guys, this condition allows me to check bosses are alive?
Do I understand correctly?
Archived author: Kitzunu • Posted: 2020-07-15T13:01:45.763000+00:00
Original source
There are 4 different bosstates, In-progress, Done, Failed and one more, so sure I guess
Archived author: Deleted User • Posted: 2020-07-15T13:02:52.950000+00:00
Original source
<@!124202190255554561> And how to check if the boss is dead? Where can I find this condition in the core for an example?
Archived author: Kitzunu • Posted: 2020-07-15T13:03:17.048000+00:00
Original source
I mean if BossState == Done that means that you have killed the boss
Archived author: Deleted User • Posted: 2020-07-15T13:04:27.052000+00:00
Original source
That is, if I want to say let's close the portal to sapphiron while the other bosses are alive. I can add this condition by checking all the bosses in the raid, right?
Archived author: Deleted User • Posted: 2020-07-15T13:04:52.224000+00:00
Original source
```if (GetBossState(BOSS_SAPPHIRON) == DONE && GetBossState(BOSS_HORSEMAN) == DONE) && GetBossState(BOSS_MAEEXNA) == DONE)``` etc
Archived author: Kitzunu • Posted: 2020-07-15T13:05:47.442000+00:00
Original source
Im not entirely sure since I kinda suck at C++ but I *think* it could be done that way.
<@!281892403445497857> is good at this stuff (Sorry for the ping)
Archived author: Deleted User • Posted: 2020-07-15T13:12:59.307000+00:00
Original source
That is, purely theoretically in src/server/scripts/Northrend/Naxxramas
i can in this case edit
```case GO_SAPPHIRON_GATE:
_sapphironGateGUID = pGo->GetGUID();
if (GetBossState(BOSS_SAPPHIRON) == DONEz)
pGo->SetGoState(GO_STATE_ACTIVE);
break;```
Just a condition and it might work, right?