[DiscordArchive] Any reason why you don't just have a timed event tied to the creatures on spawn that checks for thei
[DiscordArchive] Any reason why you don't just have a timed event tied to the creatures on spawn that checks for thei
Archived author: Foe • Posted: 2022-04-24T11:47:35.330000+00:00
Original source
Something like that
Archived author: Honey • Posted: 2022-04-24T12:06:57.011000+00:00
Original source
Hmm yeah that looks doable for me. I Just need to make it arrays, then it's fine.
Archived author: Foe • Posted: 2022-04-24T12:09:15.280000+00:00
Original source
It removes a lot of the higher level fetching of creatures and objects etc
Archived author: Foe • Posted: 2022-04-24T12:09:59.324000+00:00
Original source
And removes a lot of the need to keep track of event ID's, since they all get removed when the creatures are despawned
Archived author: Honey • Posted: 2022-04-24T12:10:55.347000+00:00
Original source
Makes sense. Just inverse the success logic to let it fail If a creature is missing.
Archived author: Foe • Posted: 2022-04-24T14:05:35.339000+00:00
Original source
That's what it does with the break in the OnEventEnd loop
Archived author: Foe • Posted: 2022-04-24T14:05:43.517000+00:00
Original source
It sets completed to false and skips the rest
Archived author: Foe • Posted: 2022-04-24T14:06:08.717000+00:00
Original source
So if anything is not flagged as full hp, it just sets the event to failed
Archived author: Honey • Posted: 2022-04-24T15:01:47.927000+00:00
Original source
Now i remember why i didn't do it that way.
I can't tell in the OnSpawn event, which player's spawn this is in which phase. There can be 16 players simultaneously in different phases, hence the `phaseId` variable.
Archived author: Honey • Posted: 2022-04-24T15:04:18.858000+00:00
Original source
Well, i can keep storing the lowguid when i use `SpawnCreature`
Looks like i need a total re-write now.