[DiscordArchive] So I probably just need normal SetData and `ReadSaveDataMore` with `WriteSaveDataMore`?
[DiscordArchive] So I probably just need normal SetData and `ReadSaveDataMore` with `WriteSaveDataMore`?
Archived author: Deleted User • Posted: 2024-05-29T12:14:24.180000+00:00
Original source
So I probably just need normal SetData and `ReadSaveDataMore` with `WriteSaveDataMore`?
Archived author: Tea • Posted: 2024-05-29T12:15:49.751000+00:00
Original source
DataMore yes, but you dont need to involve SetDate there at all (since you wont be exposing the "has rolled" to any other script)
Archived author: Tea • Posted: 2024-05-29T12:16:32.052000+00:00
Original source
to prevent spawn override GetCreatureEntry and return 0 if roll was bad
Archived author: Deleted User • Posted: 2024-05-29T12:16:33.747000+00:00
Original source
Apologies if a dumb question, just getting to grips with how instance state is saved between restarts technically. I see there's only a `data` column on `instance` table would that contain _both_ boss state and normal save data I assume that's something like.
"Read the first X values as boss state based on boss count and anything after this is normal instance data"?
Archived author: Tea • Posted: 2024-05-29T12:17:02.609000+00:00
Original source
pretty much, yes
Archived author: Tea • Posted: 2024-05-29T12:17:50.982000+00:00
Original source
but you dont need to care about that implementation detail, the stream passed to ReadSaveDataMore is already at the correct position
Archived author: Deleted User • Posted: 2024-05-29T12:18:34.543000+00:00
Original source
Okay cool I think that fills in the gaps I was missing. Thanks Shauren
Archived author: =Banshee= • Posted: 2024-05-29T14:24:00.485000+00:00
Original source
Yes